From ed867281e76e945bed9e23450f338fb13356deba Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Sun, 9 Dec 2018 19:04:39 -0500 Subject: [PATCH] v2.0.11 --- config/api_sample.php | 3 + .../extensions/core/auth/google/Provider.php | 3 +- .../core/interfaces/activity-icon/display.css | 6 +- .../core/interfaces/activity-icon/display.js | 2 +- .../core/interfaces/activity-icon/input.css | 2 +- .../core/interfaces/activity-icon/input.js | 2 +- .../core/interfaces/button-group/input.css | 54 +++++++------- .../core/interfaces/button-group/input.js | 2 +- .../core/interfaces/calendar/input.css | 2 +- .../core/interfaces/calendar/input.js | 2 +- .../core/interfaces/checkboxes/input.css | 2 +- .../core/interfaces/checkboxes/input.js | 2 +- .../core/interfaces/code/display.css | 4 +- .../core/interfaces/code/display.js | 2 +- .../extensions/core/interfaces/code/input.css | 12 +-- .../extensions/core/interfaces/code/input.js | 4 +- .../core/interfaces/collections/input.css | 2 +- .../core/interfaces/collections/input.js | 2 +- .../core/interfaces/color-palette/display.css | 2 +- .../core/interfaces/color-palette/display.js | 2 +- .../core/interfaces/color-palette/input.css | 24 +++--- .../core/interfaces/color-palette/input.js | 2 +- .../core/interfaces/color/display.css | 2 +- .../core/interfaces/color/display.js | 2 +- .../core/interfaces/color/input.css | 26 +++---- .../extensions/core/interfaces/color/input.js | 2 +- .../extensions/core/interfaces/date/input.css | 2 +- .../extensions/core/interfaces/date/input.js | 2 +- .../interfaces/datetime-created/input.css | 2 +- .../core/interfaces/datetime-created/input.js | 2 +- .../interfaces/datetime-updated/input.css | 2 +- .../core/interfaces/datetime-updated/input.js | 2 +- .../core/interfaces/datetime/input.css | 2 +- .../core/interfaces/datetime/input.js | 2 +- .../core/interfaces/divider/input.css | 26 +++---- .../core/interfaces/divider/input.js | 2 +- .../core/interfaces/dropdown/input.css | 6 +- .../core/interfaces/dropdown/input.js | 2 +- .../core/interfaces/file-preview/display.js | 2 +- .../core/interfaces/file-preview/input.css | 44 +++++------ .../core/interfaces/file-preview/input.js | 2 +- .../core/interfaces/file-size/input.css | 6 +- .../core/interfaces/file-size/input.js | 2 +- .../core/interfaces/file/display.css | 6 +- .../core/interfaces/file/display.js | 2 +- .../extensions/core/interfaces/file/input.css | 10 +-- .../extensions/core/interfaces/file/input.js | 2 +- .../core/interfaces/files/display.js | 6 ++ .../core/interfaces/files/input.css | 11 +++ .../extensions/core/interfaces/files/input.js | 8 ++ .../core/interfaces/files/meta.json | 1 + .../core/interfaces/hashed/display.js | 2 +- .../core/interfaces/hashed/input.css | 2 +- .../core/interfaces/hashed/input.js | 2 +- .../extensions/core/interfaces/icon/input.css | 18 ++--- .../extensions/core/interfaces/icon/input.js | 2 +- .../core/interfaces/language/input.js | 2 +- .../core/interfaces/many-to-many/display.css | 6 +- .../core/interfaces/many-to-many/display.js | 2 +- .../core/interfaces/many-to-many/input.css | 38 +++++----- .../core/interfaces/many-to-many/input.js | 2 +- .../core/interfaces/many-to-one/input.css | 10 +-- .../core/interfaces/many-to-one/input.js | 2 +- .../core/interfaces/map/display.css | 4 +- .../extensions/core/interfaces/map/display.js | 2 +- .../extensions/core/interfaces/map/input.css | 24 +++--- .../extensions/core/interfaces/map/input.js | 2 +- .../core/interfaces/markdown/input.css | 8 +- .../core/interfaces/markdown/input.js | 2 +- .../core/interfaces/multiselect/input.css | 16 ++-- .../core/interfaces/multiselect/input.js | 2 +- .../core/interfaces/numeric/input.css | 2 +- .../core/interfaces/numeric/input.js | 2 +- .../core/interfaces/one-to-many/display.css | 6 +- .../core/interfaces/one-to-many/display.js | 2 +- .../core/interfaces/one-to-many/input.css | 38 +++++----- .../core/interfaces/one-to-many/input.js | 2 +- .../core/interfaces/password/display.js | 2 +- .../core/interfaces/password/input.css | 6 +- .../core/interfaces/password/input.js | 2 +- .../core/interfaces/preview/input.css | 6 +- .../core/interfaces/preview/input.js | 2 +- .../core/interfaces/primary-key/input.css | 4 +- .../core/interfaces/primary-key/input.js | 2 +- .../core/interfaces/radio-buttons/input.css | 2 +- .../core/interfaces/radio-buttons/input.js | 2 +- .../core/interfaces/rating/display.css | 28 +++---- .../core/interfaces/rating/display.js | 4 +- .../core/interfaces/rating/input.css | 30 ++++---- .../core/interfaces/rating/input.js | 4 +- .../core/interfaces/rating/stars.css | 24 +++--- .../core/interfaces/rating/stars.js | 2 +- .../core/interfaces/slider/input.css | 2 +- .../core/interfaces/slider/input.js | 2 +- .../extensions/core/interfaces/slug/input.css | 2 +- .../extensions/core/interfaces/slug/input.js | 4 +- .../extensions/core/interfaces/sort/input.css | 2 +- .../extensions/core/interfaces/sort/input.js | 2 +- .../core/interfaces/status/display.css | 4 +- .../core/interfaces/status/display.js | 2 +- .../core/interfaces/status/input.css | 4 +- .../core/interfaces/status/input.js | 2 +- .../core/interfaces/tags/display.css | 4 +- .../core/interfaces/tags/display.js | 2 +- .../extensions/core/interfaces/tags/input.css | 8 +- .../extensions/core/interfaces/tags/input.js | 2 +- .../core/interfaces/text-input/input.css | 2 +- .../core/interfaces/text-input/input.js | 2 +- .../core/interfaces/textarea/input.css | 2 +- .../core/interfaces/textarea/input.js | 2 +- .../extensions/core/interfaces/time/input.css | 2 +- .../extensions/core/interfaces/time/input.js | 2 +- .../core/interfaces/toggle-icon/display.css | 2 +- .../core/interfaces/toggle-icon/display.js | 2 +- .../core/interfaces/toggle-icon/input.css | 8 +- .../core/interfaces/toggle-icon/input.js | 2 +- .../core/interfaces/toggle/display.css | 2 +- .../core/interfaces/toggle/display.js | 2 +- .../core/interfaces/toggle/input.css | 44 +++++------ .../core/interfaces/toggle/input.js | 2 +- .../core/interfaces/translation/input.css | 10 +-- .../core/interfaces/translation/input.js | 2 +- .../core/interfaces/user-created/display.css | 6 +- .../core/interfaces/user-created/display.js | 2 +- .../core/interfaces/user-created/input.css | 8 +- .../core/interfaces/user-created/input.js | 2 +- .../core/interfaces/user-roles/display.js | 2 +- .../core/interfaces/user-roles/input.js | 2 +- .../core/interfaces/user-updated/display.css | 6 +- .../core/interfaces/user-updated/display.js | 2 +- .../core/interfaces/user-updated/input.css | 8 +- .../core/interfaces/user-updated/input.js | 2 +- .../core/interfaces/user/display.css | 6 +- .../core/interfaces/user/display.js | 2 +- .../extensions/core/interfaces/user/input.css | 2 +- .../extensions/core/interfaces/user/input.js | 2 +- .../extensions/core/layouts/cards/layout.css | 2 +- .../extensions/core/layouts/cards/layout.js | 2 +- .../extensions/core/layouts/cards/options.css | 4 +- .../extensions/core/layouts/cards/options.js | 2 +- .../core/layouts/tabular/options.css | 10 +-- .../core/layouts/tabular/options.js | 2 +- public/extensions/core/pages/_demo/page.css | 4 +- public/extensions/core/pages/_demo/page.js | 2 +- .../custom/hooks/_webhook/hooks.php | 6 +- public/thumbnail/index.php | 2 +- src/core/Directus/Application/Application.php | 2 +- .../Database/Schema/SchemaManager.php | 69 ++++++++++++----- .../Database/Schema/Sources/MySQLSchema.php | 9 ++- .../Util/Installation/stubs/config.stub | 3 + vendor/autoload.php | 2 +- vendor/composer/autoload_classmap.php | 1 + vendor/composer/autoload_real.php | 14 ++-- vendor/composer/autoload_static.php | 11 +-- vendor/composer/installed.json | 74 +++++++++---------- vendor/guzzlehttp/psr7/CHANGELOG.md | 18 ++++- vendor/guzzlehttp/psr7/src/functions.php | 7 +- .../symfony/config/Resource/GlobResource.php | 24 +++++- .../Tests/Resource/GlobResourceTest.php | 14 ++++ .../Translation/LocaleAwareInterface.php | 31 ++++++++ .../Translation/TranslatorInterface.php | 16 ---- .../contracts/Translation/TranslatorTrait.php | 2 +- .../translation/DataCollectorTranslator.php | 5 +- .../Formatter/MessageFormatter.php | 2 +- .../symfony/translation/LoggingTranslator.php | 5 +- .../translation/TranslatorInterface.php | 3 +- vendor/symfony/translation/composer.json | 2 +- .../symfony/validator/ConstraintViolation.php | 4 +- .../Context/ExecutionContextInterface.php | 2 +- .../Tests/ConstraintViolationTest.php | 55 ++++++++++++++ 170 files changed, 716 insertions(+), 521 deletions(-) create mode 100644 public/extensions/core/interfaces/files/display.js create mode 100644 public/extensions/core/interfaces/files/input.css create mode 100644 public/extensions/core/interfaces/files/input.js create mode 100644 public/extensions/core/interfaces/files/meta.json create mode 100644 vendor/symfony/contracts/Translation/LocaleAwareInterface.php diff --git a/config/api_sample.php b/config/api_sample.php index 2b6acd5ace..061178bed8 100644 --- a/config/api_sample.php +++ b/config/api_sample.php @@ -140,6 +140,9 @@ // 'client_id' => '', // 'client_secret' => '', // 'hosted_domain' => '*', + // // Uses OpenIDConnect to fetch the email instead of using the Google+ API + // // Disabling the OIDC Mode, requires you to enable the Google+ API otherwise it will fail + // 'use_oidc_mode' => true, // ], // 'twitter' => [ // 'identifier' => '', diff --git a/public/extensions/core/auth/google/Provider.php b/public/extensions/core/auth/google/Provider.php index 6c28f7be6c..cbd21b8889 100644 --- a/public/extensions/core/auth/google/Provider.php +++ b/public/extensions/core/auth/google/Provider.php @@ -33,7 +33,8 @@ protected function createProvider() 'clientId' => $this->config->get('client_id'), 'clientSecret' => $this->config->get('client_secret'), 'redirectUri' => $this->getRedirectUrl(), - 'hostedDomain' => $this->config->get('hosted_domain') + 'hostedDomain' => $this->config->get('hosted_domain'), + 'useOidcMode' => (bool) $this->config->get('use_oidc_mode'), ]); return $this->provider; diff --git a/public/extensions/core/interfaces/activity-icon/display.css b/public/extensions/core/interfaces/activity-icon/display.css index befc079752..17e9c12bb4 100644 --- a/public/extensions/core/interfaces/activity-icon/display.css +++ b/public/extensions/core/interfaces/activity-icon/display.css @@ -1,7 +1,7 @@ -.v-progress-ring[data-v-8de398]{display:inline-block;vertical-align:top +.v-progress-ring[data-v-42a624]{display:inline-block;vertical-align:top } -.label[data-v-8de398]{display:inline-block;margin-left:4px;height:34px +.label[data-v-42a624]{display:inline-block;margin-left:4px;height:34px } -.label div[data-v-8de398]{margin-top:9px +.label div[data-v-42a624]{margin-top:9px } \ No newline at end of file diff --git a/public/extensions/core/interfaces/activity-icon/display.js b/public/extensions/core/interfaces/activity-icon/display.js index 7148f3e36b..29db9f66fc 100644 --- a/public/extensions/core/interfaces/activity-icon/display.js +++ b/public/extensions/core/interfaces/activity-icon/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"dB0v":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var o={name:"readonly-activity-icon",mixins:[e.default],data:function(){return{styles:{create:{icon:"add",color:"success"},update:{icon:"check",color:"success"},"soft-delete":{icon:"delete",color:"warning"},delete:{icon:"delete_forever",color:"warning"},authenticate:{icon:"lock_open",color:"dark-gray"},upload:{icon:"cloud_done",color:"accent"},comment:{icon:"chat_bubble_outline",color:"purple"},mention:{icon:"insert_comment",color:"purple"},error:{icon:"error",color:"danger"}}}},computed:{icon:function(){return this.value&&this.styles[this.value.toLowerCase()]?this.styles[this.value.toLowerCase()].icon:"help"},color:function(){return this.value&&this.styles[this.value.toLowerCase()]?this.styles[this.value.toLowerCase()].color:"lighter-gray"},label:function(){if(this.value)switch(this.value.toLowerCase()){case"create":return"Item Created";case"update":return"Item Saved";case"soft-delete":case"delete":return"Item Deleted";case"authenticate":return"Authenticated";case"upload":return"File Uploaded";case"comment":return"Commented";case"mention":return"Mentioned";case"error":return"Error"}return"Unknown Action"}}};exports.default=o; -(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this.$createElement,t=this._self._c||s;return t("div",{style:{color:"var(--"+this.color+")"}},[t("v-progress-ring",{staticClass:"icon",attrs:{radius:17,icon:this.icon,color:this.color,progress:100,stroke:2}}),this._v(" "),t("span",{staticClass:"label"},[t("div",[this._v(this._s(this.label))])])],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-8de398",functional:void 0});})(); +(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this.$createElement,t=this._self._c||s;return t("div",{style:{color:"var(--"+this.color+")"}},[t("v-progress-ring",{staticClass:"icon",attrs:{radius:17,icon:this.icon,color:this.color,progress:100,stroke:2}}),this._v(" "),t("span",{staticClass:"label"},[t("div",[this._v(this._s(this.label))])])],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-42a624",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["dB0v"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/activity-icon/input.css b/public/extensions/core/interfaces/activity-icon/input.css index 816987ebc4..0123c6a5a8 100644 --- a/public/extensions/core/interfaces/activity-icon/input.css +++ b/public/extensions/core/interfaces/activity-icon/input.css @@ -1,3 +1,3 @@ -.small[data-v-26a8b1]{width:100%;max-width:var(--width-medium) +.small[data-v-57a84c]{width:100%;max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/activity-icon/input.js b/public/extensions/core/interfaces/activity-icon/input.js index c9c0ae21c4..8918f0213f 100644 --- a/public/extensions/core/interfaces/activity-icon/input.js +++ b/public/extensions/core/interfaces/activity-icon/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"Ojjw":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var i={name:"interface-activity-icon",mixins:[e.default]};exports.default=i; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("v-input",{staticClass:"small",attrs:{readonly:!0,value:this.value,"icon-left":this.options.iconLeft,"icon-right":this.options.iconRight}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-26a8b1",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("v-input",{staticClass:"small",attrs:{readonly:!0,value:this.value,"icon-left":this.options.iconLeft,"icon-right":this.options.iconRight}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-57a84c",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["Ojjw"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/button-group/input.css b/public/extensions/core/interfaces/button-group/input.css index a8550836dd..80896c8fe8 100644 --- a/public/extensions/core/interfaces/button-group/input.css +++ b/public/extensions/core/interfaces/button-group/input.css @@ -1,59 +1,59 @@ -.button-group-subgroup[data-v-7962a0]{display:inline-flex;flex-wrap:wrap;margin-right:10px +.button-group-subgroup[data-v-34f76f]{display:inline-flex;flex-wrap:wrap;margin-right:10px } -.button-group-button[data-v-7962a0]{border:var(--input-border-width) solid var(--action);cursor:pointer;transition:var(--fast) var(--transition);transition-property:border-color,background-color,color;display:flex;align-items:center;justify-content:center;padding:0 20px;height:40px;line-height:40px;white-space:nowrap;color:var(--action-dark) +.button-group-button[data-v-34f76f]{border:var(--input-border-width) solid var(--action);cursor:pointer;transition:var(--fast) var(--transition);transition-property:border-color,background-color,color;display:flex;align-items:center;justify-content:center;padding:0 20px;height:40px;line-height:40px;white-space:nowrap;color:var(--action-dark) } -.button-group-button[data-v-7962a0]:hover{background-color:var(--light-blue-50) +.button-group-button[data-v-34f76f]:hover{background-color:var(--light-blue-50) } -.button-group-button i[data-v-7962a0]{font-size:18px +.button-group-button i[data-v-34f76f]{font-size:18px } -.button-group-button i+span[data-v-7962a0]{margin-left:4px +.button-group-button i+span[data-v-34f76f]{margin-left:4px } -.button-group-item input[type=radio][data-v-7962a0]{height:0;position:absolute;opacity:0 +.button-group-item input[type=radio][data-v-34f76f]{height:0;position:absolute;opacity:0 } -.button-group-item input[type=radio]:focus+.button-group-button[data-v-7962a0]{background-color:var(--light-blue-50) +.button-group-item input[type=radio]:focus+.button-group-button[data-v-34f76f]{background-color:var(--light-blue-50) } -.button-group-item input[type=radio]:checked+.button-group-button[data-v-7962a0]{background-color:var(--accent);color:var(--white) +.button-group-item input[type=radio]:checked+.button-group-button[data-v-34f76f]{background-color:var(--accent);color:var(--white) } -.button-group-item input[type=radio]:disabled+.button-group-button[data-v-7962a0]{border-color:var(--lighter-gray);background-color:var(--lightest-gray);color:var(--gray);cursor:not-allowed +.button-group-item input[type=radio]:disabled+.button-group-button[data-v-34f76f]{border-color:var(--lighter-gray);background-color:var(--lightest-gray);color:var(--gray);cursor:not-allowed } -.button-group-item input[type=radio]:disabled:checked+.button-group-button[data-v-7962a0]{background-color:var(--lighter-gray);color:var(--gray) +.button-group-item input[type=radio]:disabled:checked+.button-group-button[data-v-34f76f]{background-color:var(--lighter-gray);color:var(--gray) } -.button-group-item+.button-group-item .button-group-button[data-v-7962a0]{margin-left:calc(-1*var(--input-border-width)) +.button-group-item+.button-group-item .button-group-button[data-v-34f76f]{margin-left:calc(-1*var(--input-border-width)) } -.button-group-item:first-child .button-group-button[data-v-7962a0]{border-radius:var(--border-radius) 0 0 var(--border-radius) +.button-group-item:first-child .button-group-button[data-v-34f76f]{border-radius:var(--border-radius) 0 0 var(--border-radius) } -.button-group-item:last-child .button-group-button[data-v-7962a0]{border-radius:0 var(--border-radius) var(--border-radius) 0 +.button-group-item:last-child .button-group-button[data-v-34f76f]{border-radius:0 var(--border-radius) var(--border-radius) 0 } @media only screen and (max-width:800px){ -.button-group-subgroup[data-v-7962a0],.interface-button-group[data-v-7962a0]{display:inline-flex;flex-direction:column +.button-group-subgroup[data-v-34f76f],.interface-button-group[data-v-34f76f]{display:inline-flex;flex-direction:column } -.button-group-subgroup[data-v-7962a0]{margin:0 +.button-group-subgroup[data-v-34f76f]{margin:0 } -.button-group-subgroup+.button-group-subgroup[data-v-7962a0]{margin:10px 0 0 +.button-group-subgroup+.button-group-subgroup[data-v-34f76f]{margin:10px 0 0 } -.button-group-item+.button-group-item .button-group-button[data-v-7962a0]{margin-left:0;margin-top:calc(-1*var(--input-border-width)) +.button-group-item+.button-group-item .button-group-button[data-v-34f76f]{margin-left:0;margin-top:calc(-1*var(--input-border-width)) } -.button-group-item:first-child .button-group-button[data-v-7962a0]{border-radius:var(--border-radius) var(--border-radius) 0 0 +.button-group-item:first-child .button-group-button[data-v-34f76f]{border-radius:var(--border-radius) var(--border-radius) 0 0 } -.button-group-item:last-child .button-group-button[data-v-7962a0]{border-radius:0 0 var(--border-radius) var(--border-radius) +.button-group-item:last-child .button-group-button[data-v-34f76f]{border-radius:0 0 var(--border-radius) var(--border-radius) } } -.button-group-solid .button-group-button[data-v-7962a0]{border:none;background-color:var(--dark-gray);color:var(--white) +.button-group-solid .button-group-button[data-v-34f76f]{border:none;background-color:var(--dark-gray);color:var(--white) } -.button-group-solid .button-group-button[data-v-7962a0]:hover{background-color:var(--darker-gray);color:var(--white) +.button-group-solid .button-group-button[data-v-34f76f]:hover{background-color:var(--darker-gray);color:var(--white) } -.button-group-solid .button-group-item input[type=radio]:focus+.button-group-button[data-v-7962a0]{background-color:var(--darker-gray) +.button-group-solid .button-group-item input[type=radio]:focus+.button-group-button[data-v-34f76f]{background-color:var(--darker-gray) } -.button-group-solid .button-group-item input[type=radio]:checked+.button-group-button[data-v-7962a0]{background-color:var(--accent) +.button-group-solid .button-group-item input[type=radio]:checked+.button-group-button[data-v-34f76f]{background-color:var(--accent) } -.button-group-solid .button-group-item input[type=radio]:disabled+.button-group-button[data-v-7962a0]{background-color:var(--lighter-gray);color:var(--light-gray) +.button-group-solid .button-group-item input[type=radio]:disabled+.button-group-button[data-v-34f76f]{background-color:var(--lighter-gray);color:var(--light-gray) } -.button-group-solid .button-group-item input[type=radio]:disabled:checked+.button-group-button[data-v-7962a0]{background-color:var(--blue-grey-200);color:var(--gray) +.button-group-solid .button-group-item input[type=radio]:disabled:checked+.button-group-button[data-v-34f76f]{background-color:var(--blue-grey-200);color:var(--gray) } -.button-group-solid .button-group-item+.button-group-item .button-group-button[data-v-7962a0]{margin-left:0 +.button-group-solid .button-group-item+.button-group-item .button-group-button[data-v-34f76f]{margin-left:0 } @media only screen and (max-width:800px){ -.button-group-solid .button-group-item+.button-group-item .button-group-button[data-v-7962a0]{margin-top:0 +.button-group-solid .button-group-item+.button-group-item .button-group-button[data-v-34f76f]{margin-top:0 } } \ No newline at end of file diff --git a/public/extensions/core/interfaces/button-group/input.js b/public/extensions/core/interfaces/button-group/input.js index d8fd7bb856..63e8385ed2 100644 --- a/public/extensions/core/interfaces/button-group/input.js +++ b/public/extensions/core/interfaces/button-group/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"DEzu":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("../../../mixins/interface"));function r(e){return e&&e.__esModule?e:{default:e}}var t={name:"interface-button-group",mixins:[e.default],computed:{choices:function(){var e=[],r=[];return this.options.choices.forEach(function(t){Array.isArray(t)?e.push(t):r.push(t)}),e.push(r),e}}};exports.default=t; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"interface-button-group",class:t.options.theme?"button-group-"+t.options.theme:"button-group-outline"},t._l(t.choices,function(e,n){return o("div",{key:"button-group-subgroup-"+n,staticClass:"button-group-subgroup"},t._l(e,function(e,n){return o("label",{key:"button-group-item-"+n,staticClass:"button-group-item"},[o("input",{attrs:{type:"radio",name:t.name,disabled:t.readonly},domProps:{value:e.value,checked:t.value===e.value},on:{change:function(o){t.$emit("input",e.value)}}}),t._v(" "),o("span",{staticClass:"button-group-button"},[e.icon?o("i",{staticClass:"material-icons"},[t._v(t._s(e.icon))]):t._e(),t._v(" "),e.label?o("span",[t._v(t._s(e.label))]):t._e()])])}))}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-7962a0",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"interface-button-group",class:t.options.theme?"button-group-"+t.options.theme:"button-group-outline"},t._l(t.choices,function(e,n){return o("div",{key:"button-group-subgroup-"+n,staticClass:"button-group-subgroup"},t._l(e,function(e,n){return o("label",{key:"button-group-item-"+n,staticClass:"button-group-item"},[o("input",{attrs:{type:"radio",name:t.name,disabled:t.readonly},domProps:{value:e.value,checked:t.value===e.value},on:{change:function(o){t.$emit("input",e.value)}}}),t._v(" "),o("span",{staticClass:"button-group-button"},[e.icon?o("i",{staticClass:"material-icons"},[t._v(t._s(e.icon))]):t._e(),t._v(" "),e.label?o("span",[t._v(t._s(e.label))]):t._e()])])}))}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-34f76f",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["DEzu"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/calendar/input.css b/public/extensions/core/interfaces/calendar/input.css index 1275814f22..0d94c766be 100644 --- a/public/extensions/core/interfaces/calendar/input.css +++ b/public/extensions/core/interfaces/calendar/input.css @@ -1,3 +1,3 @@ .flatpickr-calendar{background:transparent;opacity:0;display:none;text-align:center;visibility:hidden;padding:0;-webkit-animation:none;animation:none;direction:ltr;border:0;font-size:14px;line-height:24px;border-radius:5px;position:absolute;width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-touch-action:manipulation;touch-action:manipulation;background:#fff;-webkit-box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08);box-shadow:1px 0 0 #e6e6e6,-1px 0 0 #e6e6e6,0 1px 0 #e6e6e6,0 -1px 0 #e6e6e6,0 3px 13px rgba(0,0,0,.08)}.flatpickr-calendar.inline,.flatpickr-calendar.open{opacity:1;max-height:640px;visibility:visible}.flatpickr-calendar.open{display:inline-block;z-index:99999}.flatpickr-calendar.animate.open{-webkit-animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1);animation:fpFadeInDown .3s cubic-bezier(.23,1,.32,1)}.flatpickr-calendar.inline{display:block;position:relative;top:2px}.flatpickr-calendar.static{position:absolute;top:calc(100% + 2px)}.flatpickr-calendar.static.open{z-index:999;display:block}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7){-webkit-box-shadow:none!important;box-shadow:none!important}.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1){-webkit-box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-2px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-calendar .hasTime .dayContainer,.flatpickr-calendar .hasWeeks .dayContainer{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.flatpickr-calendar .hasWeeks .dayContainer{border-left:0}.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time{height:40px;border-top:1px solid #e6e6e6}.flatpickr-calendar.noCalendar.hasTime .flatpickr-time{height:auto}.flatpickr-calendar:after,.flatpickr-calendar:before{position:absolute;display:block;pointer-events:none;border:solid transparent;content:"";height:0;width:0;left:22px}.flatpickr-calendar.rightMost:after,.flatpickr-calendar.rightMost:before{left:auto;right:22px}.flatpickr-calendar:before{border-width:5px;margin:0 -5px}.flatpickr-calendar:after{border-width:4px;margin:0 -4px}.flatpickr-calendar.arrowTop:after,.flatpickr-calendar.arrowTop:before{bottom:100%}.flatpickr-calendar.arrowTop:before{border-bottom-color:#e6e6e6}.flatpickr-calendar.arrowTop:after{border-bottom-color:#fff}.flatpickr-calendar.arrowBottom:after,.flatpickr-calendar.arrowBottom:before{top:100%}.flatpickr-calendar.arrowBottom:before{border-top-color:#e6e6e6}.flatpickr-calendar.arrowBottom:after{border-top-color:#fff}.flatpickr-calendar:focus{outline:0}.flatpickr-wrapper{position:relative;display:inline-block}.flatpickr-months{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-months .flatpickr-month{background:transparent;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9);height:28px;line-height:1;text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{text-decoration:none;cursor:pointer;position:absolute;top:0;line-height:16px;height:28px;padding:10px;z-index:3;color:rgba(0,0,0,.9);fill:rgba(0,0,0,.9)}.flatpickr-months .flatpickr-next-month.disabled,.flatpickr-months .flatpickr-prev-month.disabled{display:none}.flatpickr-months .flatpickr-next-month i,.flatpickr-months .flatpickr-prev-month i{position:relative}.flatpickr-months .flatpickr-next-month.flatpickr-prev-month,.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month{left:0}.flatpickr-months .flatpickr-next-month.flatpickr-next-month,.flatpickr-months .flatpickr-prev-month.flatpickr-next-month{right:0}.flatpickr-months .flatpickr-next-month:hover,.flatpickr-months .flatpickr-prev-month:hover{color:#959ea9}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:#f64747}.flatpickr-months .flatpickr-next-month svg,.flatpickr-months .flatpickr-prev-month svg{width:14px;height:14px}.flatpickr-months .flatpickr-next-month svg path,.flatpickr-months .flatpickr-prev-month svg path{-webkit-transition:fill .1s;transition:fill .1s;fill:inherit}.numInputWrapper{position:relative;height:auto}.numInputWrapper input,.numInputWrapper span{display:inline-block}.numInputWrapper input{width:100%}.numInputWrapper input::-ms-clear{display:none}.numInputWrapper span{position:absolute;right:0;width:14px;padding:0 4px 0 2px;height:50%;line-height:50%;opacity:0;cursor:pointer;border:1px solid rgba(57,57,57,.15);-webkit-box-sizing:border-box;box-sizing:border-box}.numInputWrapper span:hover{background:rgba(0,0,0,.1)}.numInputWrapper span:active{background:rgba(0,0,0,.2)}.numInputWrapper span:after{display:block;content:"";position:absolute}.numInputWrapper span.arrowUp{top:0;border-bottom:0}.numInputWrapper span.arrowUp:after{border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:4px solid rgba(57,57,57,.6);top:26%}.numInputWrapper span.arrowDown{top:50%}.numInputWrapper span.arrowDown:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid rgba(57,57,57,.6);top:40%}.numInputWrapper span svg{width:inherit;height:auto}.numInputWrapper span svg path{fill:rgba(0,0,0,.5)}.numInputWrapper:hover{background:rgba(0,0,0,.05)}.numInputWrapper:hover span{opacity:1}.flatpickr-current-month{font-size:135%;line-height:inherit;font-weight:300;color:inherit;position:absolute;width:75%;left:12.5%;padding:6.16px 0 0;line-height:1;height:28px;display:inline-block;text-align:center;-webkit-transform:translateZ(0);transform:translateZ(0)}.flatpickr-current-month span.cur-month{font-family:inherit;font-weight:700;color:inherit;display:inline-block;margin-left:.5ch;padding:0}.flatpickr-current-month span.cur-month:hover{background:rgba(0,0,0,.05)}.flatpickr-current-month .numInputWrapper{width:6ch;width:7ch\0;display:inline-block}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:rgba(0,0,0,.9)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:rgba(0,0,0,.9)}.flatpickr-current-month input.cur-year{background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;cursor:text;padding:0 0 0 .5ch;margin:0;display:inline-block;font-size:inherit;font-family:inherit;font-weight:300;line-height:inherit;height:auto;border:0;border-radius:0;vertical-align:initial}.flatpickr-current-month input.cur-year:focus{outline:0}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{font-size:100%;color:rgba(0,0,0,.5);background:transparent;pointer-events:none}.flatpickr-weekdays{background:transparent;text-align:center;overflow:hidden;width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;height:28px}.flatpickr-weekdays,.flatpickr-weekdays .flatpickr-weekdaycontainer{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}span.flatpickr-weekday{cursor:default;font-size:90%;background:transparent;color:rgba(0,0,0,.54);line-height:1;margin:0;text-align:center;display:block;font-weight:bolder}.dayContainer,.flatpickr-weeks{padding:1px 0 0}.flatpickr-days{position:relative;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;width:307.875px}.flatpickr-days:focus{outline:0}.dayContainer{padding:0;outline:0;text-align:left;width:307.875px;min-width:307.875px;max-width:307.875px;-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;display:-ms-flexbox;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-wrap:wrap;-ms-flex-pack:justify;-webkit-justify-content:space-around;justify-content:space-around;-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}.dayContainer+.dayContainer{-webkit-box-shadow:-1px 0 0 #e6e6e6;box-shadow:-1px 0 0 #e6e6e6}.flatpickr-day{background:none;border:1px solid transparent;border-radius:150px;-webkit-box-sizing:border-box;box-sizing:border-box;color:#393939;cursor:pointer;font-weight:400;width:14.2857143%;-webkit-flex-basis:14.2857143%;-ms-flex-preferred-size:14.2857143%;flex-basis:14.2857143%;max-width:39px;height:39px;line-height:39px;margin:0;display:inline-block;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{cursor:pointer;outline:0;background:#e6e6e6;border-color:#e6e6e6}.flatpickr-day.today{border-color:#959ea9}.flatpickr-day.today:focus,.flatpickr-day.today:hover{border-color:#959ea9;background:#959ea9;color:#fff}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:#569ff7;-webkit-box-shadow:none;box-shadow:none;color:#fff;border-color:#569ff7}.flatpickr-day.endRange.startRange,.flatpickr-day.selected.startRange,.flatpickr-day.startRange.startRange{border-radius:50px 0 0 50px}.flatpickr-day.endRange.endRange,.flatpickr-day.selected.endRange,.flatpickr-day.startRange.endRange{border-radius:0 50px 50px 0}.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)){-webkit-box-shadow:-10px 0 0 #569ff7;box-shadow:-10px 0 0 #569ff7}.flatpickr-day.endRange.startRange.endRange,.flatpickr-day.selected.startRange.endRange,.flatpickr-day.startRange.startRange.endRange{border-radius:50px}.flatpickr-day.inRange{border-radius:0;-webkit-box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6;box-shadow:-5px 0 0 #e6e6e6,5px 0 0 #e6e6e6}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:rgba(57,57,57,.3);background:transparent;border-color:transparent;cursor:default}.flatpickr-day.disabled,.flatpickr-day.disabled:hover{cursor:not-allowed;color:rgba(57,57,57,.1)}.flatpickr-day.week.selected{border-radius:0;-webkit-box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7;box-shadow:-5px 0 0 #569ff7,5px 0 0 #569ff7}.flatpickr-day.hidden{visibility:hidden}.rangeMode .flatpickr-day{margin-top:1px}.flatpickr-weekwrapper{display:inline-block;float:left}.flatpickr-weekwrapper .flatpickr-weeks{padding:0 12px;-webkit-box-shadow:1px 0 0 #e6e6e6;box-shadow:1px 0 0 #e6e6e6}.flatpickr-weekwrapper .flatpickr-weekday{float:none;width:100%;line-height:28px}.flatpickr-weekwrapper span.flatpickr-day,.flatpickr-weekwrapper span.flatpickr-day:hover{display:block;width:100%;max-width:none;color:rgba(57,57,57,.3);background:transparent;cursor:default;border:none}.flatpickr-innerContainer{display:block;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden}.flatpickr-innerContainer,.flatpickr-rContainer{-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-rContainer{display:inline-block;padding:0}.flatpickr-time{text-align:center;outline:0;display:block;height:0;line-height:40px;max-height:40px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.flatpickr-time:after{content:"";display:table;clear:both}.flatpickr-time .numInputWrapper{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;width:40%;height:40px;float:left}.flatpickr-time .numInputWrapper span.arrowUp:after{border-bottom-color:#393939}.flatpickr-time .numInputWrapper span.arrowDown:after{border-top-color:#393939}.flatpickr-time.hasSeconds .numInputWrapper{width:26%}.flatpickr-time.time24hr .numInputWrapper{width:49%}.flatpickr-time input{background:transparent;-webkit-box-shadow:none;box-shadow:none;border:0;border-radius:0;text-align:center;margin:0;padding:0;height:inherit;line-height:inherit;color:#393939;font-size:14px;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box}.flatpickr-time input.flatpickr-hour{font-weight:700}.flatpickr-time input.flatpickr-minute,.flatpickr-time input.flatpickr-second{font-weight:400}.flatpickr-time input:focus{outline:0;border:0}.flatpickr-time .flatpickr-am-pm,.flatpickr-time .flatpickr-time-separator{height:inherit;display:inline-block;float:left;line-height:inherit;color:#393939;font-weight:700;width:2%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.flatpickr-time .flatpickr-am-pm{outline:0;width:18%;cursor:pointer;text-align:center;font-weight:400}.flatpickr-time .flatpickr-am-pm:focus,.flatpickr-time .flatpickr-am-pm:hover,.flatpickr-time input:focus,.flatpickr-time input:hover{background:#f3f3f3}.flatpickr-input[readonly]{cursor:pointer}@-webkit-keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}@keyframes fpFadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-20px,0);transform:translate3d(0,-20px,0)}to{opacity:1;-webkit-transform:translateZ(0);transform:translateZ(0)}}.flatpickr-calendar{box-shadow:var(--box-shadow);border-radius:var(--border-radius);max-width:var(--width-medium)}.flatpickr-calendar,.flatpickr-rContainer{width:var(--width-medium)}.flatpickr-input{display:none}.dayContainer,.flatpickr-days{width:100%;min-width:100%;max-width:100%}.flatpickr-day{transition:var(--fast) var(--transition);max-width:36px;height:36px;line-height:34px;color:var(--gray);margin:3px}.flatpickr-day.endRange,.flatpickr-day.endRange.inRange,.flatpickr-day.endRange.nextMonthDay,.flatpickr-day.endRange.prevMonthDay,.flatpickr-day.endRange:focus,.flatpickr-day.endRange:hover,.flatpickr-day.selected,.flatpickr-day.selected.inRange,.flatpickr-day.selected.nextMonthDay,.flatpickr-day.selected.prevMonthDay,.flatpickr-day.selected:focus,.flatpickr-day.selected:hover,.flatpickr-day.startRange,.flatpickr-day.startRange.inRange,.flatpickr-day.startRange.nextMonthDay,.flatpickr-day.startRange.prevMonthDay,.flatpickr-day.startRange:focus,.flatpickr-day.startRange:hover{background:var(--darker-gray);border-color:var(--darker-gray)}.flatpickr-day.disabled,.flatpickr-day.disabled:hover,.flatpickr-day.nextMonthDay,.flatpickr-day.notAllowed,.flatpickr-day.notAllowed.nextMonthDay,.flatpickr-day.notAllowed.prevMonthDay,.flatpickr-day.prevMonthDay{color:var(--lighter-gray)}.flatpickr-months .flatpickr-month,.flatpickr-weekdays{background:var(--darker-gray)}span.flatpickr-weekday{color:var(--light-gray);font-weight:500}.flatpickr-day.inRange,.flatpickr-day.nextMonthDay.inRange,.flatpickr-day.nextMonthDay.today.inRange,.flatpickr-day.nextMonthDay:focus,.flatpickr-day.nextMonthDay:hover,.flatpickr-day.prevMonthDay.inRange,.flatpickr-day.prevMonthDay.today.inRange,.flatpickr-day.prevMonthDay:focus,.flatpickr-day.prevMonthDay:hover,.flatpickr-day.today.inRange,.flatpickr-day:focus,.flatpickr-day:hover{border-color:var(--lightest-gray);background-color:var(--lightest-gray)}.flatpickr-day.today{border-color:var(--lighter-gray)}.flatpickr-months .flatpickr-month,.flatpickr-months .flatpickr-next-month,.flatpickr-months .flatpickr-prev-month{color:var(--white);fill:var(--white)}.flatpickr-current-month .numInputWrapper span.arrowDown:after{border-top-color:var(--white)}.flatpickr-current-month .numInputWrapper span.arrowUp:after{border-bottom-color:var(--white)}.flatpickr-months .flatpickr-next-month:hover svg,.flatpickr-months .flatpickr-prev-month:hover svg{fill:var(--light-gray)}.flatpickr-months .flatpickr-month{height:var(--input-height)}.flatpickr-current-month input.cur-year[disabled],.flatpickr-current-month input.cur-year[disabled]:hover{color:hsla(0,0%,100%,.5)}.flatpickr-current-month input.cur-year{font-weight:400}.inactive .flatpickr-calendar:before{position:absolute;left:0;background-color:var(--dark-gray);opacity:.3;z-index:10;width:inherit;height:100%;border-width:0;margin:0;border-radius:0 0 var(--border-radius) var(--border-radius)} -.inactive[data-v-3b2d6f]{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none +.inactive[data-v-be1548]{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none } \ No newline at end of file diff --git a/public/extensions/core/interfaces/calendar/input.js b/public/extensions/core/interfaces/calendar/input.js index 58d5a78ca4..df4cc49521 100644 --- a/public/extensions/core/interfaces/calendar/input.js +++ b/public/extensions/core/interfaces/calendar/input.js @@ -11,5 +11,5 @@ module.exports={props:{name:{type:String,required:!0},value:{type:null,default:n },{}],"HsJH":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("vue-flatpickr-component")),t=i(require("../../../mixins/interface"));function i(e){return e&&e.__esModule?e:{default:e}}require("flatpickr/dist/flatpickr.css"),require("./calendar.css");var r={name:"interface-calendar",computed:{configs:function(){return{inline:!0,minDate:this.options.min,maxDate:this.options.max,dateFormat:"Y-m-d"}}},mixins:[t.default],components:{flatPickr:e.default}};exports.default=r; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{inactive:t.readonly}},[n("flat-pickr",{staticClass:"form-control",attrs:{config:t.configs,value:t.value},on:{input:function(e){t.$emit("input",e)}}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3b2d6f",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{inactive:t.readonly}},[n("flat-pickr",{staticClass:"form-control",attrs:{config:t.configs,value:t.value},on:{input:function(e){t.$emit("input",e)}}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-be1548",functional:void 0});})(); },{"vue-flatpickr-component":"xhfO","../../../mixins/interface":"QdEO","flatpickr/dist/flatpickr.css":"IyDv","./calendar.css":"IyDv"}]},{},["HsJH"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/checkboxes/input.css b/public/extensions/core/interfaces/checkboxes/input.css index d25463ecaa..33a9f96108 100644 --- a/public/extensions/core/interfaces/checkboxes/input.css +++ b/public/extensions/core/interfaces/checkboxes/input.css @@ -1,3 +1,3 @@ -.interface-checkboxes[data-v-a2b3c6]{max-width:var(--width-x-large);display:grid;grid-gap:20px;grid-template-columns:repeat(4,1fr) +.interface-checkboxes[data-v-a29732]{max-width:var(--width-x-large);display:grid;grid-gap:20px;grid-template-columns:repeat(4,1fr) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/checkboxes/input.js b/public/extensions/core/interfaces/checkboxes/input.js index 75558529d1..10bb47ce70 100644 --- a/public/extensions/core/interfaces/checkboxes/input.js +++ b/public/extensions/core/interfaces/checkboxes/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"mD6a":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}function r(t){return o(t)||i(t)||n()}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function i(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function o(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e2&&(t.pop(),t.shift()),t}},methods:{updateValue:function(t){var e=r(this.selection);e.includes(t)?e.splice(e.indexOf(t),1):e.push(t),e=e.join(","),this.options.wrap&&e.length>0&&(e=",".concat(e,",")),"array"===this.type&&(e=e.split(",")),this.$emit("input",e)}}};exports.default=s; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,c=e._self._c||t;return c("div",{staticClass:"interface-checkboxes"},e._l(e.options.choices,function(t,n){return c("v-checkbox",{key:t,attrs:{id:t,value:n,disabled:e.readonly,label:t,checked:e.selection.includes(n)},on:{change:function(t){e.updateValue(n,t)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-a2b3c6",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"interface-checkboxes"},e._l(e.options.choices,function(t,c){return n("v-checkbox",{key:t,attrs:{id:t,value:c,disabled:e.readonly,label:t,checked:e.selection.includes(c)},on:{change:function(t){e.updateValue(c,t)}}})}),1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-a29732",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["mD6a"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/code/display.css b/public/extensions/core/interfaces/code/display.css index 3d4e0ae036..525844e1f4 100644 --- a/public/extensions/core/interfaces/code/display.css +++ b/public/extensions/core/interfaces/code/display.css @@ -1,5 +1,5 @@ -i.material-icons[data-v-c26ed9]{cursor:help +i.material-icons[data-v-9178d3]{cursor:help } -i.material-icons.empty[data-v-c26ed9]{color:var(--lighter-gray) +i.material-icons.empty[data-v-9178d3]{color:var(--lighter-gray) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/code/display.js b/public/extensions/core/interfaces/code/display.js index ac332e39e9..5fee96e955 100644 --- a/public/extensions/core/interfaces/code/display.js +++ b/public/extensions/core/interfaces/code/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"vsOw":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var n={name:"readonly-code",mixins:[t.default],computed:{lineCount:function(){return this.value?this.value.split(/\r\n|\r|\n/).length:0},availableTypes:function(){return{"text/javascript":"JavaScript","application/json":"JSON","text/x-vue":"Vue","application/x-httpd-php":"PHP"}},language:function(){return this.availableTypes[this.options.language]},tooltipCopy:function(){return this.$tc("interfaces-code-loc",this.lineCount,{count:this.lineCount,lang:this.language})},empty:function(){return 0===this.lineCount}}};exports.default=n; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.tooltipCopy,expression:"tooltipCopy"}],staticClass:"material-icons",class:{empty:this.empty}},[this._v("code")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-c26ed9",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.tooltipCopy,expression:"tooltipCopy"}],staticClass:"material-icons",class:{empty:this.empty}},[this._v("code")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-9178d3",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["vsOw"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/code/input.css b/public/extensions/core/interfaces/code/input.css index ad61f1c269..adb4ddee57 100644 --- a/public/extensions/core/interfaces/code/input.css +++ b/public/extensions/core/interfaces/code/input.css @@ -1,13 +1,13 @@ .CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}.CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}.CodeMirror{transition:all var(--fast) var(--transition);font-weight:inherit;font-family:Roboto Mono;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);color:var(--gray);line-height:18px;height:auto;width:100%;margin-bottom:20px}.CodeMirror:hover{transition:none;border-color:var(--light-gray)}.CodeMirror-scroll{min-height:200px;max-height:460px}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#e1f0fa}.CodeMirror.CodeMirror-focused{border-color:var(--accent);color:var(--darker-gray)}.cm-matchhighlight{background-color:var(--lightest-gray);border-radius:var(--border-radius)}.CodeMirror-selection-highlight-scrollbar{background-color:var(--green)}.CodeMirror-activeline-background{background:var(--body-background)}.inactive .CodeMirror:before{position:absolute;background-color:var(--dark-gray);opacity:.1;cursor:not-allowed;z-index:100;width:100%;height:100%;content:""}.CodeMirror pre{padding:0 10px}.CodeMirror-gutters{background:var(--body-background)}.CodeMirror-linenumber{color:var(--lighter-gray)}.cm-s-default .cm-keyword{color:var(--purple-800)}.cm-s-default .cm-string{color:var(--green)}.cm-s-default .cm-string-2{color:var(--deep-orange-800)}.cm-s-default .cm-def{color:var(--blue-900)}.cm-s-default .cm-tag{color:var(--green-800)}.cm-s-default .cm-meta{color:var(--grey-700)}.cm-s-default .cm-number{color:var(--orange-500)}.cm-s-default .cm-atom{color:var(--accent)}.cm-s-default .cm-attribute{color:var(--indigo-800)}.cm-s-default .cm-comment{color:var(--light-gray)}.CodeMirror .CodeMirror-matchingbracket{color:inherit;border-bottom:1px solid var(--accent)}.CodeMirror .CodeMirror-nonmatchingbracket{color:var(--red)} -.interface-code[data-v-3062b4]{position:relative;width:100%;max-width:var(--width-x-large);font-size:13px +.interface-code[data-v-57fc1d]{position:relative;width:100%;max-width:var(--width-x-large);font-size:13px } -.interface-code[data-v-3062b4]:focus{border-color:var(--accent) +.interface-code[data-v-57fc1d]:focus{border-color:var(--accent) } -small[data-v-3062b4]{right:0;bottom:-20px;font-style:italic;text-align:right +small[data-v-57fc1d]{right:0;bottom:-20px;font-style:italic;text-align:right } -button[data-v-3062b4],small[data-v-3062b4]{position:absolute;color:var(--light-gray) +button[data-v-57fc1d],small[data-v-57fc1d]{position:absolute;color:var(--light-gray) } -button[data-v-3062b4]{top:10px;right:10px;user-select:none;cursor:pointer;transition:color var(--fast) var(--transition-out);z-index:10 +button[data-v-57fc1d]{top:10px;right:10px;user-select:none;cursor:pointer;transition:color var(--fast) var(--transition-out);z-index:10 } -button[data-v-3062b4]:hover{transition:none;color:var(--dark-gray) +button[data-v-57fc1d]:hover{transition:none;color:var(--dark-gray) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/code/input.js b/public/extensions/core/interfaces/code/input.js index 83d5388593..cddc02d4d8 100644 --- a/public/extensions/core/interfaces/code/input.js +++ b/public/extensions/core/interfaces/code/input.js @@ -98,6 +98,6 @@ var e;!function(t){"object"==typeof exports&&"object"==typeof module?t(require(" },{"../lib/codemirror":"kyCI","../addon/search/searchcursor":"VnAw","../addon/edit/matchbrackets":"Bl/E"}],"QdEO":[function(require,module,exports) { module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"6M6Z":[function(require,module,exports) { -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-codemirror");require("codemirror/lib/codemirror.css"),require("codemirror/mode/vue/vue.js"),require("codemirror/mode/javascript/javascript.js"),require("codemirror/mode/php/php.js"),require("codemirror/addon/selection/active-line.js"),require("codemirror/addon/selection/mark-selection.js"),require("codemirror/addon/search/searchcursor.js"),require("codemirror/addon/hint/show-hint.js"),require("codemirror/addon/hint/show-hint.css"),require("codemirror/addon/hint/javascript-hint.js"),require("codemirror/addon/scroll/annotatescrollbar.js"),require("codemirror/addon/search/matchesonscrollbar.js"),require("codemirror/addon/search/match-highlighter.js"),require("codemirror/addon/edit/matchbrackets.js"),require("codemirror/addon/comment/comment.js"),require("codemirror/addon/dialog/dialog.js"),require("codemirror/addon/dialog/dialog.css"),require("codemirror/addon/search/search.js"),require("codemirror/addon/display/autorefresh.js"),require("codemirror/keymap/sublime.js"),require("./code.css");var r=i(require("../../../mixins/interface"));function i(e){return e&&e.__esModule?e:{default:e}}function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o={name:"interface-code",mixins:[r.default],components:{codemirror:e.codemirror},data:function(){return{lineCount:0,cmOptions:{tabSize:4,autoRefresh:!0,indentUnit:4,styleActiveLine:!0,lineNumbers:this.options.lineNumber,readOnly:!!this.readonly&&"nocursor",styleSelectedText:!0,line:!0,highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},mode:this.options.language,hintOptions:{completeSingle:!0},keyMap:"sublime",matchBrackets:!0,showCursorWhenSelecting:!0,theme:"default",extraKeys:{Ctrl:"autocomplete"}}}},mounted:function(){var e=this.$refs.codemirrorEl.codemirror;this.lineCount=e.lineCount()},watch:{options:function(e,r){e.language!==r.language&&this.$set(this.cmOptions,"mode",e.language),e.lineNumber!==r.lineNumber&&this.$set(this.cmOptions,"lineNumbers",e.lineNumber)}},computed:{availableTypes:function(){return{"text/plain":"Plain Text","text/javascript":"JavaScript","application/json":"JSON","text/x-vue":"Vue","application/x-httpd-php":"PHP"}},language:function(){return this.availableTypes[this.options.language]},stringValue:function(){return null==this.value?null:"object"===t(this.value)?JSON.stringify(this.value,null,4):this.value}},methods:{onInput:function(e){var r=this.$refs.codemirrorEl.codemirror;if(this.lineCount!==r.lineCount()&&(this.lineCount=r.lineCount()),"application/json"===this.options.language)try{return this.$emit("input",JSON.parse(e.replace("\n","")))}catch(i){return this.$emit("input",e)}this.$emit("input",e)},fillTemplate:function(){if(this.$lodash.isObject(this.options.template))return this.$emit("input",JSON.stringify(this.options.template,null,4));this.$emit("input",this.options.template)}}};exports.default=o; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"interface-code",class:{inactive:e.readonly}},[i("codemirror",{ref:"codemirrorEl",attrs:{options:e.cmOptions,value:e.stringValue},on:{input:e.onInput}}),e._v(" "),e.options.template?i("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("interfaces-code-fill_template"),expression:"$t('interfaces-code-fill_template')"}],on:{click:e.fillTemplate}},[i("i",{staticClass:"material-icons"},[e._v("playlist_add")])]):e._e(),e._v(" "),i("small",{staticClass:"line-count"},[e._v(" "+e._s(e.$tc("interfaces-code-loc",e.lineCount,{count:e.lineCount,lang:e.language}))+" ")])],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3062b4",functional:void 0});})(); +"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=require("vue-codemirror");require("codemirror/lib/codemirror.css"),require("codemirror/mode/vue/vue.js"),require("codemirror/mode/javascript/javascript.js"),require("codemirror/mode/php/php.js"),require("codemirror/addon/selection/active-line.js"),require("codemirror/addon/selection/mark-selection.js"),require("codemirror/addon/search/searchcursor.js"),require("codemirror/addon/hint/show-hint.js"),require("codemirror/addon/hint/show-hint.css"),require("codemirror/addon/hint/javascript-hint.js"),require("codemirror/addon/scroll/annotatescrollbar.js"),require("codemirror/addon/search/matchesonscrollbar.js"),require("codemirror/addon/search/match-highlighter.js"),require("codemirror/addon/edit/matchbrackets.js"),require("codemirror/addon/comment/comment.js"),require("codemirror/addon/dialog/dialog.js"),require("codemirror/addon/dialog/dialog.css"),require("codemirror/addon/search/search.js"),require("codemirror/addon/display/autorefresh.js"),require("codemirror/keymap/sublime.js"),require("./code.css");var r=i(require("../../../mixins/interface"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var t={name:"interface-code",mixins:[r.default],components:{codemirror:e.codemirror},data:function(){return{lineCount:0,cmOptions:{tabSize:4,autoRefresh:!0,indentUnit:4,styleActiveLine:!0,lineNumbers:this.options.lineNumber,readOnly:!!this.readonly&&"nocursor",styleSelectedText:!0,line:!0,highlightSelectionMatches:{showToken:/\w/,annotateScrollbar:!0},mode:this.options.language,hintOptions:{completeSingle:!0},keyMap:"sublime",matchBrackets:!0,showCursorWhenSelecting:!0,theme:"default",extraKeys:{Ctrl:"autocomplete"}}}},mounted:function(){var e=this.$refs.codemirrorEl.codemirror;this.lineCount=e.lineCount()},watch:{options:function(e,r){e.language!==r.language&&this.$set(this.cmOptions,"mode",e.language),e.lineNumber!==r.lineNumber&&this.$set(this.cmOptions,"lineNumbers",e.lineNumber)}},computed:{availableTypes:function(){return{"text/plain":"Plain Text","text/javascript":"JavaScript","application/json":"JSON","text/x-vue":"Vue","application/x-httpd-php":"PHP"}},language:function(){return this.availableTypes[this.options.language]},stringValue:function(){return null==this.value?null:"object"===o(this.value)?JSON.stringify(this.value,null,4):this.value}},methods:{onInput:function(e){var r=this.$refs.codemirrorEl.codemirror;this.lineCount!==r.lineCount()&&(this.lineCount=r.lineCount()),this.$emit("input",e)},fillTemplate:function(){if(this.$lodash.isObject(this.options.template))return this.$emit("input",JSON.stringify(this.options.template,null,4));this.$emit("input",this.options.template)}}};exports.default=t; +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"interface-code",class:{inactive:e.readonly}},[i("codemirror",{ref:"codemirrorEl",attrs:{options:e.cmOptions,value:e.stringValue},on:{input:e.onInput}}),e._v(" "),e.options.template?i("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("interfaces-code-fill_template"),expression:"$t('interfaces-code-fill_template')"}],on:{click:e.fillTemplate}},[i("i",{staticClass:"material-icons"},[e._v("playlist_add")])]):e._e(),e._v(" "),i("small",{staticClass:"line-count"},[e._v(" "+e._s(e.$tc("interfaces-code-loc",e.lineCount,{count:e.lineCount,lang:e.language}))+" ")])],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-57fc1d",functional:void 0});})(); },{"vue-codemirror":"mEzW","codemirror/lib/codemirror.css":"yTfC","codemirror/mode/vue/vue.js":"+c2d","codemirror/mode/javascript/javascript.js":"3pNU","codemirror/mode/php/php.js":"HRrC","codemirror/addon/selection/active-line.js":"F9rH","codemirror/addon/selection/mark-selection.js":"BwTv","codemirror/addon/search/searchcursor.js":"VnAw","codemirror/addon/hint/show-hint.js":"u+lD","codemirror/addon/hint/show-hint.css":"yTfC","codemirror/addon/hint/javascript-hint.js":"GCym","codemirror/addon/scroll/annotatescrollbar.js":"UK68","codemirror/addon/search/matchesonscrollbar.js":"LpEv","codemirror/addon/search/match-highlighter.js":"ZMuI","codemirror/addon/edit/matchbrackets.js":"Bl/E","codemirror/addon/comment/comment.js":"gl/8","codemirror/addon/dialog/dialog.js":"a+JB","codemirror/addon/dialog/dialog.css":"yTfC","codemirror/addon/search/search.js":"1IGx","codemirror/addon/display/autorefresh.js":"UyhZ","codemirror/keymap/sublime.js":"EDpt","./code.css":"yTfC","../../../mixins/interface":"QdEO"}]},{},["6M6Z"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/collections/input.css b/public/extensions/core/interfaces/collections/input.css index 087e249185..529b46099f 100644 --- a/public/extensions/core/interfaces/collections/input.css +++ b/public/extensions/core/interfaces/collections/input.css @@ -1,3 +1,3 @@ -.v-select[data-v-16c1a1]{margin-top:0;max-width:var(--width-medium) +.v-select[data-v-d127e5]{margin-top:0;max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/collections/input.js b/public/extensions/core/interfaces/collections/input.js index 2c4c6ae4b1..72b5a0d20b 100644 --- a/public/extensions/core/interfaces/collections/input.js +++ b/public/extensions/core/interfaces/collections/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"A7QU":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var s={mixins:[e.default],computed:{choices:function(){var e=this,t=this.$store.state.collections||{},s=this.options.include_system,i={};return Object.keys(t).forEach(function(t){!1===s&&t.startsWith("directus_")||(i[t]=e.$helpers.formatTitle(t))}),i}}};exports.default=s; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-select",{attrs:{value:e.value,disabled:e.readonly,id:e.name,options:e.choices,placeholder:e.options.placeholder},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-16c1a1",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-select",{attrs:{value:e.value,disabled:e.readonly,id:e.name,options:e.choices,placeholder:e.options.placeholder},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-d127e5",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["A7QU"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/color-palette/display.css b/public/extensions/core/interfaces/color-palette/display.css index 33c809ceb7..03155ecfa5 100644 --- a/public/extensions/core/interfaces/color-palette/display.css +++ b/public/extensions/core/interfaces/color-palette/display.css @@ -1,3 +1,3 @@ -div[data-v-766118]{width:20px;height:20px;border-radius:50%;border:2px solid var(--white) +div[data-v-32546e]{width:20px;height:20px;border-radius:50%;border:2px solid var(--white) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/color-palette/display.js b/public/extensions/core/interfaces/color-palette/display.js index 5d97355465..d3d10e3c32 100644 --- a/public/extensions/core/interfaces/color-palette/display.js +++ b/public/extensions/core/interfaces/color-palette/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"R4Ds":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],computed:{tooltipValue:function(){return this.value?this.$helpers.formatTitle(this.value):null}}};exports.default=u; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.tooltipValue,expression:"tooltipValue"}],style:{backgroundColor:"var(--"+this.value+")"}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-766118",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.tooltipValue,expression:"tooltipValue"}],style:{backgroundColor:"var(--"+this.value+")"}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-32546e",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["R4Ds"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/color-palette/input.css b/public/extensions/core/interfaces/color-palette/input.css index 008682399d..52781af011 100644 --- a/public/extensions/core/interfaces/color-palette/input.css +++ b/public/extensions/core/interfaces/color-palette/input.css @@ -1,25 +1,25 @@ -.interface-color-picker[data-v-648085]{position:relative;--swatch-size:20px;display:flex;flex-direction:column;flex-wrap:wrap;height:calc(var(--swatch-size)*11);width:calc(var(--swatch-size)*18);margin-bottom:var(--swatch-size) +.interface-color-picker[data-v-449b0e]{position:relative;--swatch-size:20px;display:flex;flex-direction:column;flex-wrap:wrap;height:calc(var(--swatch-size)*11);width:calc(var(--swatch-size)*18);margin-bottom:var(--swatch-size) } -.interface-color-picker button[data-v-648085]{flex-basis:var(--swatch-size);width:var(--swatch-size);height:var(--swatch-size);display:block;transform:scale(1);transition:transform var(--fast) var(--transition-in) +.interface-color-picker button[data-v-449b0e]{flex-basis:var(--swatch-size);width:var(--swatch-size);height:var(--swatch-size);display:block;transform:scale(1);transition:transform var(--fast) var(--transition-in) } -.interface-color-picker button[data-v-648085]:hover{transition:none;transform:scale(1.4);z-index:1;box-shadow:var(--box-shadow) +.interface-color-picker button[data-v-449b0e]:hover{transition:none;transform:scale(1.4);z-index:1;box-shadow:var(--box-shadow) } -.interface-color-picker button i[data-v-648085]{font-size:18px;margin-top:-3px;color:var(--white) +.interface-color-picker button i[data-v-449b0e]{font-size:18px;margin-top:-3px;color:var(--white) } -.interface-color-picker button i.dark[data-v-648085]{color:var(--black) +.interface-color-picker button i.dark[data-v-449b0e]{color:var(--black) } -.interface-color-picker button[data-v-648085]:last-child{flex-grow:1;position:absolute;left:50%;top:calc(var(--swatch-size)*11);width:50% +.interface-color-picker button[data-v-449b0e]:last-child{flex-grow:1;position:absolute;left:50%;top:calc(var(--swatch-size)*11);width:50% } -.interface-color-picker button[data-v-648085]:last-child:hover{transform:scale(1.1) +.interface-color-picker button[data-v-449b0e]:last-child:hover{transform:scale(1.1) } -.interface-color-picker button[data-v-648085]:nth-last-child(2){flex-grow:1;border:1px solid var(--lightest-gray);position:absolute;left:0;top:calc(var(--swatch-size)*11);width:50% +.interface-color-picker button[data-v-449b0e]:nth-last-child(2){flex-grow:1;border:1px solid var(--lightest-gray);position:absolute;left:0;top:calc(var(--swatch-size)*11);width:50% } -.interface-color-picker button[data-v-648085]:nth-last-child(2):hover{transform:scale(1.1) +.interface-color-picker button[data-v-449b0e]:nth-last-child(2):hover{transform:scale(1.1) } -.interface-color-picker button[disabled=disabled][data-v-648085]{cursor:not-allowed;filter:grayscale(1) +.interface-color-picker button[disabled=disabled][data-v-449b0e]{cursor:not-allowed;filter:grayscale(1) } -.interface-color-picker button[disabled=disabled].active[data-v-648085]{filter:none +.interface-color-picker button[disabled=disabled].active[data-v-449b0e]{filter:none } -.interface-color-picker button[disabled=disabled][data-v-648085]:hover{transform:none;transition:none +.interface-color-picker button[disabled=disabled][data-v-449b0e]:hover{transform:none;transition:none } \ No newline at end of file diff --git a/public/extensions/core/interfaces/color-palette/input.js b/public/extensions/core/interfaces/color-palette/input.js index c209ade182..3e4e8db2d7 100644 --- a/public/extensions/core/interfaces/color-palette/input.js +++ b/public/extensions/core/interfaces/color-palette/input.js @@ -6,5 +6,5 @@ module.exports={props:{name:{type:String,required:!0},value:{type:null,default:n module.exports=["red","red-50","red-100","red-200","red-300","red-400","red-500","red-600","red-700","red-800","red-900","pink","pink-50","pink-100","pink-200","pink-300","pink-400","pink-500","pink-600","pink-700","pink-800","pink-900","purple","purple-50","purple-100","purple-200","purple-300","purple-400","purple-500","purple-600","purple-700","purple-800","purple-900","deep-purple","deep-purple-50","deep-purple-100","deep-purple-200","deep-purple-300","deep-purple-400","deep-purple-500","deep-purple-600","deep-purple-700","deep-purple-800","deep-purple-900","indigo","indigo-50","indigo-100","indigo-200","indigo-300","indigo-400","indigo-500","indigo-600","indigo-700","indigo-800","indigo-900","blue","blue-50","blue-100","blue-200","blue-300","blue-400","blue-500","blue-600","blue-700","blue-800","blue-900","light-blue","light-blue-50","light-blue-100","light-blue-200","light-blue-300","light-blue-400","light-blue-500","light-blue-600","light-blue-700","light-blue-800","light-blue-900","teal","teal-50","teal-100","teal-200","teal-300","teal-400","teal-500","teal-600","teal-700","teal-800","teal-900","green","green-50","green-100","green-200","green-300","green-400","green-500","green-600","green-700","green-800","green-900","light-green","light-green-50","light-green-100","light-green-200","light-green-300","light-green-400","light-green-500","light-green-600","light-green-700","light-green-800","light-green-900","lime","lime-50","lime-100","lime-200","lime-300","lime-400","lime-500","lime-600","lime-700","lime-800","lime-900","yellow","yellow-50","yellow-100","yellow-200","yellow-300","yellow-400","yellow-500","yellow-600","yellow-700","yellow-800","yellow-900","amber","amber-50","amber-100","amber-200","amber-300","amber-400","amber-500","amber-600","amber-700","amber-800","amber-900","orange","orange-50","orange-100","orange-200","orange-300","orange-400","orange-500","orange-600","orange-700","orange-800","orange-900","deep-orange","deep-orange-50","deep-orange-100","deep-orange-200","deep-orange-300","deep-orange-400","deep-orange-500","deep-orange-600","deep-orange-700","deep-orange-800","deep-orange-900","brown","brown-50","brown-100","brown-200","brown-300","brown-400","brown-500","brown-600","brown-700","brown-800","brown-900","grey","grey-50","grey-100","grey-200","grey-300","grey-400","grey-500","grey-600","grey-700","grey-800","grey-900","blue-grey","blue-grey-50","blue-grey-100","blue-grey-200","blue-grey-300","blue-grey-400","blue-grey-500","blue-grey-600","blue-grey-700","blue-grey-800","blue-grey-900","white","black"]; },{}],"c14L":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("../../../mixins/interface")),t=o(require("hex-rgb")),r=o(require("./colors.json"));function o(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],computed:{colors:function(){return r.default}},methods:{useDarkIconColor:function(e){var r=getComputedStyle(document.documentElement).getPropertyValue("--".concat(e)).trim(),o=(0,t.default)(r,{format:"array"}).map(function(e){return e/255}).map(function(e){return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return.2126*o[0]+.7152*o[1]+.0722*o[2]>.25}}};exports.default=u; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"interface-color-picker"},e._l(e.colors,function(t){return o("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$helpers.formatTitle(t),expression:"$helpers.formatTitle(color)"}],key:t,class:{active:e.value===t},style:{backgroundColor:"var(--"+t+")"},attrs:{disabled:e.readonly},on:{click:function(o){e.$emit("input",t)}}},[e.value===t?[o("i",{staticClass:"material-icons",class:{dark:e.useDarkIconColor(t)}},[e._v("check")])]:e._e()],2)}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-648085",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"interface-color-picker"},e._l(e.colors,function(t){return o("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$helpers.formatTitle(t),expression:"$helpers.formatTitle(color)"}],key:t,class:{active:e.value===t},style:{backgroundColor:"var(--"+t+")"},attrs:{disabled:e.readonly},on:{click:function(o){e.$emit("input",t)}}},[e.value===t?[o("i",{staticClass:"material-icons",class:{dark:e.useDarkIconColor(t)}},[e._v("check")])]:e._e()],2)}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-449b0e",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","hex-rgb":"nHWz","./colors.json":"MCm8"}]},{},["c14L"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/color/display.css b/public/extensions/core/interfaces/color/display.css index 3fc2d0c615..c81f30edef 100644 --- a/public/extensions/core/interfaces/color/display.css +++ b/public/extensions/core/interfaces/color/display.css @@ -1,3 +1,3 @@ -.swatch[data-v-d76c2b]{width:20px;height:20px;border-radius:100% +.swatch[data-v-feca83]{width:20px;height:20px;border-radius:100% } \ No newline at end of file diff --git a/public/extensions/core/interfaces/color/display.js b/public/extensions/core/interfaces/color/display.js index 9090b5faf8..0c65fc92ae 100644 --- a/public/extensions/core/interfaces/color/display.js +++ b/public/extensions/core/interfaces/color/display.js @@ -18,5 +18,5 @@ var e=require("./conversions"),n=require("./route"),r={},o=Object.keys(e);functi "use strict";var r=require("color-string"),t=require("color-convert"),o=[].slice,n=["keyword","gray","hex"],e={};Object.keys(t).forEach(function(r){e[o.call(t[r].labels).sort().join("")]=r});var i={};function a(h,l){if(!(this instanceof a))return new a(h,l);if(l&&l in n&&(l=null),l&&!(l in t))throw new Error("Unknown model: "+l);var s,c;if(void 0===h)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(h instanceof a)this.model=h.model,this.color=h.color.slice(),this.valpha=h.valpha;else if("string"==typeof h){var u=r.get(h);if(null===u)throw new Error("Unable to parse color from string: "+h);this.model=u.model,c=t[this.model].channels,this.color=u.value.slice(0,c),this.valpha="number"==typeof u.value[c]?u.value[c]:1}else if(h.length){this.model=l||"rgb",c=t[this.model].channels;var v=o.call(h,0,c);this.color=f(v,c),this.valpha="number"==typeof h[c]?h[c]:1}else if("number"==typeof h)h&=16777215,this.model="rgb",this.color=[h>>16&255,h>>8&255,255&h],this.valpha=1;else{this.valpha=1;var p=Object.keys(h);"alpha"in h&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof h.alpha?h.alpha:0);var b=p.sort().join("");if(!(b in e))throw new Error("Unable to parse color from object: "+JSON.stringify(h));this.model=e[b];var m=t[this.model].labels,g=[];for(s=0;so?(t+.05)/(o+.05):(o+.05)/(t+.05)},level:function(r){var t=this.contrast(r);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var r=this.rgb().color;return(299*r[0]+587*r[1]+114*r[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten:function(r){var t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken:function(r){var t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate:function(r){var t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate:function(r){var t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten:function(r){var t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken:function(r){var t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale:function(){var r=this.rgb().color,t=.3*r[0]+.59*r[1]+.11*r[2];return a.rgb(t,t,t)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var t=this.hsl(),o=t.color[0];return o=(o=(o+r)%360)<0?360+o:o,t.color[0]=o,t},mix:function(r,t){var o=r.rgb(),n=this.rgb(),e=void 0===t?.5:t,i=2*e-1,h=o.alpha()-n.alpha(),l=((i*h==-1?i:(i+h)/(1+i*h))+1)/2,s=1-l;return a.rgb(l*o.red()+s*n.red(),l*o.green()+s*n.green(),l*o.blue()+s*n.blue(),o.alpha()*e+n.alpha()*(1-e))}},Object.keys(t).forEach(function(r){if(-1===n.indexOf(r)){var e=t[r].channels;a.prototype[r]=function(){if(this.model===r)return new a(this);if(arguments.length)return new a(arguments,r);var o="number"==typeof arguments[e]?e:this.valpha;return new a(u(t[this.model][r].raw(this.color)).concat(o),r)},a[r]=function(t){return"number"==typeof t&&(t=f(o.call(arguments),e)),new a(t,r)}}}),module.exports=a; },{"color-string":"sCxr","color-convert":"8v7I"}],"VR/c":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=r(require("../../../mixins/interface")),e=r(require("color"));function r(t){return t&&t.__esModule?t:{default:t}}var u={mixins:[t.default],computed:{displayValue:function(){var t="hex"===this.options.output?this.value:Array.isArray(this.value)?this.value:this.value.split(",");if(!1===this.options.formatValue)return!1===Boolean(t)?"":"hex"===this.options.output?t:t.join(", ");if("hex"===this.options.output)return(0,e.default)(t).rgb().string();try{return e.default[this.options.output](t).rgb().string()}catch(r){return null}}}};exports.default=u; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return this.options.formatValue?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.value,expression:"value"}],staticClass:"swatch no-wrap",style:"background-color: "+this.displayValue}):e("div",[this._v(this._s(this.displayValue))])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-d76c2b",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return this.options.formatValue?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.value,expression:"value"}],staticClass:"swatch no-wrap",style:"background-color: "+this.displayValue}):e("div",[this._v(this._s(this.displayValue))])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-feca83",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","color":"AQfU"}]},{},["VR/c"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/color/input.css b/public/extensions/core/interfaces/color/input.css index 777650e221..f87a705cfa 100644 --- a/public/extensions/core/interfaces/color/input.css +++ b/public/extensions/core/interfaces/color/input.css @@ -1,27 +1,27 @@ -.interface-color[data-v-e8c00b]{max-width:var(--width-large) +.interface-color[data-v-b6e5ad]{max-width:var(--width-large) } -.input[data-v-e8c00b]{max-width:var(--width-small);margin-right:8px +.input[data-v-b6e5ad]{max-width:var(--width-small);margin-right:8px } -.input[data-v-e8c00b],.sliders[data-v-e8c00b]{display:inline-block;vertical-align:middle +.input[data-v-b6e5ad],.sliders[data-v-b6e5ad]{display:inline-block;vertical-align:middle } -.sliders[data-v-e8c00b]{max-width:200px;margin-right:36px +.sliders[data-v-b6e5ad]{max-width:200px;margin-right:36px } -.sliders .slider-label[data-v-e8c00b]{display:inline-block;color:var(--light-gray);width:14px;vertical-align:text-bottom +.sliders .slider-label[data-v-b6e5ad]{display:inline-block;color:var(--light-gray);width:14px;vertical-align:text-bottom } -.sliders .slider[data-v-e8c00b]{display:inline-block;margin-bottom:8px +.sliders .slider[data-v-b6e5ad]{display:inline-block;margin-bottom:8px } -.swatch[data-v-e8c00b]{transition:var(--fast) var(--transition);display:inline-block;width:40px;height:40px;border-radius:100%;vertical-align:middle;margin-right:8px;color:var(--white);text-align:center +.swatch[data-v-b6e5ad]{transition:var(--fast) var(--transition);display:inline-block;width:40px;height:40px;border-radius:100%;vertical-align:middle;margin-right:8px;color:var(--white);text-align:center } -.swatch i[data-v-e8c00b]{line-height:40px +.swatch i[data-v-b6e5ad]{line-height:40px } -button[data-v-e8c00b]{transition:var(--fast) var(--transition);position:relative;display:inline-block;width:40px;height:40px;border-radius:100%;border:2px solid var(--gray);margin-right:8px;margin-bottom:8px +button[data-v-b6e5ad]{transition:var(--fast) var(--transition);position:relative;display:inline-block;width:40px;height:40px;border-radius:100%;border:2px solid var(--gray);margin-right:8px;margin-bottom:8px } -button[data-v-e8c00b]:first-of-type{margin-left:16px +button[data-v-b6e5ad]:first-of-type{margin-left:16px } -button[data-v-e8c00b]:first-of-type:before{content:"";position:absolute;top:0;bottom:0;left:-16px;border-left:1px solid var(--lighter-gray) +button[data-v-b6e5ad]:first-of-type:before{content:"";position:absolute;top:0;bottom:0;left:-16px;border-left:1px solid var(--lighter-gray) } -button[data-v-e8c00b]:not(:hover){background-color:var(--white)!important +button[data-v-b6e5ad]:not(:hover){background-color:var(--white)!important } -button[data-v-e8c00b]:hover{transition:none;color:var(--white)!important +button[data-v-b6e5ad]:hover{transition:none;color:var(--white)!important } \ No newline at end of file diff --git a/public/extensions/core/interfaces/color/input.js b/public/extensions/core/interfaces/color/input.js index 783bec20b2..23581c5297 100644 --- a/public/extensions/core/interfaces/color/input.js +++ b/public/extensions/core/interfaces/color/input.js @@ -18,5 +18,5 @@ var e=require("./conversions"),n=require("./route"),r={},o=Object.keys(e);functi "use strict";var r=require("color-string"),t=require("color-convert"),o=[].slice,n=["keyword","gray","hex"],e={};Object.keys(t).forEach(function(r){e[o.call(t[r].labels).sort().join("")]=r});var i={};function a(h,l){if(!(this instanceof a))return new a(h,l);if(l&&l in n&&(l=null),l&&!(l in t))throw new Error("Unknown model: "+l);var s,c;if(void 0===h)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(h instanceof a)this.model=h.model,this.color=h.color.slice(),this.valpha=h.valpha;else if("string"==typeof h){var u=r.get(h);if(null===u)throw new Error("Unable to parse color from string: "+h);this.model=u.model,c=t[this.model].channels,this.color=u.value.slice(0,c),this.valpha="number"==typeof u.value[c]?u.value[c]:1}else if(h.length){this.model=l||"rgb",c=t[this.model].channels;var v=o.call(h,0,c);this.color=f(v,c),this.valpha="number"==typeof h[c]?h[c]:1}else if("number"==typeof h)h&=16777215,this.model="rgb",this.color=[h>>16&255,h>>8&255,255&h],this.valpha=1;else{this.valpha=1;var p=Object.keys(h);"alpha"in h&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof h.alpha?h.alpha:0);var b=p.sort().join("");if(!(b in e))throw new Error("Unable to parse color from object: "+JSON.stringify(h));this.model=e[b];var m=t[this.model].labels,g=[];for(s=0;so?(t+.05)/(o+.05):(o+.05)/(t+.05)},level:function(r){var t=this.contrast(r);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var r=this.rgb().color;return(299*r[0]+587*r[1]+114*r[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var r=this.rgb(),t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten:function(r){var t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken:function(r){var t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate:function(r){var t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate:function(r){var t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten:function(r){var t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken:function(r){var t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale:function(){var r=this.rgb().color,t=.3*r[0]+.59*r[1]+.11*r[2];return a.rgb(t,t,t)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var t=this.hsl(),o=t.color[0];return o=(o=(o+r)%360)<0?360+o:o,t.color[0]=o,t},mix:function(r,t){var o=r.rgb(),n=this.rgb(),e=void 0===t?.5:t,i=2*e-1,h=o.alpha()-n.alpha(),l=((i*h==-1?i:(i+h)/(1+i*h))+1)/2,s=1-l;return a.rgb(l*o.red()+s*n.red(),l*o.green()+s*n.green(),l*o.blue()+s*n.blue(),o.alpha()*e+n.alpha()*(1-e))}},Object.keys(t).forEach(function(r){if(-1===n.indexOf(r)){var e=t[r].channels;a.prototype[r]=function(){if(this.model===r)return new a(this);if(arguments.length)return new a(arguments,r);var o="number"==typeof arguments[e]?e:this.valpha;return new a(u(t[this.model][r].raw(this.color)).concat(o),r)},a[r]=function(t){return"number"==typeof t&&(t=f(o.call(arguments),e)),new a(t,r)}}}),module.exports=a; },{"color-string":"sCxr","color-convert":"8v7I"}],"Anil":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("../../../mixins/interface")),e=i(require("color"));function i(t){return t&&t.__esModule?t:{default:t}}var n={name:"interface-color",mixins:[t.default],data:function(){return{rawValue:null}},computed:{color:function(){try{return"hex"===this.options.input?(0,e.default)(this.rawValue):e.default[this.options.input](this.rawValue)}catch(t){return null}},palette:function(){if(this.options.palette)return(Array.isArray(this.options.palette)?this.options.palette:this.options.palette.split(",")).map(function(t){return(0,e.default)(t)})}},created:function(){this.setDefault()},watch:{rawValue:function(){if(null===this.color)return this.$emit("input",null);var t;t="hex"===this.options.output?this.color.hex():(t=this.color[this.options.output]().array()).map(function(e,i){return i===t.length-1?Math.round(100*e)/100:Math.round(e)}),this.$emit("input",t)},options:{deep:!0,handler:function(){this.setDefault()}}},methods:{setDefault:function(){var t=(0,e.default)(this.value||"#263238");this.setRawValue(t)},setRawValue:function(t){return"hex"===this.options.input?this.rawValue=t.hex():this.rawValue=t[this.options.input]().array().map(function(t){return Math.round(t)})}}};exports.default=n; -(function(){var a=exports.default||module.exports;"function"==typeof a&&(a=a.options),Object.assign(a,{render:function(){var a=this,l=a.$createElement,e=a._self._c||l;return e("div",{staticClass:"interface-color"},[a.options.paletteOnly||"hex"!==a.options.input||!1!==a.readonly?a.options.paletteOnly||"rgb"!==a.options.input||!1!==a.readonly?a.options.paletteOnly||"hsl"!==a.options.input||!1!==a.readonly?a.options.paletteOnly||"cmyk"!==a.options.input||!1!==a.readonly?a._e():e("div",{staticClass:"sliders"},[e("label",{staticClass:"slider-label"},[a._v("C")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[0],callback:function(l){a.$set(a.rawValue,0,l)},expression:"rawValue[0]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("M")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[1],callback:function(l){a.$set(a.rawValue,1,l)},expression:"rawValue[1]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("Y")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[2],callback:function(l){a.$set(a.rawValue,2,l)},expression:"rawValue[2]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("K")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[3],callback:function(l){a.$set(a.rawValue,3,l)},expression:"rawValue[3]"}}),e("br"),a._v(" "),a.options.allowAlpha?e("label",{staticClass:"slider-label"},[a._v("A")]):a._e(),a._v(" "),a.options.allowAlpha?e("v-slider",{staticClass:"slider",attrs:{min:0,max:1,step:.01,alwaysshowoutput:!0},model:{value:a.rawValue[4],callback:function(l){a.$set(a.rawValue,4,l)},expression:"rawValue[4]"}}):a._e()],1):e("div",{staticClass:"sliders"},[e("label",{staticClass:"slider-label"},[a._v("H")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:360,alwaysshowoutput:!0},model:{value:a.rawValue[0],callback:function(l){a.$set(a.rawValue,0,l)},expression:"rawValue[0]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("S")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[1],callback:function(l){a.$set(a.rawValue,1,l)},expression:"rawValue[1]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("L")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[2],callback:function(l){a.$set(a.rawValue,2,l)},expression:"rawValue[2]"}}),e("br"),a._v(" "),a.options.allowAlpha?e("label",{staticClass:"slider-label"},[a._v("A")]):a._e(),a._v(" "),a.options.allowAlpha?e("v-slider",{staticClass:"slider",attrs:{min:0,max:1,step:.01,alwaysshowoutput:!0},model:{value:a.rawValue[3],callback:function(l){a.$set(a.rawValue,3,l)},expression:"rawValue[3]"}}):a._e()],1):e("div",{staticClass:"sliders"},[e("label",{staticClass:"slider-label"},[a._v("R")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:256,alwaysshowoutput:!0},model:{value:a.rawValue[0],callback:function(l){a.$set(a.rawValue,0,l)},expression:"rawValue[0]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("G")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:256,alwaysshowoutput:!0},model:{value:a.rawValue[1],callback:function(l){a.$set(a.rawValue,1,l)},expression:"rawValue[1]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("B")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:256,alwaysshowoutput:!0},model:{value:a.rawValue[2],callback:function(l){a.$set(a.rawValue,2,l)},expression:"rawValue[2]"}}),e("br"),a._v(" "),a.options.allowAlpha?e("label",{staticClass:"slider-label"},[a._v("A")]):a._e(),a._v(" "),a.options.allowAlpha?e("v-slider",{staticClass:"slider",attrs:{min:0,max:1,step:.01,alwaysshowoutput:!0},model:{value:a.rawValue[3],callback:function(l){a.$set(a.rawValue,3,l)},expression:"rawValue[3]"}}):a._e()],1):e("div",{staticClass:"input"},[a.options.allowAlpha?e("v-input",{attrs:{type:"text",placeholder:"#3498dbee",pattern:"[#0-9a-fA-F]",iconleft:"palette",maxlength:9},model:{value:a.rawValue,callback:function(l){a.rawValue=l},expression:"rawValue"}}):e("v-input",{attrs:{type:"text",placeholder:"#3498db",pattern:"[#0-9a-fA-F]",iconleft:"palette",maxlength:7},model:{value:a.rawValue,callback:function(l){a.rawValue=l},expression:"rawValue"}})],1),a._v(" "),e("div",{staticClass:"swatch",style:"background-color: "+(a.color?a.color.hex():"transparent")},[e("i",{staticClass:"material-icons"},[a._v("check")])]),a._v(" "),a._l(a.palette,function(l){return!1===a.readonly?e("button",{key:l,style:{borderColor:l,color:l,backgroundColor:l},on:{click:function(e){a.setRawValue(l)}}},[e("i",{staticClass:"material-icons"},[a._v("colorize")])]):a._e()})],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-e8c00b",functional:void 0});})(); +(function(){var a=exports.default||module.exports;"function"==typeof a&&(a=a.options),Object.assign(a,{render:function(){var a=this,l=a.$createElement,e=a._self._c||l;return e("div",{staticClass:"interface-color"},[a.options.paletteOnly||"hex"!==a.options.input||!1!==a.readonly?a.options.paletteOnly||"rgb"!==a.options.input||!1!==a.readonly?a.options.paletteOnly||"hsl"!==a.options.input||!1!==a.readonly?a.options.paletteOnly||"cmyk"!==a.options.input||!1!==a.readonly?a._e():e("div",{staticClass:"sliders"},[e("label",{staticClass:"slider-label"},[a._v("C")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[0],callback:function(l){a.$set(a.rawValue,0,l)},expression:"rawValue[0]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("M")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[1],callback:function(l){a.$set(a.rawValue,1,l)},expression:"rawValue[1]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("Y")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[2],callback:function(l){a.$set(a.rawValue,2,l)},expression:"rawValue[2]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("K")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[3],callback:function(l){a.$set(a.rawValue,3,l)},expression:"rawValue[3]"}}),e("br"),a._v(" "),a.options.allowAlpha?e("label",{staticClass:"slider-label"},[a._v("A")]):a._e(),a._v(" "),a.options.allowAlpha?e("v-slider",{staticClass:"slider",attrs:{min:0,max:1,step:.01,alwaysshowoutput:!0},model:{value:a.rawValue[4],callback:function(l){a.$set(a.rawValue,4,l)},expression:"rawValue[4]"}}):a._e()],1):e("div",{staticClass:"sliders"},[e("label",{staticClass:"slider-label"},[a._v("H")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:360,alwaysshowoutput:!0},model:{value:a.rawValue[0],callback:function(l){a.$set(a.rawValue,0,l)},expression:"rawValue[0]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("S")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[1],callback:function(l){a.$set(a.rawValue,1,l)},expression:"rawValue[1]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("L")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:100,alwaysshowoutput:!0},model:{value:a.rawValue[2],callback:function(l){a.$set(a.rawValue,2,l)},expression:"rawValue[2]"}}),e("br"),a._v(" "),a.options.allowAlpha?e("label",{staticClass:"slider-label"},[a._v("A")]):a._e(),a._v(" "),a.options.allowAlpha?e("v-slider",{staticClass:"slider",attrs:{min:0,max:1,step:.01,alwaysshowoutput:!0},model:{value:a.rawValue[3],callback:function(l){a.$set(a.rawValue,3,l)},expression:"rawValue[3]"}}):a._e()],1):e("div",{staticClass:"sliders"},[e("label",{staticClass:"slider-label"},[a._v("R")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:256,alwaysshowoutput:!0},model:{value:a.rawValue[0],callback:function(l){a.$set(a.rawValue,0,l)},expression:"rawValue[0]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("G")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:256,alwaysshowoutput:!0},model:{value:a.rawValue[1],callback:function(l){a.$set(a.rawValue,1,l)},expression:"rawValue[1]"}}),e("br"),a._v(" "),e("label",{staticClass:"slider-label"},[a._v("B")]),a._v(" "),e("v-slider",{staticClass:"slider",attrs:{min:0,max:256,alwaysshowoutput:!0},model:{value:a.rawValue[2],callback:function(l){a.$set(a.rawValue,2,l)},expression:"rawValue[2]"}}),e("br"),a._v(" "),a.options.allowAlpha?e("label",{staticClass:"slider-label"},[a._v("A")]):a._e(),a._v(" "),a.options.allowAlpha?e("v-slider",{staticClass:"slider",attrs:{min:0,max:1,step:.01,alwaysshowoutput:!0},model:{value:a.rawValue[3],callback:function(l){a.$set(a.rawValue,3,l)},expression:"rawValue[3]"}}):a._e()],1):e("div",{staticClass:"input"},[a.options.allowAlpha?e("v-input",{attrs:{type:"text",placeholder:"#3498dbee",pattern:"[#0-9a-fA-F]",iconleft:"palette",maxlength:9},model:{value:a.rawValue,callback:function(l){a.rawValue=l},expression:"rawValue"}}):e("v-input",{attrs:{type:"text",placeholder:"#3498db",pattern:"[#0-9a-fA-F]",iconleft:"palette",maxlength:7},model:{value:a.rawValue,callback:function(l){a.rawValue=l},expression:"rawValue"}})],1),a._v(" "),e("div",{staticClass:"swatch",style:"background-color: "+(a.color?a.color.hex():"transparent")},[e("i",{staticClass:"material-icons"},[a._v("check")])]),a._v(" "),a._l(a.palette,function(l){return!1===a.readonly?e("button",{key:l,style:{borderColor:l,color:l,backgroundColor:l},on:{click:function(e){a.setRawValue(l)}}},[e("i",{staticClass:"material-icons"},[a._v("colorize")])]):a._e()})],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-b6e5ad",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","color":"AQfU"}]},{},["Anil"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/date/input.css b/public/extensions/core/interfaces/date/input.css index 81829d671c..c2f7b3b669 100644 --- a/public/extensions/core/interfaces/date/input.css +++ b/public/extensions/core/interfaces/date/input.css @@ -1,3 +1,3 @@ -.interface-date[data-v-7f244e]{max-width:var(--width-small) +.interface-date[data-v-7f2eca]{max-width:var(--width-small) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/date/input.js b/public/extensions/core/interfaces/date/input.js index 5380ba2fc7..7994aa54a6 100644 --- a/public/extensions/core/interfaces/date/input.js +++ b/public/extensions/core/interfaces/date/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"msis":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={name:"interface-date",mixins:[e.default]};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-input",{staticClass:"interface-date",attrs:{type:"date",id:e.name,name:e.name,min:e.options.min,max:e.options.max,readonly:e.readonly,value:e.value},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-7f244e",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-input",{staticClass:"interface-date",attrs:{type:"date",id:e.name,name:e.name,min:e.options.min,max:e.options.max,readonly:e.readonly,value:e.value},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-7f2eca",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["msis"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/datetime-created/input.css b/public/extensions/core/interfaces/datetime-created/input.css index 81ff0f3399..ebf4206fc9 100644 --- a/public/extensions/core/interfaces/datetime-created/input.css +++ b/public/extensions/core/interfaces/datetime-created/input.css @@ -1,3 +1,3 @@ -.gray[data-v-9572a1]{color:var(--light-gray);text-transform:capitalize +.gray[data-v-b4a3a9]{color:var(--light-gray);text-transform:capitalize } \ No newline at end of file diff --git a/public/extensions/core/interfaces/datetime-created/input.js b/public/extensions/core/interfaces/datetime-created/input.js index f3a2448e69..9c7eb97fe4 100644 --- a/public/extensions/core/interfaces/datetime-created/input.js +++ b/public/extensions/core/interfaces/datetime-created/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"OFuN":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],computed:{date:function(){return this.value?new Date(this.value.replace(" ","T")+"Z"):null},displayValue:function(){if(this.date)return this.$d(this.date,"long")+" GMT"}}};exports.default=u; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"gray style-3"},[e.options.showRelative?a("v-timeago",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.displayValue,expression:"displayValue"}],staticClass:"no-wrap",attrs:{since:e.date,"auto-update":60,locale:e.$i18n.locale}}):a("div",[e._v(e._s(e.displayValue))])],1):e.newItem?a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-created-now"))+" ")]):a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-created-unknown"))+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-9572a1",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"gray style-3"},[e.options.showRelative?a("v-timeago",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.displayValue,expression:"displayValue"}],staticClass:"no-wrap",attrs:{since:e.date,"auto-update":60,locale:e.$i18n.locale}}):a("div",[e._v(e._s(e.displayValue))])],1):e.newItem?a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-created-now"))+" ")]):a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-created-unknown"))+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-b4a3a9",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["OFuN"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/datetime-updated/input.css b/public/extensions/core/interfaces/datetime-updated/input.css index ed726a0161..b0e6e17f33 100644 --- a/public/extensions/core/interfaces/datetime-updated/input.css +++ b/public/extensions/core/interfaces/datetime-updated/input.css @@ -1,3 +1,3 @@ -.gray[data-v-c2eac7]{color:var(--light-gray);text-transform:capitalize +.gray[data-v-380d1f]{color:var(--light-gray);text-transform:capitalize } \ No newline at end of file diff --git a/public/extensions/core/interfaces/datetime-updated/input.js b/public/extensions/core/interfaces/datetime-updated/input.js index a05ad6a974..1813ad29db 100644 --- a/public/extensions/core/interfaces/datetime-updated/input.js +++ b/public/extensions/core/interfaces/datetime-updated/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"vpah":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],computed:{date:function(){return this.value?new Date(this.value.replace(" ","T")+"Z"):null},displayValue:function(){if(this.date)return this.$d(this.date,"long")+" GMT"}}};exports.default=u; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"gray style-3"},[e.options.showRelative?a("v-timeago",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.displayValue,expression:"displayValue"}],staticClass:"no-wrap",attrs:{since:e.date,"auto-update":60,locale:e.$i18n.locale}}):a("div",[e._v(e._s(e.displayValue))])],1):e.newItem?a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-updated-now"))+" ")]):a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-updated-unknown"))+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-c2eac7",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.value?a("div",{staticClass:"gray style-3"},[e.options.showRelative?a("v-timeago",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.displayValue,expression:"displayValue"}],staticClass:"no-wrap",attrs:{since:e.date,"auto-update":60,locale:e.$i18n.locale}}):a("div",[e._v(e._s(e.displayValue))])],1):e.newItem?a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-updated-now"))+" ")]):a("div",{staticClass:"gray style-3"},[e._v(" "+e._s(e.$t("interfaces-datetime-updated-unknown"))+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-380d1f",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["vpah"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/datetime/input.css b/public/extensions/core/interfaces/datetime/input.css index 50e7d7f537..85c80d7059 100644 --- a/public/extensions/core/interfaces/datetime/input.css +++ b/public/extensions/core/interfaces/datetime/input.css @@ -1,3 +1,3 @@ -.interface-datetime[data-v-13a319]{max-width:var(--width-medium) +.interface-datetime[data-v-b47c7a]{max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/datetime/input.js b/public/extensions/core/interfaces/datetime/input.js index 161d7b4de5..27020fc451 100644 --- a/public/extensions/core/interfaces/datetime/input.js +++ b/public/extensions/core/interfaces/datetime/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"9Vaf":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var n={mixins:[t.default],computed:{formattedValue:function(){return this.value?this.options.utc?this.value.includes("T")?this.value.substring(0,16):this.toDatetimeLocal(new Date(this.value.replace(" ","T")+"Z")):this.toDatetimeLocal(new Date(this.value)):null}},methods:{updateValue:function(t){if(t){if(this.options.utc){var e=new Date(t).getTimezoneOffset(),n=this.ten(Math.abs(e/60)),i=this.ten(Math.abs(e%60));return this.$emit("input",t+(e<0?"-":"+")+n+":"+i)}return this.$emit("input",t)}},toDatetimeLocal:function(t){var e=t.getFullYear(),n=this.ten(t.getMonth()+1),i=this.ten(t.getDate()),a=this.ten(t.getHours()),s=this.ten(t.getMinutes()),u=this.ten(t.getSeconds());return"".concat(e,"-").concat(n,"-").concat(i,"T").concat(a,":").concat(s,":").concat(u)},ten:function(t){return String(t).padStart(2,0)}}};exports.default=n; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-input",{staticClass:"interface-datetime",attrs:{type:"datetime-local",id:t.name,name:t.name,min:t.options.min,max:t.options.max,readonly:t.readonly,value:t.formattedValue,"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight},on:{input:t.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-13a319",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-input",{staticClass:"interface-datetime",attrs:{type:"datetime-local",id:t.name,name:t.name,min:t.options.min,max:t.options.max,readonly:t.readonly,value:t.formattedValue,"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight},on:{input:t.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-b47c7a",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["9Vaf"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/divider/input.css b/public/extensions/core/interfaces/divider/input.css index fc006f0c86..448087a43e 100644 --- a/public/extensions/core/interfaces/divider/input.css +++ b/public/extensions/core/interfaces/divider/input.css @@ -1,27 +1,27 @@ -.small-style[data-v-798f93]{position:relative;margin-top:60px;padding-top:6px;padding-bottom:20px +.small-style[data-v-655037]{position:relative;margin-top:60px;padding-top:6px;padding-bottom:20px } -.small-style h2[data-v-798f93]{top:0;color:var(--dark-gray);font-size:.85em;line-height:1.18;font-weight:700;text-transform:uppercase;background-color:var(--body-background);padding:0 10px +.small-style h2[data-v-655037]{top:0;color:var(--dark-gray);font-size:.85em;line-height:1.18;font-weight:700;text-transform:uppercase;background-color:var(--body-background);padding:0 10px } -.small-style h2[data-v-798f93],.small-style p[data-v-798f93]{position:absolute;left:50%;transform:translateX(-50%) +.small-style h2[data-v-655037],.small-style p[data-v-655037]{position:absolute;left:50%;transform:translateX(-50%) } -.small-style p[data-v-798f93]{top:16px;color:var(--light-gray);font-style:italic;max-width:460px +.small-style p[data-v-655037]{top:16px;color:var(--light-gray);font-style:italic;max-width:460px } -.small-style hr[data-v-798f93]{border:0;background:none;border-bottom:1px solid var(--lighter-gray) +.small-style hr[data-v-655037]{border:0;background:none;border-bottom:1px solid var(--lighter-gray) } -.medium-style[data-v-798f93]{margin-top:60px;padding-top:6px;padding-bottom:20px +.medium-style[data-v-655037]{margin-top:60px;padding-top:6px;padding-bottom:20px } -.medium-style h2[data-v-798f93]{color:var(--dark-gray);font-size:1.38em;line-height:1.16;font-weight:400;margin-bottom:10px +.medium-style h2[data-v-655037]{color:var(--dark-gray);font-size:1.38em;line-height:1.16;font-weight:400;margin-bottom:10px } -.medium-style p[data-v-798f93]{color:var(--light-gray);font-style:italic;max-width:460px;margin-top:6px +.medium-style p[data-v-655037]{color:var(--light-gray);font-style:italic;max-width:460px;margin-top:6px } -.medium-style hr[data-v-798f93]{border:0;background:none;border-bottom:1px solid var(--lighter-gray) +.medium-style hr[data-v-655037]{border:0;background:none;border-bottom:1px solid var(--lighter-gray) } -.large-style[data-v-798f93]{margin-top:60px;padding-top:6px;padding-bottom:20px +.large-style[data-v-655037]{margin-top:60px;padding-top:6px;padding-bottom:20px } -.large-style h2[data-v-798f93]{color:var(--dark-gray);font-size:2em;line-height:1.16;font-weight:300;margin-bottom:10px +.large-style h2[data-v-655037]{color:var(--dark-gray);font-size:2em;line-height:1.16;font-weight:300;margin-bottom:10px } -.large-style p[data-v-798f93]{color:var(--light-gray);font-style:italic;max-width:460px;margin-top:6px +.large-style p[data-v-655037]{color:var(--light-gray);font-style:italic;max-width:460px;margin-top:6px } -.large-style hr[data-v-798f93]{border:0;background:none;border-bottom:1px solid var(--lighter-gray) +.large-style hr[data-v-655037]{border:0;background:none;border-bottom:1px solid var(--lighter-gray) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/divider/input.js b/public/extensions/core/interfaces/divider/input.js index 93af55f2f3..c361a29ff0 100644 --- a/public/extensions/core/interfaces/divider/input.js +++ b/public/extensions/core/interfaces/divider/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"FBIK":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{class:t.options.style+"-style"},[t.options.title?o("h2",[t._v(t._s(t.options.title))]):t._e(),t._v(" "),t.options.hr?o("hr"):t._e(),t._v(" "),t.options.description?o("p",[t._v(t._s(t.options.description))]):t._e()])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-798f93",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{class:t.options.style+"-style"},[t.options.title?o("h2",[t._v(t._s(t.options.title))]):t._e(),t._v(" "),t.options.hr?o("hr"):t._e(),t._v(" "),t.options.description?o("p",[t._v(t._s(t.options.description))]):t._e()])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-655037",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["FBIK"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/dropdown/input.css b/public/extensions/core/interfaces/dropdown/input.css index 489d579568..bd4a0ebab8 100644 --- a/public/extensions/core/interfaces/dropdown/input.css +++ b/public/extensions/core/interfaces/dropdown/input.css @@ -1,7 +1,7 @@ -.v-select[data-v-4fb1a3]{margin-top:0;max-width:var(--width-medium) +.v-select[data-v-3d674c]{margin-top:0;max-width:var(--width-medium) } -.notice[data-v-4fb1a3]{display:flex;align-items:center +.notice[data-v-3d674c]{display:flex;align-items:center } -.notice i[data-v-4fb1a3]{margin-right:1rem +.notice i[data-v-3d674c]{margin-right:1rem } \ No newline at end of file diff --git a/public/extensions/core/interfaces/dropdown/input.js b/public/extensions/core/interfaces/dropdown/input.js index 2a0d5e3ba6..0b177c3139 100644 --- a/public/extensions/core/interfaces/dropdown/input.js +++ b/public/extensions/core/interfaces/dropdown/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"do1G":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default],data:function(){return{parseError:null}},computed:{choices:function(){var e=this.options.choices;if(!e)return{};if("string"==typeof this.options.choices)try{e=JSON.parse(this.options.choices)}catch(t){this.parseError=t.toString()}return e}}};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.parseError?n("small",{staticClass:"notice"},[n("i",{staticClass:"material-icons"},[e._v("warning")]),e._v(" "),n("span",[e._v(" "+e._s(e.$t("interfaces-dropdown-options_invalid"))),n("br"),e._v(" "+e._s(e.parseError)+" ")])]):n("v-select",{attrs:{value:e.value,disabled:e.readonly,id:e.name,options:e.choices,placeholder:e.options.placeholder,icon:e.options.icon},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-4fb1a3",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.parseError?n("small",{staticClass:"notice"},[n("i",{staticClass:"material-icons"},[e._v("warning")]),e._v(" "),n("span",[e._v(" "+e._s(e.$t("interfaces-dropdown-options_invalid"))),n("br"),e._v(" "+e._s(e.parseError)+" ")])]):n("v-select",{attrs:{value:e.value,disabled:e.readonly,id:e.name,options:e.choices,placeholder:e.options.placeholder,icon:e.options.icon},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3d674c",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["do1G"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/file-preview/display.js b/public/extensions/core/interfaces/file-preview/display.js index 72160a868d..9788700055 100644 --- a/public/extensions/core/interfaces/file-preview/display.js +++ b/public/extensions/core/interfaces/file-preview/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"ccDC":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("i",{staticClass:"material-icons"},[this._v("file")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-772e91",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("i",{staticClass:"material-icons"},[this._v("file")])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-6c7e37",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["ccDC"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/file-preview/input.css b/public/extensions/core/interfaces/file-preview/input.css index 82382efb77..cfb47702a4 100644 --- a/public/extensions/core/interfaces/file-preview/input.css +++ b/public/extensions/core/interfaces/file-preview/input.css @@ -7,47 +7,47 @@ * * Date: 2018-10-24T13:07:11.429Z */.cropper-container{direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline-color:rgba(51,153,255,.75);outline:1px solid #39f;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC")}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed} -.audio[data-v-be038b],.file[data-v-be038b],.image[data-v-be038b],.video[data-v-be038b]{width:100%;background-color:var(--black);text-align:center;border-radius:var(--border-radius);overflow:hidden +.audio[data-v-f661e0],.file[data-v-f661e0],.image[data-v-f661e0],.video[data-v-f661e0]{width:100%;background-color:var(--black);text-align:center;border-radius:var(--border-radius);overflow:hidden } -.audio img[data-v-be038b],.audio video[data-v-be038b],.file img[data-v-be038b],.file video[data-v-be038b],.image img[data-v-be038b],.image video[data-v-be038b],.video img[data-v-be038b],.video video[data-v-be038b]{margin:0 auto;max-height:414px;max-width:100%;display:block +.audio img[data-v-f661e0],.audio video[data-v-f661e0],.file img[data-v-f661e0],.file video[data-v-f661e0],.image img[data-v-f661e0],.image video[data-v-f661e0],.video img[data-v-f661e0],.video video[data-v-f661e0]{margin:0 auto;max-height:414px;max-width:100%;display:block } -.audio audio[data-v-be038b],.file audio[data-v-be038b],.image audio[data-v-be038b],.video audio[data-v-be038b]{margin:0 auto;width:100%;max-width:100%;display:block +.audio audio[data-v-f661e0],.file audio[data-v-f661e0],.image audio[data-v-f661e0],.video audio[data-v-f661e0]{margin:0 auto;width:100%;max-width:100%;display:block } -.audio[data-v-be038b],.file[data-v-be038b]{padding:80px 40px;font-size:3em;text-transform:uppercase;font-weight:300;color:var(--lighter-gray) +.audio[data-v-f661e0],.file[data-v-f661e0]{padding:80px 40px;font-size:3em;text-transform:uppercase;font-weight:300;color:var(--lighter-gray) } -.toolbar[data-v-be038b]{margin-top:10px +.toolbar[data-v-f661e0]{margin-top:10px } -.toolbar .original[data-v-be038b]{display:flex;align-items:flex-start;justify-content:space-between +.toolbar .original[data-v-f661e0]{display:flex;align-items:flex-start;justify-content:space-between } -.file-link[data-v-be038b]{transition:var(--fast) var(--transition);text-decoration:none;color:var(--gray) +.file-link[data-v-f661e0]{transition:var(--fast) var(--transition);text-decoration:none;color:var(--gray) } -.file-link[data-v-be038b]:hover{color:var(--darker-gray) +.file-link[data-v-f661e0]:hover{color:var(--darker-gray) } -.file-link i[data-v-be038b]{margin-right:6px;color:var(--gray) +.file-link i[data-v-f661e0]{margin-right:6px;color:var(--gray) } -.file-link span[data-v-be038b]{margin-right:10px;vertical-align:middle +.file-link span[data-v-f661e0]{margin-right:10px;vertical-align:middle } -.image-edit-start[data-v-be038b]{margin-left:10px +.image-edit-start[data-v-f661e0]{margin-left:10px } -.image-edit-start i[data-v-be038b]{color:var(--gray) +.image-edit-start i[data-v-f661e0]{color:var(--gray) } -.image-edit[data-v-be038b]{display:flex;list-style:none;margin:0;padding:0 +.image-edit[data-v-f661e0]{display:flex;list-style:none;margin:0;padding:0 } -.image-edit>li[data-v-be038b]{flex:0 0 33.33%;text-align:center +.image-edit>li[data-v-f661e0]{flex:0 0 33.33%;text-align:center } -.image-edit>li button[data-v-be038b]{color:var(--dark-gray) +.image-edit>li button[data-v-f661e0]{color:var(--dark-gray) } -.image-edit>li button+button[data-v-be038b]{margin-left:10px +.image-edit>li button+button[data-v-f661e0]{margin-left:10px } -.image-edit>li button[data-v-be038b]:hover{color:var(--darkest-gray) +.image-edit>li button[data-v-f661e0]:hover{color:var(--darkest-gray) } -.image-edit>li[data-v-be038b]:first-child{text-align:left +.image-edit>li[data-v-f661e0]:first-child{text-align:left } -.image-edit>li[data-v-be038b]:last-child{text-align:right +.image-edit>li[data-v-f661e0]:last-child{text-align:right } -.image-aspect-ratio[data-v-be038b]{position:relative;display:inline-flex;align-items:center +.image-aspect-ratio[data-v-f661e0]{position:relative;display:inline-flex;align-items:center } -.image-aspect-ratio span[data-v-be038b]{margin-left:8px +.image-aspect-ratio span[data-v-f661e0]{margin-left:8px } -.image-aspect-ratio select[data-v-be038b]{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0 +.image-aspect-ratio select[data-v-f661e0]{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0 }.image .cropper-point{background:#fff;height:10px;width:10px;border-radius:50%;opacity:1}.image .cropper-point.point-n{top:-5px;margin-left:-5px}.image .cropper-point.point-ne{right:-5px;top:-5px}.image .cropper-point.point-e{margin-top:-5px;right:-5px}.image .cropper-point.point-se{right:-5px;bottom:-5px}.image .cropper-point.point-s{bottom:-5px;margin-left:-5px}.image .cropper-point.point-sw{left:-5px;bottom:-5px}.image .cropper-point.point-w{margin-top:-5px;left:-5px}.image .cropper-point.point-nw{left:-5px;top:-5px}.image .cropper-dashed{border-style:solid;border-color:#fff;opacity:.4;box-shadow:0 0 0 1px rgba(0,0,0,.3)}.image .cropper-line{background-color:#000;opacity:.05} \ No newline at end of file diff --git a/public/extensions/core/interfaces/file-preview/input.js b/public/extensions/core/interfaces/file-preview/input.js index a09c5776ae..39c0853027 100644 --- a/public/extensions/core/interfaces/file-preview/input.js +++ b/public/extensions/core/interfaces/file-preview/input.js @@ -6,5 +6,5 @@ module.exports={props:{name:{type:String,required:!0},value:{type:null,default:n },{}],"v3sR":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("../../../mixins/interface")),t=a(require("cropperjs"));require("cropperjs/dist/cropper.min.css");var i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],B=t?1e3:1024;if(!1===Boolean(e))return"--";if(Math.abs(e)=B&&o1?"s":null)+" ")])},staticRenderFns:[],_compiled:!0,_scopeId:null,functional:void 0});})(); +},{"../../../mixins/interface":"QdEO"}]},{},["AaQD"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/files/input.css b/public/extensions/core/interfaces/files/input.css new file mode 100644 index 0000000000..215c4b295a --- /dev/null +++ b/public/extensions/core/interfaces/files/input.css @@ -0,0 +1,11 @@ + +.preview[data-v-457bbb]{display:flex;margin-bottom:20px;flex-wrap:wrap +} +.preview .card[data-v-457bbb]{margin-right:20px;margin-bottom:20px +} +button[data-v-457bbb]{display:inline-block;margin-left:20px +} +button[data-v-457bbb]:first-of-type{margin-left:0 +} +.body[data-v-457bbb]{padding:20px +} \ No newline at end of file diff --git a/public/extensions/core/interfaces/files/input.js b/public/extensions/core/interfaces/files/input.js new file mode 100644 index 0000000000..524545ac80 --- /dev/null +++ b/public/extensions/core/interfaces/files/input.js @@ -0,0 +1,8 @@ +parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f0?a("div",{staticClass:"search-view"},e._l(e.filteredArray,function(t){return a("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$helpers.formatTitle(t),expression:"$helpers.formatTitle(icon)"}],key:t,class:{active:e.value===t},attrs:{type:"button",disabled:e.readonly},on:{click:function(a){e.$emit("input",e.value===t?null:t)}}},[a("i",{staticClass:"material-icons"},[e._v(e._s(t))])])})):e._e()],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-35c21c",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"interface-icon"},[a("v-input",{attrs:{placeholder:e.$t("interfaces-icon-search_placeholder"),readonly:e.readonly,"icon-right":e.value,"icon-left":"search"},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}}),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:0===e.searchText.length,expression:"searchText.length === 0"}],staticClass:"icons-view"},e._l(e.icons,function(t,i){return a("details",{key:i,attrs:{open:""}},[a("summary",[e._v(" "+e._s(e.$helpers.formatTitle(i))+" ")]),e._v(" "),a("div",e._l(t,function(t){return a("button",{key:t,class:{active:e.value===t},attrs:{type:"button",disabled:e.readonly},on:{click:function(a){e.$emit("input",e.value===t?null:t)}}},[a("i",{staticClass:"material-icons"},[e._v(e._s(t))])])}))])})),e._v(" "),e.searchText.length>0?a("div",{staticClass:"search-view"},e._l(e.filteredArray,function(t){return a("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$helpers.formatTitle(t),expression:"$helpers.formatTitle(icon)"}],key:t,class:{active:e.value===t},attrs:{type:"button",disabled:e.readonly},on:{click:function(a){e.$emit("input",e.value===t?null:t)}}},[a("i",{staticClass:"material-icons"},[e._v(e._s(t))])])})):e._e()],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-7a5c3f",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","./icons.json":"rkKt"}]},{},["/IeP"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/language/input.js b/public/extensions/core/interfaces/language/input.js index 02581a1c52..e650872586 100644 --- a/public/extensions/core/interfaces/language/input.js +++ b/public/extensions/core/interfaces/language/input.js @@ -4,5 +4,5 @@ module.exports={props:{name:{type:String,required:!0},value:{type:null,default:n module.exports={af:"Afrikaans","af-ZA":"Afrikaans (South Africa)",sq:"Albanian","sq-AL":"Albanian (Albania)",ar:"Arabic","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)","hy-AM":"Armenian (Armenia)",hy:"Armenian","az-AZ":"Azeri (Cyrillic) (Azerbaijan)",az:"Azeri (Latin)",eu:"Basque","eu-ES":"Basque (Spain)",be:"Belarusian","be-BY":"Belarusian (Belarus)","bs-BA":"Bosnian (Bosnia and Herzegovina)",bg:"Bulgarian","bg-BG":"Bulgarian (Bulgaria)",ca:"Catalan","ca-ES":"Catalan (Spain)",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-MO":"Chinese (Macau)","zh-CN":"Chinese (S)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (T)",hr:"Croatian","hr-BA":"Croatian (Bosnia and Herzegovina)","hr-HR":"Croatian (Croatia)",cs:"Czech","cs-CZ":"Czech (Czech Republic)",da:"Danish","da-DK":"Danish (Denmark)",dv:"Divehi","dv-MV":"Divehi (Maldives)",nl:"Dutch","nl-BE":"Dutch (Belgium)","nl-NL":"Dutch (Netherlands)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-CB":"English (Caribbean)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Republic of the Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad and Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian","et-EE":"Estonian (Estonia)",fo:"Faroese","fo-FO":"Faroese (Faroe Islands)",fa:"Farsi","fa-IR":"Farsi (Iran)",fi:"Finnish","fi-FI":"Finnish (Finland)",fr:"French","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Principality of Monaco)","fr-CH":"French (Switzerland)",mk:"FYRO Macedonian","mk-MK":"FYRO Macedonian (Former Yugoslav Republic of Macedonia)",gl:"Galician","gl-ES":"Galician (Spain)",ka:"Georgian","ka-GE":"Georgian (Georgia)",de:"German","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek","el-GR":"Greek (Greece)",gu:"Gujarati","gu-IN":"Gujarati (India)",he:"Hebrew","he-IL":"Hebrew (Israel)",hi:"Hindi","hi-IN":"Hindi (India)",hu:"Hungarian","hu-HU":"Hungarian (Hungary)",is:"Icelandic","is-IS":"Icelandic (Iceland)",id:"Indonesian","id-ID":"Indonesian (Indonesia)",it:"Italian","it-IT":"Italian (Italy)","it-CH":"Italian (Switzerland)",ja:"Japanese","ja-JP":"Japanese (Japan)",kn:"Kannada","kn-IN":"Kannada (India)",kk:"Kazakh","kk-KZ":"Kazakh (Kazakhstan)",kok:"Konkani","kok-IN":"Konkani (India)",ko:"Korean","ko-KR":"Korean (Korea)",ky:"Kyrgyz","ky-KG":"Kyrgyz (Kyrgyzstan)",lv:"Latvian","lv-LV":"Latvian (Latvia)",lt:"Lithuanian","lt-LT":"Lithuanian (Lithuania)",ms:"Malay","ms-BN":"Malay (Brunei Darussalam)","ms-MY":"Malay (Malaysia)",mt:"Maltese","mt-MT":"Maltese (Malta)",mi:"Maori","mi-NZ":"Maori (New Zealand)",mr:"Marathi","mr-IN":"Marathi (India)",mn:"Mongolian","mn-MN":"Mongolian (Mongolia)",ns:"Northern Sotho","ns-ZA":"Northern Sotho (South Africa)",nb:"Norwegian (Bokm?l)","nb-NO":"Norwegian (Bokm?l) (Norway)","nn-NO":"Norwegian (Nynorsk) (Norway)",ps:"Pashto","ps-AR":"Pashto (Afghanistan)",pl:"Polish","pl-PL":"Polish (Poland)",pt:"Portuguese","pt-BR":"Portuguese (Brazil)","pt-PT":"Portuguese (Portugal)",pa:"Punjabi","pa-IN":"Punjabi (India)",qu:"Quechua","qu-BO":"Quechua (Bolivia)","qu-EC":"Quechua (Ecuador)","qu-PE":"Quechua (Peru)",ro:"Romanian","ro-RO":"Romanian (Romania)",ru:"Russian","ru-RU":"Russian (Russia)",se:"Sami (Northern)","se-FI":"Sami (Inari) (Finland)","se-NO":"Sami (Southern) (Norway)","se-SE":"Sami (Southern) (Sweden)",sa:"Sanskrit","sa-IN":"Sanskrit (India)","sr-BA":"Serbian (Cyrillic) (Bosnia and Herzegovina)","sr-SP":"Serbian (Cyrillic) (Serbia and Montenegro)",sk:"Slovak","sk-SK":"Slovak (Slovakia)",sl:"Slovenian","sl-SI":"Slovenian (Slovenia)",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sw:"Swahili","sw-KE":"Swahili (Kenya)",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SE":"Swedish (Sweden)",syr:"Syriac","syr-SY":"Syriac (Syria)",tl:"Tagalog","tl-PH":"Tagalog (Philippines)",ta:"Tamil","ta-IN":"Tamil (India)",tt:"Tatar","tt-RU":"Tatar (Russia)",te:"Telugu","te-IN":"Telugu (India)",th:"Thai","th-TH":"Thai (Thailand)",ts:"Tsonga",tn:"Tswana","tn-ZA":"Tswana (South Africa)",tr:"Turkish","tr-TR":"Turkish (Turkey)",uk:"Ukrainian","uk-UA":"Ukrainian (Ukraine)",ur:"Urdu","ur-PK":"Urdu (Islamic Republic of Pakistan)",uz:"Uzbek (Latin)","uz-UZ":"Uzbek (Cyrillic) (Uzbekistan)",vi:"Vietnamese","vi-VN":"Vietnamese (Viet Nam)",cy:"Welsh","cy-GB":"Welsh (United Kingdom)",xh:"Xhosa","xh-ZA":"Xhosa (South Africa)",zu:"Zulu","zu-ZA":"Zulu (South Africa)"}; },{}],"GNma":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../../../mixins/interface")),t=i(require("./languages.json"));function i(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],computed:{languages:function(){return this.options.limit?this.$i18n.availableLanguages:t.default}}};exports.default=u; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-simple-select",{attrs:{placeholder:e.$t("interfaces-language-select_language"),value:e.value},on:{input:function(t){e.$emit("input",t)}}},e._l(e.languages,function(t,a){return n("option",{domProps:{value:a}},[e._v(" "+e._s(t)+" ")])}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-681d94",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-simple-select",{attrs:{placeholder:e.$t("interfaces-language-select_language"),value:e.value},on:{input:function(t){e.$emit("input",t)}}},e._l(e.languages,function(t,a){return n("option",{domProps:{value:a}},[e._v(" "+e._s(t)+" ")])}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-fdd25c",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","./languages.json":"thdC"}]},{},["GNma"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/many-to-many/display.css b/public/extensions/core/interfaces/many-to-many/display.css index 9e90a2cc37..8a5c857a36 100644 --- a/public/extensions/core/interfaces/many-to-many/display.css +++ b/public/extensions/core/interfaces/many-to-many/display.css @@ -1,7 +1,7 @@ -.list[data-v-5ec831]{max-height:200px;overflow-y:scroll;list-style:none;padding:0 +.list[data-v-e8eb15]{max-height:200px;overflow-y:scroll;list-style:none;padding:0 } -.list li[data-v-5ec831]{color:var(--dark-gray);padding:8px 0 +.list li[data-v-e8eb15]{color:var(--dark-gray);padding:8px 0 } -.list li[data-v-5ec831]:not(:last-of-type){border-bottom:1px solid var(--lightest-gray) +.list li[data-v-e8eb15]:not(:last-of-type){border-bottom:1px solid var(--lightest-gray) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/many-to-many/display.js b/public/extensions/core/interfaces/many-to-many/display.js index 3841b88faa..21acf45daf 100644 --- a/public/extensions/core/interfaces/many-to-many/display.js +++ b/public/extensions/core/interfaces/many-to-many/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"l+Nm":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={name:"readonly-many-to-many",mixins:[e.default],methods:{render:function(e){return this.$helpers.micromustache.render(this.options.template,e)}}};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-popover",{attrs:{trigger:"hover"}},[n("div",{staticClass:"readonly-many-to-many"},[e._v(" "+e._s(e.$tc("item_count",(e.value||[]).length,{count:(e.value||[]).length}))+" ")]),e._v(" "),n("template",{slot:"popover"},[n("ul",{staticClass:"list"},e._l(e.value,function(t,o){return n("li",{key:o},[e._v(e._s(e.render(t)))])}))])],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-5ec831",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-popover",{attrs:{trigger:"hover"}},[n("div",{staticClass:"readonly-many-to-many"},[e._v(" "+e._s(e.$tc("item_count",(e.value||[]).length,{count:(e.value||[]).length}))+" ")]),e._v(" "),n("template",{slot:"popover"},[n("ul",{staticClass:"list"},e._l(e.value,function(t,o){return n("li",{key:o},[e._v(e._s(e.render(t)))])}))])],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-e8eb15",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["l+Nm"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/many-to-many/input.css b/public/extensions/core/interfaces/many-to-many/input.css index 128da9826d..1ebe06a2c3 100644 --- a/public/extensions/core/interfaces/many-to-many/input.css +++ b/public/extensions/core/interfaces/many-to-many/input.css @@ -1,39 +1,39 @@ -.table[data-v-10b09b]{background-color:var(--white);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);border-spacing:0;width:100%;margin:10px 0 20px +.table[data-v-714fe9]{background-color:var(--white);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);border-spacing:0;width:100%;margin:10px 0 20px } -.table .header[data-v-10b09b]{height:var(--input-height);border-bottom:1px solid var(--lighter-gray) +.table .header[data-v-714fe9]{height:var(--input-height);border-bottom:1px solid var(--lighter-gray) } -.table .header button[data-v-10b09b]{text-align:left;color:var(--gray);font-size:10px;text-transform:uppercase;font-weight:700;transition:color var(--fast) var(--transition) +.table .header button[data-v-714fe9]{text-align:left;color:var(--gray);font-size:10px;text-transform:uppercase;font-weight:700;transition:color var(--fast) var(--transition) } -.table .header button[data-v-10b09b]:hover{transition:none;color:var(--darker-gray) +.table .header button[data-v-714fe9]:hover{transition:none;color:var(--darker-gray) } -.table .header i[data-v-10b09b]{font-size:12px;vertical-align:top;color:var(--light-gray) +.table .header i[data-v-714fe9]{font-size:12px;vertical-align:top;color:var(--light-gray) } -.table .row[data-v-10b09b]{display:flex;align-items:center;padding:0 5px +.table .row[data-v-714fe9]{display:flex;align-items:center;padding:0 5px } -.table .row>div[data-v-10b09b]{padding:3px 5px;flex-basis:200px +.table .row>div[data-v-714fe9]{padding:3px 5px;flex-basis:200px } -.table .header .row[data-v-10b09b]{align-items:center;height:40px +.table .header .row[data-v-714fe9]{align-items:center;height:40px } -.table .header .row>button[data-v-10b09b]{padding:3px 5px;flex-basis:200px +.table .header .row>button[data-v-714fe9]{padding:3px 5px;flex-basis:200px } -.table .body[data-v-10b09b]{max-height:275px;overflow-y:scroll;-webkit-overflow-scrolling:touch +.table .body[data-v-714fe9]{max-height:275px;overflow-y:scroll;-webkit-overflow-scrolling:touch } -.table .body .row[data-v-10b09b]{cursor:pointer;position:relative;height:50px;border-bottom:1px solid var(--lightest-gray) +.table .body .row[data-v-714fe9]{cursor:pointer;position:relative;height:50px;border-bottom:1px solid var(--lightest-gray) } -.table .body .row[data-v-10b09b]:hover{background-color:var(--highlight) +.table .body .row[data-v-714fe9]:hover{background-color:var(--highlight) } -.table .body .row div[data-v-10b09b]:last-of-type{flex-grow:1 +.table .body .row div[data-v-714fe9]:last-of-type{flex-grow:1 } -.table .body .row button[data-v-10b09b]{color:var(--lighter-gray);transition:color var(--fast) var(--transition) +.table .body .row button[data-v-714fe9]{color:var(--lighter-gray);transition:color var(--fast) var(--transition) } -.table .body .row button[data-v-10b09b]:hover{transition:none;color:var(--danger) +.table .body .row button[data-v-714fe9]:hover{transition:none;color:var(--danger) } -button.select[data-v-10b09b]{background-color:var(--accent);border-radius:var(--border-radius);height:var(--input-height);padding:0 10px;display:inline-flex;align-items:center;margin-right:10px;transition:background-color var(--fast) var(--transition) +button.select[data-v-714fe9]{background-color:var(--accent);border-radius:var(--border-radius);height:var(--input-height);padding:0 10px;display:inline-flex;align-items:center;margin-right:10px;transition:background-color var(--fast) var(--transition) } -button.select i[data-v-10b09b]{margin-right:5px +button.select i[data-v-714fe9]{margin-right:5px } -button.select[data-v-10b09b]:hover{transition:none;background-color:var(--accent-dark) +button.select[data-v-714fe9]:hover{transition:none;background-color:var(--accent-dark) } -.edit-modal-body[data-v-10b09b]{padding:20px;background-color:var(--body-background) +.edit-modal-body[data-v-714fe9]{padding:20px;background-color:var(--body-background) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/many-to-many/input.js b/public/extensions/core/interfaces/many-to-many/input.js index cb1523c301..4b5d54557e 100644 --- a/public/extensions/core/interfaces/many-to-many/input.js +++ b/public/extensions/core/interfaces/many-to-many/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"BEmr":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../../../mixins/interface")),t=Object.assign||function(e){for(var t=1;t0?this.$api.getItem(this.relatedCollection,s.join(",")):Promise.resolve()).then(function(e){return e?e.data:null}).then(function(t){t&&(Array.isArray(t)?t.forEach(function(t){return l.push(n({},e.junctionRelatedKey,t))}):l.push(n({},e.junctionRelatedKey,t))),e.$emit("input",l),e.selectExisting=!1,e.selectionSaving=!1}).catch(function(t){e.$events.emit("error",{notify:e.$t("something_went_wrong_body"),error:t}),e.selectionSaving=!1,e.selectExisting=!1})},dismissSelection:function(){this.setSelection(),this.selectExisting=!1},stageValue:function(e){var t=e.field,i=e.value;this.$set(this.edits,t,i)},saveEdits:function(){var e=this;this.$emit("input",r((this.value||[]||[]).map(function(i){return i.id===e.editExisting[e.junctionPrimaryKey]?t({},i,n({},e.junctionRelatedKey,t({},i[e.junctionRelatedKey],e.edits))):i}))),this.edits={},this.editExisting=!1},addNewItem:function(){this.$emit("input",r(this.value||[]).concat([n({},this.junctionRelatedKey,this.edits)])),this.edits={},this.addNew=!1},removeRelated:function(e){var t=this,i=e.junctionKey,r=e.relatedKey,l=e.item;i?this.$emit("input",(this.value||[]).map(function(e){var r;return e[t.junctionPrimaryKey]===i?(n(r={},t.junctionPrimaryKey,e[t.junctionPrimaryKey]),n(r,"$delete",!0),r):e})):i||r?this.$emit("input",(this.value||[]).filter(function(e){return(e[t.junctionRelatedKey]||{})[t.relatedKey]!==r})):this.$emit("input",(this.value||[]).filter(function(e){return!1===t.$lodash.isEqual(e,l)}))}}};exports.default=u; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"interface-many-to-many"},[!1===t.relationSetup?i("div",{staticClass:"notice"},[i("p",[i("i",{staticClass:"material-icons"},[t._v("warning")]),t._v(" "+t._s(t.$t("interfaces-many-to-many-relation_not_setup"))+" ")])]):t._e(),t._v(" "),[t.items.length?i("div",{staticClass:"table"},[i("div",{staticClass:"header"},[i("div",{staticClass:"row"},t._l(t.columns,function(e){return i("button",{key:e.field,attrs:{type:"button"},on:{click:function(i){t.changeSort(e.field)}}},[t._v(" "+t._s(e.name)+" "),t.sort.field===e.field?i("i",{staticClass:"material-icons"},[t._v(" "+t._s(t.sort.asc?"arrow_downward":"arrow_upward")+" ")]):t._e()])}))]),t._v(" "),i("div",{staticClass:"body"},t._l(t.items,function(e){return i("div",{key:e[t.junctionPrimaryKey],staticClass:"row",on:{click:function(i){t.editExisting=e}}},[t._l(t.columns,function(s){return i("div",{key:s.field,staticClass:"no-wrap"},[i("v-ext-display",{attrs:{"interface-type":s.fieldInfo.interface,name:s.field,type:s.fieldInfo.type,datatype:s.fieldInfo.datatype,options:s.fieldInfo.options,value:e[t.junctionRelatedKey][s.field]}})],1)}),t._v(" "),i("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("remove_related"),expression:"$t('remove_related')"}],staticClass:"remove-item",attrs:{type:"button"},on:{click:function(i){i.stopPropagation(),t.removeRelated({junctionKey:e[t.junctionPrimaryKey],relatedKey:e[t.junctionRelatedKey][t.relatedKey],item:e})}}},[i("i",{staticClass:"material-icons"},[t._v("close")])])],2)}))]):t._e(),t._v(" "),i("button",{staticClass:"style-btn select",attrs:{type:"button"},on:{click:function(e){t.addNew=!0}}},[i("i",{staticClass:"material-icons"},[t._v("add")]),t._v(" "+t._s(t.$t("add_new"))+" ")]),t._v(" "),i("button",{staticClass:"style-btn select",attrs:{type:"button"},on:{click:function(e){t.selectExisting=!0}}},[i("i",{staticClass:"material-icons"},[t._v("playlist_add")]),t._v(" "),i("span",[t._v(t._s(t.$t("select_existing")))])])],t._v(" "),t.selectExisting?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:t.$t("select_existing"),buttons:{save:{text:"save",color:"accent",loading:t.selectionSaving}}},on:{close:t.dismissSelection,save:t.saveSelection}},[i("v-items",{attrs:{collection:t.relatedCollection,filters:t.filters,"view-query":t.viewQuery,"view-type":t.viewType,"view-options":t.viewOptions,selection:t.selection},on:{options:t.setViewOptions,query:t.setViewQuery,select:function(e){t.selection=e}}})],1)],1):t._e(),t._v(" "),t.editExisting?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:t.$t("editing_item"),buttons:{save:{text:"save",color:"accent",loading:t.selectionSaving}}},on:{close:function(e){t.editExisting=!1},save:t.saveEdits}},[i("div",{staticClass:"edit-modal-body"},[i("v-form",{attrs:{fields:t.relatedCollectionFields,values:t.editExisting[t.junctionRelatedKey]},on:{"stage-value":t.stageValue}})],1)])],1):t._e(),t._v(" "),t.addNew?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:t.$t("creating_item"),buttons:{save:{text:"save",color:"accent",loading:t.selectionSaving}}},on:{close:function(e){t.addNew=null},save:t.addNewItem}},[i("div",{staticClass:"edit-modal-body"},[i("v-form",{attrs:{fields:t.relatedCollectionFields,values:t.relatedDefaultsWithEdits},on:{"stage-value":t.stageValue}})],1)])],1):t._e()],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-10b09b",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"interface-many-to-many"},[!1===t.relationSetup?i("div",{staticClass:"notice"},[i("p",[i("i",{staticClass:"material-icons"},[t._v("warning")]),t._v(" "+t._s(t.$t("interfaces-many-to-many-relation_not_setup"))+" ")])]):t._e(),t._v(" "),[t.items.length?i("div",{staticClass:"table"},[i("div",{staticClass:"header"},[i("div",{staticClass:"row"},t._l(t.columns,function(e){return i("button",{key:e.field,attrs:{type:"button"},on:{click:function(i){t.changeSort(e.field)}}},[t._v(" "+t._s(e.name)+" "),t.sort.field===e.field?i("i",{staticClass:"material-icons"},[t._v(" "+t._s(t.sort.asc?"arrow_downward":"arrow_upward")+" ")]):t._e()])}))]),t._v(" "),i("div",{staticClass:"body"},t._l(t.items,function(e){return i("div",{key:e[t.junctionPrimaryKey],staticClass:"row",on:{click:function(i){t.editExisting=e}}},[t._l(t.columns,function(s){return i("div",{key:s.field,staticClass:"no-wrap"},[i("v-ext-display",{attrs:{"interface-type":s.fieldInfo.interface,name:s.field,type:s.fieldInfo.type,datatype:s.fieldInfo.datatype,options:s.fieldInfo.options,value:e[t.junctionRelatedKey][s.field]}})],1)}),t._v(" "),i("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("remove_related"),expression:"$t('remove_related')"}],staticClass:"remove-item",attrs:{type:"button"},on:{click:function(i){i.stopPropagation(),t.removeRelated({junctionKey:e[t.junctionPrimaryKey],relatedKey:e[t.junctionRelatedKey][t.relatedKey],item:e})}}},[i("i",{staticClass:"material-icons"},[t._v("close")])])],2)}))]):t._e(),t._v(" "),i("button",{staticClass:"style-btn select",attrs:{type:"button"},on:{click:function(e){t.addNew=!0}}},[i("i",{staticClass:"material-icons"},[t._v("add")]),t._v(" "+t._s(t.$t("add_new"))+" ")]),t._v(" "),i("button",{staticClass:"style-btn select",attrs:{type:"button"},on:{click:function(e){t.selectExisting=!0}}},[i("i",{staticClass:"material-icons"},[t._v("playlist_add")]),t._v(" "),i("span",[t._v(t._s(t.$t("select_existing")))])])],t._v(" "),t.selectExisting?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:t.$t("select_existing"),buttons:{save:{text:"save",color:"accent",loading:t.selectionSaving}}},on:{close:t.dismissSelection,save:t.saveSelection}},[i("v-items",{attrs:{collection:t.relatedCollection,filters:t.filters,"view-query":t.viewQuery,"view-type":t.viewType,"view-options":t.viewOptions,selection:t.selection},on:{options:t.setViewOptions,query:t.setViewQuery,select:function(e){t.selection=e}}})],1)],1):t._e(),t._v(" "),t.editExisting?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:t.$t("editing_item"),buttons:{save:{text:"save",color:"accent",loading:t.selectionSaving}}},on:{close:function(e){t.editExisting=!1},save:t.saveEdits}},[i("div",{staticClass:"edit-modal-body"},[i("v-form",{attrs:{fields:t.relatedCollectionFields,values:t.editExisting[t.junctionRelatedKey]},on:{"stage-value":t.stageValue}})],1)])],1):t._e(),t._v(" "),t.addNew?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:t.$t("creating_item"),buttons:{save:{text:"save",color:"accent",loading:t.selectionSaving}}},on:{close:function(e){t.addNew=null},save:t.addNewItem}},[i("div",{staticClass:"edit-modal-body"},[i("v-form",{attrs:{fields:t.relatedCollectionFields,values:t.relatedDefaultsWithEdits},on:{"stage-value":t.stageValue}})],1)])],1):t._e()],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-714fe9",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["BEmr"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/many-to-one/input.css b/public/extensions/core/interfaces/many-to-one/input.css index c0ef361720..18d9b50027 100644 --- a/public/extensions/core/interfaces/many-to-one/input.css +++ b/public/extensions/core/interfaces/many-to-one/input.css @@ -1,11 +1,11 @@ -.interface-many-to-one[data-v-3e584f]{position:relative;max-width:var(--width-medium) +.interface-many-to-one[data-v-868eed]{position:relative;max-width:var(--width-medium) } -.v-select[data-v-3e584f]{margin-top:0 +.v-select[data-v-868eed]{margin-top:0 } -button[data-v-3e584f]{position:absolute;left:0;top:0;width:100%;height:100%;background:transparent;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);transition:border var(--fast) var(--transition) +button[data-v-868eed]{position:absolute;left:0;top:0;width:100%;height:100%;background:transparent;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);transition:border var(--fast) var(--transition) } -button[data-v-3e584f]:hover{transition:none;border-color:var(--light-gray) +button[data-v-868eed]:hover{transition:none;border-color:var(--light-gray) } -.spinner[data-v-3e584f]{position:absolute;right:-50px;top:50%;transform:translateY(-50%) +.spinner[data-v-868eed]{position:absolute;right:-50px;top:50%;transform:translateY(-50%) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/many-to-one/input.js b/public/extensions/core/interfaces/many-to-one/input.js index db9cdb99a7..11889dc6bb 100644 --- a/public/extensions/core/interfaces/many-to-one/input.js +++ b/public/extensions/core/interfaces/many-to-one/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"iKSR":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../../../mixins/interface")),t=Object.assign||function(e){for(var t=1;t10?i("button",{attrs:{type:"button"},on:{click:function(t){e.showListing=!0}}}):e._e(),e._v(" "),i("v-spinner",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"spinner",attrs:{"line-fg-color":"var(--light-gray)","line-bg-color":"var(--lighter-gray)"}}),e._v(" "),e.showListing?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:e.$t("select_existing"),buttons:{save:{text:"save",color:"accent",loading:e.selectionSaving,disabled:null===e.newSelected}}},on:{close:e.dismissModal,save:e.populateDropdown}},[i("v-items",{attrs:{collection:e.relation.collection_one.collection,selection:e.selection,filters:e.filters,"view-query":e.viewQuery,"view-type":e.viewType,"view-options":e.viewOptions},on:{options:e.setViewOptions,query:e.setViewQuery,select:e.emitValue}})],1)],1):e._e()]],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3e584f",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"interface-many-to-one"},[!1===e.relationSetup?i("div",{staticClass:"notice"},[i("p",[i("i",{staticClass:"material-icons"},[e._v("warning")]),e._v(" "+e._s(e.$t("interfaces-many-to-many-relation_not_setup"))+" ")])]):[i("v-select",{attrs:{name:e.name,id:e.name,placeholder:e.options.placeholder||"",options:e.selectOptions,value:e.valuePK,icon:e.options.icon},on:{input:function(t){e.$emit("input",t)}}}),e._v(" "),e.count>10?i("button",{attrs:{type:"button"},on:{click:function(t){e.showListing=!0}}}):e._e(),e._v(" "),i("v-spinner",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"spinner",attrs:{"line-fg-color":"var(--light-gray)","line-bg-color":"var(--lighter-gray)"}}),e._v(" "),e.showListing?i("portal",{attrs:{to:"modal"}},[i("v-modal",{attrs:{title:e.$t("select_existing"),buttons:{save:{text:"save",color:"accent",loading:e.selectionSaving,disabled:null===e.newSelected}}},on:{close:e.dismissModal,save:e.populateDropdown}},[i("v-items",{attrs:{collection:e.relation.collection_one.collection,selection:e.selection,filters:e.filters,"view-query":e.viewQuery,"view-type":e.viewType,"view-options":e.viewOptions},on:{options:e.setViewOptions,query:e.setViewQuery,select:e.emitValue}})],1)],1):e._e()]],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-868eed",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["iKSR"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/map/display.css b/public/extensions/core/interfaces/map/display.css index 3fca86dda0..9cf42518ef 100644 --- a/public/extensions/core/interfaces/map/display.css +++ b/public/extensions/core/interfaces/map/display.css @@ -1,5 +1,5 @@ -i[data-v-3eb27d]{cursor:help +i[data-v-48dffd]{cursor:help } -i.empty[data-v-3eb27d]{color:var(--lighter-gray) +i.empty[data-v-48dffd]{color:var(--lighter-gray) }.map-value-tooltip{border-collapse:collapse}.map-value-tooltip tr+tr{border-top:1px solid var(--dark-gray)}.map-value-tooltip td{padding:4px 8px} \ No newline at end of file diff --git a/public/extensions/core/interfaces/map/display.js b/public/extensions/core/interfaces/map/display.js index 9bb350750f..2b266fc1cc 100644 --- a/public/extensions/core/interfaces/map/display.js +++ b/public/extensions/core/interfaces/map/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"bjZZ":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var n={name:"readonly-map",mixins:[t.default],computed:{location:function(){var t="";if(this.value){var e=JSON.parse(JSON.stringify(this.value));t='\n \n \n \n \n \n \n \n \n \n
Latitude'.concat(e.lat,"
Longitude").concat(e.lng,"
")}else t=this.$t("interfaces-map-no_location");return t}}};exports.default=n; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"readonly-map"},[e("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.location,expression:"location"}],staticClass:"material-icons",class:this.value?"":"empty"},[this._v("place")])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3eb27d",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"readonly-map"},[e("i",{directives:[{name:"tooltip",rawName:"v-tooltip",value:this.location,expression:"location"}],staticClass:"material-icons",class:this.value?"":"empty"},[this._v("place")])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-48dffd",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["bjZZ"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/map/input.css b/public/extensions/core/interfaces/map/input.css index 239bc9ac72..e9d709675f 100644 --- a/public/extensions/core/interfaces/map/input.css +++ b/public/extensions/core/interfaces/map/input.css @@ -1,27 +1,27 @@ .leaflet-map-pane{z-index:-1!important}.leaflet-control-container{z-index:1}.leaflet-control-attribution{position:absolute;right:4px;bottom:4px;color:var(--light-gray)}.leaflet-control-zoom{position:absolute;left:20px;top:70px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{display:block;transition:var(--fast) var(--transition) color;height:40px;width:40px;color:var(--light-gray);box-shadow:var(--box-shadow);background:#fff;text-decoration:none;font-size:24px;font-weight:300;padding:4px;text-align:center}.leaflet-control-zoom-in:hover,.leaflet-control-zoom-out:hover{color:var(--accent)}.leaflet-control-zoom-in{border-radius:var(--border-radius) var(--border-radius) 0 0;border-bottom:1px solid var(--lightest-gray)}.leaflet-control-zoom-out{border-radius:0 0 var(--border-radius) var(--border-radius)}.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{user-select:none;-webkit-user-drag:none}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-overlay-pane svg,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive{pointer-events:visiblePainted;pointer-events:auto} -.interface-map[data-v-970b8c]{overflow-x:auto;overflow-y:hidden +.interface-map[data-v-d82792]{overflow-x:auto;overflow-y:hidden } -.map[data-v-970b8c]{position:relative;display:flex;flex-direction:column;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius) +.map[data-v-d82792]{position:relative;display:flex;flex-direction:column;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius) } -.map-container[data-v-970b8c]{z-index:1;width:100%;height:var(--width-medium) +.map-container[data-v-d82792]{z-index:1;width:100%;height:var(--width-medium) } -.map-actions[data-v-970b8c]{position:absolute;top:20px;left:20px;z-index:2 +.map-actions[data-v-d82792]{position:absolute;top:20px;left:20px;z-index:2 } -.map-my-location[data-v-970b8c]{transition:var(--fast) var(--transition) color;height:40px;width:40px;border-radius:var(--border-radius);color:var(--light-gray);box-shadow:var(--box-shadow);background:#fff +.map-my-location[data-v-d82792]{transition:var(--fast) var(--transition) color;height:40px;width:40px;border-radius:var(--border-radius);color:var(--light-gray);box-shadow:var(--box-shadow);background:#fff } -.map-my-location[data-v-970b8c]:hover{color:var(--accent) +.map-my-location[data-v-d82792]:hover{color:var(--accent) } -.map-details[data-v-970b8c]{display:flex;margin-top:4px;justify-content:space-between;height:18px +.map-details[data-v-d82792]{display:flex;margin-top:4px;justify-content:space-between;height:18px } -.map-location span[data-v-970b8c]{color:var(--light-gray);margin-right:20px +.map-location span[data-v-d82792]{color:var(--light-gray);margin-right:20px } -.map-clear[data-v-970b8c],.map-location span[data-v-970b8c]{text-transform:none;font-style:italic +.map-clear[data-v-d82792],.map-location span[data-v-d82792]{text-transform:none;font-style:italic } -.map-clear[data-v-970b8c]{color:var(--accent);padding-right:2px +.map-clear[data-v-d82792]{color:var(--accent);padding-right:2px } -.map-readonly .map-container[data-v-970b8c]{filter:grayscale(100%);opacity:.8 +.map-readonly .map-container[data-v-d82792]{filter:grayscale(100%);opacity:.8 } @media only screen and (max-width:800px){ -.map[data-v-970b8c]{display:flex +.map[data-v-d82792]{display:flex } } \ No newline at end of file diff --git a/public/extensions/core/interfaces/map/input.js b/public/extensions/core/interfaces/map/input.js index a6594fb83f..5e9e9935f5 100644 --- a/public/extensions/core/interfaces/map/input.js +++ b/public/extensions/core/interfaces/map/input.js @@ -8,5 +8,5 @@ var t,i=arguments[3];!function(i,e){"object"==typeof exports&&"undefined"!=typeo },{}],"ksnR":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("../../../mixins/interface")),e=i(require("leaflet"));function i(t){return t&&t.__esModule?t:{default:t}}require("./leaflet.css");var n={name:"interface-map",mixins:[t.default],data:function(){return{test:null,map:null,marker:null,latlng:null,isLocating:!1,mapPlaceholder:"directusMap",mapInteractions:["boxZoom","doubleClickZoom","dragging","keyboard","scrollWheelZoom","tap","touchZoom"]}},mounted:function(){this.init()},watch:{"options.theme":function(t){e.default.tileLayer(t).addTo(this.map)},readonly:function(t){this.toggleMapInteractions(!t),this.toggleMarkerInteractions(!t),t?(this.unbindMapEvents(),this.unbindMarkerEvents()):(this.bindMapEvents(),this.bindMarkerEvents())},latlng:function(t){this.setMarker(t)}},computed:{isInteractive:function(){return!this.readonly},accentColor:function(){return getComputedStyle(document.documentElement).getPropertyValue("--accent").trim()},darkAccentColor:function(){return getComputedStyle(document.documentElement).getPropertyValue("--accent-dark").trim()}},methods:{init:function(){var t;t=this.value?e.default.latLng(this.value.lat,this.value.lng):e.default.latLng(this.options.mapLat,this.options.mapLng),this.createMap(t)},createMap:function(t){this.map=e.default.map(this.mapPlaceholder,{center:t,zoom:this.options.defaultZoom,maxZoom:this.options.maxZoom,zoomControl:!0}),e.default.tileLayer(this.options.theme,{attribution:'© Carto'}).addTo(this.map),this.value&&this.setValue(this.value),this.isInteractive?this.bindMapEvents():this.unbindMapEvents()},setMarker:function(t){if(this.marker)t?this.marker.setLatLng(t).setOpacity(1):this.marker.setOpacity(0);else{var i=e.default.icon({iconUrl:this.markerSVG(),iconSize:[36,36],iconAnchor:[18,36]});this.marker=e.default.marker(t,{icon:i,draggable:this.isInteractive}).addTo(this.map),this.isInteractive&&(this.bindMarkerEvents(),this.toggleMapInteractions(!0))}},setValue:function(t){this.latlng=t,this.$emit("input",this.latlng?JSON.parse(JSON.stringify(this.latlng)):null)},toggleMarkerInteractions:function(t){t?this.marker.dragging.enable():this.marker.dragging.disable()},unbindMarkerEvents:function(){this.marker.off("drag")},bindMarkerEvents:function(){var t=this;this.marker.on("drag",_.debounce(function(e){t.setValue(e.latlng)},100))},toggleMapInteractions:function(t){var e=this;this.mapInteractions.forEach(function(i){e.map[i]&&(t?e.map[i].enable():e.map[i].disable())})},unbindMapEvents:function(){this.map.off("click")},bindMapEvents:function(){var t=this;this.map.on("click",function(e){t.setValue(e.latlng)}),this.map.on("locationerror",function(e){t.$events.emit("error",{notify:1==e.code?t.$t("interfaces-map-user_location_error_blocked"):t.$t("interfaces-map-user_location_error"),error:e}),t.isLocating&&t.$store.dispatch("loadingFinished",t.isLocating)}),this.map.on("locationfound",function(e){t.isLocating&&t.$store.dispatch("loadingFinished",t.isLocating),t.setValue(e.latlng)})},locateMe:function(){this.isLocating=this.isLocating||this.$helpers.shortid.generate(),this.$store.dispatch("loadingStart",{id:this.isLocating}),this.map.locate({setView:!0,maxZoom:this.options.maxZoom})},markerSVG:function(){return'data:image/svg+xml;utf8,')}}};exports.default=n; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"interface-map"},[s("div",{staticClass:"map",class:{"map-readonly":t.readonly}},[s("div",{staticClass:"map-container",style:{height:t.options.height+"px"},attrs:{id:"directusMap"}}),t._v(" "),s("div",{staticClass:"map-actions"},[t.isInteractive?s("button",{staticClass:"map-my-location",on:{click:function(a){t.locateMe()}}},[s("i",{staticClass:"material-icons"},[t._v("my_location")])]):t._e()])]),t._v(" "),s("div",{staticClass:"map-details"},[s("div",{staticClass:"map-location"},[t.latlng?s("span",[t._v("Latitude: "),s("b",[t._v(t._s(t.latlng.lat))])]):t._e(),t._v(" "),t.latlng?s("span",[t._v("Longitude: "),s("b",[t._v(t._s(t.latlng.lng))])]):t._e()]),t._v(" "),t.isInteractive&&t.latlng?s("button",{staticClass:"map-clear",on:{click:function(a){t.setValue()}}},[t._v(" "+t._s(t.$t("clear"))+" ")]):t._e()])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-970b8c",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"interface-map"},[s("div",{staticClass:"map",class:{"map-readonly":t.readonly}},[s("div",{staticClass:"map-container",style:{height:t.options.height+"px"},attrs:{id:"directusMap"}}),t._v(" "),s("div",{staticClass:"map-actions"},[t.isInteractive?s("button",{staticClass:"map-my-location",on:{click:function(a){t.locateMe()}}},[s("i",{staticClass:"material-icons"},[t._v("my_location")])]):t._e()])]),t._v(" "),s("div",{staticClass:"map-details"},[s("div",{staticClass:"map-location"},[t.latlng?s("span",[t._v("Latitude: "),s("b",[t._v(t._s(t.latlng.lat))])]):t._e(),t._v(" "),t.latlng?s("span",[t._v("Longitude: "),s("b",[t._v(t._s(t.latlng.lng))])]):t._e()]),t._v(" "),t.isInteractive&&t.latlng?s("button",{staticClass:"map-clear",on:{click:function(a){t.setValue()}}},[t._v(" "+t._s(t.$t("clear"))+" ")]):t._e()])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-d82792",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","leaflet":"z+Pe","./leaflet.css":"WE97"}]},{},["ksnR"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/markdown/input.css b/public/extensions/core/interfaces/markdown/input.css index 5c438da9e1..f1dd53806e 100644 --- a/public/extensions/core/interfaces/markdown/input.css +++ b/public/extensions/core/interfaces/markdown/input.css @@ -1,9 +1,9 @@ -.interface-markdown[data-v-350039]{position:relative;display:flex;width:100% +.interface-markdown[data-v-235262]{position:relative;display:flex;width:100% } -.interface-markdown .preview[data-v-350039],.interface-markdown .textarea[data-v-350039]{flex-grow:1;width:calc(50% - 10px);max-width:var(--width-large);min-height:200px;max-height:800px;overflow:scroll +.interface-markdown .preview[data-v-235262],.interface-markdown .textarea[data-v-235262]{flex-grow:1;width:calc(50% - 10px);max-width:var(--width-large);min-height:200px;max-height:800px;overflow:scroll } -.interface-markdown .textarea[data-v-350039]{font-family:Roboto Mono,monospace +.interface-markdown .textarea[data-v-235262]{font-family:Roboto Mono,monospace } -.interface-markdown .preview[data-v-350039]{background-color:var(--white);padding:10px;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);margin-left:20px +.interface-markdown .preview[data-v-235262]{background-color:var(--white);padding:10px;border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);margin-left:20px }.interface-markdown .preview{font-size:14px;line-height:1.6;font-weight:400}.interface-markdown .preview>:first-child{margin-top:0}.interface-markdown .preview>:last-child{margin-bottom:0}.interface-markdown .preview h1,.interface-markdown .preview h2,.interface-markdown .preview h3,.interface-markdown .preview h4,.interface-markdown .preview h5,.interface-markdown .preview h6{margin:20px 0 10px;padding:0;font-weight:700;cursor:text;position:relative}.interface-markdown .preview h1 code,.interface-markdown .preview h1 tt,.interface-markdown .preview h2 code,.interface-markdown .preview h2 tt,.interface-markdown .preview h3 code,.interface-markdown .preview h3 tt,.interface-markdown .preview h4 code,.interface-markdown .preview h4 tt,.interface-markdown .preview h5 code,.interface-markdown .preview h5 tt,.interface-markdown .preview h6 code,.interface-markdown .preview h6 tt{font-size:inherit}.interface-markdown .preview h1{font-size:28px}.interface-markdown .preview h2{font-size:24px}.interface-markdown .preview h3{font-size:18px}.interface-markdown .preview h4{font-size:16px}.interface-markdown .preview h5{font-size:14px}.interface-markdown .preview h6{font-size:14px;color:var(--gray)}.interface-markdown .preview blockquote,.interface-markdown .preview dl,.interface-markdown .preview li,.interface-markdown .preview ol,.interface-markdown .preview p,.interface-markdown .preview pre,.interface-markdown .preview table,.interface-markdown .preview ul{margin:15px 0}.interface-markdown .preview>h1:first-child,.interface-markdown .preview>h1:first-child+h2,.interface-markdown .preview>h2:first-child,.interface-markdown .preview>h3:first-child,.interface-markdown .preview>h4:first-child,.interface-markdown .preview>h5:first-child,.interface-markdown .preview>h6:first-child,.interface-markdown .preview a:first-child h1,.interface-markdown .preview a:first-child h2,.interface-markdown .preview a:first-child h3,.interface-markdown .preview a:first-child h4,.interface-markdown .preview a:first-child h5,.interface-markdown .preview a:first-child h6{margin-top:0;padding-top:0}.interface-markdown .preview h1 p,.interface-markdown .preview h2 p,.interface-markdown .preview h3 p,.interface-markdown .preview h4 p,.interface-markdown .preview h5 p,.interface-markdown .preview h6 p{margin-top:0}.interface-markdown .preview li p.first{display:inline-block}.interface-markdown .preview ol,.interface-markdown .preview ul{padding-left:30px}.interface-markdown .preview ol :first-child,.interface-markdown .preview ul :first-child{margin-top:0}.interface-markdown .preview ol :last-child,.interface-markdown .preview ul :last-child{margin-bottom:0}.interface-markdown .preview blockquote{border-left:4px solid var(--lightest-gray);padding:0 15px;color:var(--gray)}.interface-markdown .preview blockquote>:first-child{margin-top:0}.interface-markdown .preview blockquote>:last-child{margin-bottom:0}.interface-markdown .preview table{padding:0;border-spacing:0;border-collapse:collapse}.interface-markdown .preview table tr{border-top:1px solid var(--lightest-gray);background-color:#fff;margin:0;padding:0}.interface-markdown .preview table tr:nth-child(2n){background-color:var(--body-background)}.interface-markdown .preview table tr th{font-weight:700}.interface-markdown .preview table tr td,.interface-markdown .preview table tr th{border:1px solid var(--lightest-gray);text-align:left;margin:0;padding:6px 13px}.interface-markdown .preview table tr td :first-child,.interface-markdown .preview table tr th :first-child{margin-top:0}.interface-markdown .preview table tr td :last-child,.interface-markdown .preview table tr th :last-child{margin-bottom:0}.interface-markdown .preview img{max-width:100%}.interface-markdown .preview code,.interface-markdown .preview tt{font-family:Roboto Mono,mono;margin:0 2px;padding:0 5px;white-space:nowrap;border:1px solid var(--lightest-gray);background-color:var(--body-background);border-radius:var(--border-radius)}.interface-markdown .preview pre code{margin:0;padding:0;white-space:pre;border:none;background:transparent}.interface-markdown .preview .highlight pre,.interface-markdown .preview pre{background-color:var(--body-background);border:1px solid var(--lightest-gray);font-size:13px;line-height:19px;overflow:auto;padding:6px 10px;border-radius:var(--border-radius)}.interface-markdown .preview pre{font-family:Roboto Mono,mono}.interface-markdown .preview pre code,.interface-markdown .preview pre tt{background-color:transparent;border:none}.interface-markdown .preview hr{border:none;border-top:1px solid var(--lightest-gray);margin:20px auto}.interface-markdown .preview b,.interface-markdown .preview strong{font-weight:700}.interface-markdown .preview a{color:var(--accent)} \ No newline at end of file diff --git a/public/extensions/core/interfaces/markdown/input.js b/public/extensions/core/interfaces/markdown/input.js index 8182bc7d13..0c8d7bef45 100644 --- a/public/extensions/core/interfaces/markdown/input.js +++ b/public/extensions/core/interfaces/markdown/input.js @@ -6,5 +6,5 @@ var e,t=arguments[3];!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4 module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"bf/9":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("marked")),t=r(require("../../../mixins/interface"));function r(e){return e&&e.__esModule?e:{default:e}}var u={computed:{compiledMarkdown:function(){return this.value?(0,e.default)(this.value):this.value}},mixins:[t.default]};exports.default=u; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"interface-markdown"},[a("v-textarea",{staticClass:"textarea",attrs:{value:e.value,placeholder:e.options.placeholder,rows:+e.options.rows,id:e.name},on:{input:function(t){e.$emit("input",t)}}}),e._v(" "),a("div",{staticClass:"preview",domProps:{innerHTML:e._s(e.compiledMarkdown)}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-350039",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"interface-markdown"},[a("v-textarea",{staticClass:"textarea",attrs:{value:e.value,placeholder:e.options.placeholder,rows:+e.options.rows,id:e.name},on:{input:function(t){e.$emit("input",t)}}}),e._v(" "),a("div",{staticClass:"preview",domProps:{innerHTML:e._s(e.compiledMarkdown)}})],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-235262",functional:void 0});})(); },{"marked":"j8cv","../../../mixins/interface":"QdEO"}]},{},["bf/9"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/multiselect/input.css b/public/extensions/core/interfaces/multiselect/input.css index 735c0f25c6..99a555c240 100644 --- a/public/extensions/core/interfaces/multiselect/input.css +++ b/public/extensions/core/interfaces/multiselect/input.css @@ -1,17 +1,17 @@ -.select[data-v-3723b1]{transition:all var(--fast) var(--transition);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);width:100%;max-width:var(--width-large);font-family:Roboto,sans-serif;height:130px +.select[data-v-0f3352]{transition:all var(--fast) var(--transition);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);width:100%;max-width:var(--width-large);font-family:Roboto,sans-serif;height:130px } -.select[data-v-3723b1]:hover{transition:none;border-color:var(--light-gray) +.select[data-v-0f3352]:hover{transition:none;border-color:var(--light-gray) } -.select[data-v-3723b1]:focus{border-color:var(--accent) +.select[data-v-0f3352]:focus{border-color:var(--accent) } -.select:focus option[data-v-3723b1]{color:var(--dark-gray) +.select:focus option[data-v-0f3352]{color:var(--dark-gray) } -.select option[data-v-3723b1]{transition:color var(--fast) var(--transition);padding:5px 10px;color:var(--gray) +.select option[data-v-0f3352]{transition:color var(--fast) var(--transition);padding:5px 10px;color:var(--gray) } -.select option[data-v-3723b1]:hover{transition:none;color:var(--accent) +.select option[data-v-0f3352]:hover{transition:none;color:var(--accent) } -.select option[data-v-3723b1]:checked{background:var(--accent) linear-gradient(0deg,var(--accent),var(--accent));position:relative;color:var(--white);-webkit-text-fill-color:var(--white) +.select option[data-v-0f3352]:checked{background:var(--accent) linear-gradient(0deg,var(--accent),var(--accent));position:relative;color:var(--white);-webkit-text-fill-color:var(--white) } -.select option[data-v-3723b1]:checked:after{content:"check";font-family:Material Icons;font-size:24px;position:absolute;right:10px;top:50%;transform:translateY(-54%) +.select option[data-v-0f3352]:checked:after{content:"check";font-family:Material Icons;font-size:24px;position:absolute;right:10px;top:50%;transform:translateY(-54%) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/multiselect/input.js b/public/extensions/core/interfaces/multiselect/input.js index 794386dd1e..f1605ccfc5 100644 --- a/public/extensions/core/interfaces/multiselect/input.js +++ b/public/extensions/core/interfaces/multiselect/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"ra5B":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var i={mixins:[e.default],computed:{choices:function(){var e=this.options.choices;return e?("string"==typeof this.options.choices&&(e=JSON.parse(this.options.choices)),e):{}}},methods:{updateValue:function(e){var t=Array.from(e).filter(function(e){return e.selected&&Boolean(e.value)}).map(function(e){return e.value}).join();t&&this.options.wrapWithDelimiter&&(t=",".concat(t,",")),t=t.split(","),this.$emit("input",t)}}};exports.default=i; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("select",{staticClass:"select",attrs:{disabled:e.readonly,id:e.name,multiple:""},on:{change:function(t){e.updateValue(t.target.options)}}},[e.options.placeholder?o("option",{attrs:{value:"",disabled:e.required}},[e._v(e._s(e.options.placeholder))]):e._e(),e._v(" "),e._l(e.choices,function(t,n){return o("option",{key:n,domProps:{value:n,selected:e.value&&e.value.includes(n)}},[e._v(e._s(t))])})],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3723b1",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("select",{staticClass:"select",attrs:{disabled:e.readonly,id:e.name,multiple:""},on:{change:function(t){e.updateValue(t.target.options)}}},[e.options.placeholder?o("option",{attrs:{value:"",disabled:e.required}},[e._v(e._s(e.options.placeholder))]):e._e(),e._v(" "),e._l(e.choices,function(t,n){return o("option",{key:n,domProps:{value:n,selected:e.value&&e.value.includes(n)}},[e._v(e._s(t))])})],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-0f3352",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["ra5B"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/numeric/input.css b/public/extensions/core/interfaces/numeric/input.css index 172aa7a11c..14bb33428c 100644 --- a/public/extensions/core/interfaces/numeric/input.css +++ b/public/extensions/core/interfaces/numeric/input.css @@ -1,3 +1,3 @@ -.v-input[data-v-b2adfc]{width:100%;max-width:var(--width-medium) +.v-input[data-v-ad04ae]{width:100%;max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/numeric/input.js b/public/extensions/core/interfaces/numeric/input.js index ab320e35d9..4b3383d1b0 100644 --- a/public/extensions/core/interfaces/numeric/input.js +++ b/public/extensions/core/interfaces/numeric/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"N5jW":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default],computed:{step:function(){if("decimal"===this.type){var e=this.length&&this.length.split(",")[1];return"0.".concat("1".padStart(e,0))}return 1}}};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-input",{attrs:{type:"number",readonly:e.readonly,placeholder:e.options.placeholder,value:e.value,"icon-left":e.options.iconLeft,"icon-right":e.options.iconRight,step:e.step},on:{input:function(t){e.$emit("input",Number(t))}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-b2adfc",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-input",{attrs:{type:"number",readonly:e.readonly,placeholder:e.options.placeholder,value:e.value,"icon-left":e.options.iconLeft,"icon-right":e.options.iconRight,step:e.step},on:{input:function(t){e.$emit("input",Number(t))}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-ad04ae",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["N5jW"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/one-to-many/display.css b/public/extensions/core/interfaces/one-to-many/display.css index d770a2d7f9..5e9454c36d 100644 --- a/public/extensions/core/interfaces/one-to-many/display.css +++ b/public/extensions/core/interfaces/one-to-many/display.css @@ -1,7 +1,7 @@ -.list[data-v-785e92]{max-height:200px;overflow-y:scroll;list-style:none;padding:0 +.list[data-v-a0741f]{max-height:200px;overflow-y:scroll;list-style:none;padding:0 } -.list li[data-v-785e92]{color:var(--dark-gray);padding:8px 0 +.list li[data-v-a0741f]{color:var(--dark-gray);padding:8px 0 } -.list li[data-v-785e92]:not(:last-of-type){border-bottom:1px solid var(--lightest-gray) +.list li[data-v-a0741f]:not(:last-of-type){border-bottom:1px solid var(--lightest-gray) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/one-to-many/display.js b/public/extensions/core/interfaces/one-to-many/display.js index 08d4454c52..df2a5151df 100644 --- a/public/extensions/core/interfaces/one-to-many/display.js +++ b/public/extensions/core/interfaces/one-to-many/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"8WBI":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={name:"readonly-one-to-many",mixins:[e.default],methods:{render:function(e){return this.$helpers.micromustache.render(this.options.template,e)}}};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-popover",{attrs:{trigger:"hover"}},[n("div",{staticClass:"readonly-many-to-many"},[e._v(" "+e._s(e.$tc("item_count",(e.value||[]).length,{count:(e.value||[]).length}))+" ")]),e._v(" "),n("template",{slot:"popover"},[n("ul",{staticClass:"list"},e._l(e.value,function(t,o){return n("li",{key:o},[e._v(e._s(e.render(t)))])}))])],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-785e92",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-popover",{attrs:{trigger:"hover"}},[n("div",{staticClass:"readonly-many-to-many"},[t._v(" "+t._s(t.$tc("item_count",(t.value||[]).length,{count:(t.value||[]).length}))+" ")]),t._v(" "),n("template",{slot:"popover"},[n("ul",{staticClass:"list"},t._l(t.value,function(e,o){return n("li",{key:o},[t._v(t._s(t.render(e)))])}))])],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-a0741f",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["8WBI"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/one-to-many/input.css b/public/extensions/core/interfaces/one-to-many/input.css index 12128f043b..672ea00737 100644 --- a/public/extensions/core/interfaces/one-to-many/input.css +++ b/public/extensions/core/interfaces/one-to-many/input.css @@ -1,39 +1,39 @@ -.table[data-v-f493d4]{background-color:var(--white);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);border-spacing:0;width:100%;margin:10px 0 20px +.table[data-v-e0589f]{background-color:var(--white);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius);border-spacing:0;width:100%;margin:10px 0 20px } -.table .header[data-v-f493d4]{height:var(--input-height);border-bottom:1px solid var(--lighter-gray) +.table .header[data-v-e0589f]{height:var(--input-height);border-bottom:1px solid var(--lighter-gray) } -.table .header button[data-v-f493d4]{text-align:left;color:var(--gray);font-size:10px;text-transform:uppercase;font-weight:700;transition:color var(--fast) var(--transition) +.table .header button[data-v-e0589f]{text-align:left;color:var(--gray);font-size:10px;text-transform:uppercase;font-weight:700;transition:color var(--fast) var(--transition) } -.table .header button[data-v-f493d4]:hover{transition:none;color:var(--darker-gray) +.table .header button[data-v-e0589f]:hover{transition:none;color:var(--darker-gray) } -.table .header i[data-v-f493d4]{font-size:12px;vertical-align:top;color:var(--light-gray) +.table .header i[data-v-e0589f]{font-size:12px;vertical-align:top;color:var(--light-gray) } -.table .row[data-v-f493d4]{display:flex;align-items:center;padding:0 5px +.table .row[data-v-e0589f]{display:flex;align-items:center;padding:0 5px } -.table .row>div[data-v-f493d4]{padding:3px 5px;flex-basis:200px +.table .row>div[data-v-e0589f]{padding:3px 5px;flex-basis:200px } -.table .header .row[data-v-f493d4]{align-items:center;height:40px +.table .header .row[data-v-e0589f]{align-items:center;height:40px } -.table .header .row>button[data-v-f493d4]{padding:3px 5px;flex-basis:200px +.table .header .row>button[data-v-e0589f]{padding:3px 5px;flex-basis:200px } -.table .body[data-v-f493d4]{max-height:275px;overflow-y:scroll;-webkit-overflow-scrolling:touch +.table .body[data-v-e0589f]{max-height:275px;overflow-y:scroll;-webkit-overflow-scrolling:touch } -.table .body .row[data-v-f493d4]{cursor:pointer;position:relative;height:50px;border-bottom:1px solid var(--lightest-gray) +.table .body .row[data-v-e0589f]{cursor:pointer;position:relative;height:50px;border-bottom:1px solid var(--lightest-gray) } -.table .body .row[data-v-f493d4]:hover{background-color:var(--highlight) +.table .body .row[data-v-e0589f]:hover{background-color:var(--highlight) } -.table .body .row div[data-v-f493d4]:last-of-type{flex-grow:1 +.table .body .row div[data-v-e0589f]:last-of-type{flex-grow:1 } -.table .body .row button[data-v-f493d4]{color:var(--lighter-gray);transition:color var(--fast) var(--transition) +.table .body .row button[data-v-e0589f]{color:var(--lighter-gray);transition:color var(--fast) var(--transition) } -.table .body .row button[data-v-f493d4]:hover{transition:none;color:var(--danger) +.table .body .row button[data-v-e0589f]:hover{transition:none;color:var(--danger) } -button.select[data-v-f493d4]{background-color:var(--darker-gray);border-radius:var(--border-radius);height:var(--input-height);padding:0 10px;display:inline-flex;align-items:center;margin-right:10px;transition:background-color var(--fast) var(--transition) +button.select[data-v-e0589f]{background-color:var(--darker-gray);border-radius:var(--border-radius);height:var(--input-height);padding:0 10px;display:inline-flex;align-items:center;margin-right:10px;transition:background-color var(--fast) var(--transition) } -button.select i[data-v-f493d4]{margin-right:5px +button.select i[data-v-e0589f]{margin-right:5px } -button.select[data-v-f493d4]:hover{transition:none;background-color:var(--darkest-gray) +button.select[data-v-e0589f]:hover{transition:none;background-color:var(--darkest-gray) } -.edit-modal-body[data-v-f493d4]{padding:20px;background-color:var(--body-background) +.edit-modal-body[data-v-e0589f]{padding:20px;background-color:var(--body-background) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/one-to-many/input.js b/public/extensions/core/interfaces/one-to-many/input.js index 9c3bbe0a6e..67d1c07b91 100644 --- a/public/extensions/core/interfaces/one-to-many/input.js +++ b/public/extensions/core/interfaces/one-to-many/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"rZM7":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("../../../mixins/interface")),t=Object.assign||function(e){for(var t=1;t=.75?"full":.75>this.frac&&this.frac>=.25?"half":"empty":"empty"},ratingStyle:function(t){var r={};return"empty"!=this.starType(t)&&(this.hovered?r.color="var(--dark-gray)":r.color="var(--".concat(this.options.active_color,")")),r},ratingClass:function(t){var r=["rating-button"],e=this.starType(t);return r.push("rating-".concat(e)),this.hovered&&r.push("rating-hover"),r}}};exports.default=t; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["rating-stars",{"rating-readonly":e.readonly},{"rating-small":e.small}]},e._l(e.options.max_stars,function(n){return t("button",{key:"star_"+n,class:e.ratingClass(n),style:e.ratingStyle(n),on:{mouseenter:function(t){!e.readonly&&(e.hovered=n)},mouseleave:function(n){!e.readonly&&(e.hovered=null)},click:function(t){!e.readonly&&e.set(n)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-2ac7dd",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["rating-stars",{"rating-readonly":e.readonly},{"rating-small":e.small}]},e._l(e.options.max_stars,function(n){return t("button",{key:"star_"+n,class:e.ratingClass(n),style:e.ratingStyle(n),on:{mouseenter:function(t){!e.readonly&&(e.hovered=n)},mouseleave:function(n){!e.readonly&&(e.hovered=null)},click:function(t){!e.readonly&&e.set(n)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-d84256",functional:void 0});})(); },{}],"xNnO":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default],components:{Stars:require("./stars.vue").default}};exports.default=r; -(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",{staticClass:"display-rating"},["number"==s.options.display?a("div",{staticClass:"rating-numbers"},[a("i",{staticClass:"material-icons"},[s._v("star")]),s._v(" "),a("span",[s._v(s._s(s.value?s.value:0))])]):s._e(),s._v(" "),"star"==s.options.display?a("div",{staticClass:"rating-stars"},[a("stars",{attrs:{options:s.options,rating:s.value,readonly:!0,small:!0}})],1):s._e()])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-1f4857",functional:void 0});})(); +(function(){var s=exports.default||module.exports;"function"==typeof s&&(s=s.options),Object.assign(s,{render:function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",{staticClass:"display-rating"},["number"==s.options.display?a("div",{staticClass:"rating-numbers"},[a("i",{staticClass:"material-icons"},[s._v("star")]),s._v(" "),a("span",[s._v(s._s(s.value?s.value:0))])]):s._e(),s._v(" "),"star"==s.options.display?a("div",{staticClass:"rating-stars"},[a("stars",{attrs:{options:s.options,rating:s.value,readonly:!0,small:!0}})],1):s._e()])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-01a1e8",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","./stars.vue":"ySEJ"}]},{},["xNnO"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/rating/input.css b/public/extensions/core/interfaces/rating/input.css index 2131353c2d..d39c0a8350 100644 --- a/public/extensions/core/interfaces/rating/input.css +++ b/public/extensions/core/interfaces/rating/input.css @@ -1,31 +1,31 @@ -.rating-stars[data-v-2ac7dd]{display:flex +.rating-stars[data-v-d84256]{display:flex } -.rating-readonly .rating-button[data-v-2ac7dd]{cursor:auto +.rating-readonly .rating-button[data-v-d84256]{cursor:auto } -.rating-small .rating-button[data-v-2ac7dd]{width:18px;height:20px +.rating-small .rating-button[data-v-d84256]{width:18px;height:20px } -.rating-small .rating-button[data-v-2ac7dd]:after{font-size:18px +.rating-small .rating-button[data-v-d84256]:after{font-size:18px } -.rating-button[data-v-2ac7dd]{width:36px;height:40px;display:flex;justify-content:center;align-items:center +.rating-button[data-v-d84256]{width:36px;height:40px;display:flex;justify-content:center;align-items:center } -.rating-button[data-v-2ac7dd]:after{font-family:Material Icons;font-size:36px;line-height:1 +.rating-button[data-v-d84256]:after{font-family:Material Icons;font-size:36px;line-height:1 } -.rating-empty[data-v-2ac7dd]{color:var(--lighter-gray) +.rating-empty[data-v-d84256]{color:var(--lighter-gray) } -.rating-empty[data-v-2ac7dd]:after{content:"star_border" +.rating-empty[data-v-d84256]:after{content:"star_border" } -.rating-half[data-v-2ac7dd]{color:var(--darker-gray) +.rating-half[data-v-d84256]{color:var(--darker-gray) } -.rating-half[data-v-2ac7dd]:after{content:"star_half" +.rating-half[data-v-d84256]:after{content:"star_half" } -.rating-full[data-v-2ac7dd]{color:var(--darker-gray) +.rating-full[data-v-d84256]{color:var(--darker-gray) } -.rating-full[data-v-2ac7dd]:after{content:"star" +.rating-full[data-v-d84256]:after{content:"star" } -.rating[data-v-1df0e9],.rating-value[data-v-1df0e9]{display:flex;align-items:center +.rating[data-v-ca214d],.rating-value[data-v-ca214d]{display:flex;align-items:center } -.rating-value[data-v-1df0e9]{margin-left:20px;color:var(--gray) +.rating-value[data-v-ca214d]{margin-left:20px;color:var(--gray) } -.rating-input[data-v-1df0e9]{width:50px;margin-right:10px +.rating-input[data-v-ca214d]{width:50px;margin-right:10px } \ No newline at end of file diff --git a/public/extensions/core/interfaces/rating/input.js b/public/extensions/core/interfaces/rating/input.js index 1710adab21..85dae396a1 100644 --- a/public/extensions/core/interfaces/rating/input.js +++ b/public/extensions/core/interfaces/rating/input.js @@ -2,8 +2,8 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"ySEJ":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t={props:{readonly:{type:Boolean,default:!1},small:{type:Boolean,default:!1},rating:{default:0},options:{}},data:function(){return{hovered:null}},computed:{int:function(){return this.hovered?this.hovered:Math.floor(this.rating)},frac:function(){return this.hovered?0:this.rating-Math.floor(this.rating)}},methods:{set:function(t){this.hovered=!1,this.$emit("update:rating",t)},starType:function(t){return t<=this.int?"full":t==this.int+1?this.frac>=.75?"full":.75>this.frac&&this.frac>=.25?"half":"empty":"empty"},ratingStyle:function(t){var r={};return"empty"!=this.starType(t)&&(this.hovered?r.color="var(--dark-gray)":r.color="var(--".concat(this.options.active_color,")")),r},ratingClass:function(t){var r=["rating-button"],e=this.starType(t);return r.push("rating-".concat(e)),this.hovered&&r.push("rating-hover"),r}}};exports.default=t; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["rating-stars",{"rating-readonly":e.readonly},{"rating-small":e.small}]},e._l(e.options.max_stars,function(n){return t("button",{key:"star_"+n,class:e.ratingClass(n),style:e.ratingStyle(n),on:{mouseenter:function(t){!e.readonly&&(e.hovered=n)},mouseleave:function(n){!e.readonly&&(e.hovered=null)},click:function(t){!e.readonly&&e.set(n)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-2ac7dd",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["rating-stars",{"rating-readonly":e.readonly},{"rating-small":e.small}]},e._l(e.options.max_stars,function(n){return t("button",{key:"star_"+n,class:e.ratingClass(n),style:e.ratingStyle(n),on:{mouseenter:function(t){!e.readonly&&(e.hovered=n)},mouseleave:function(n){!e.readonly&&(e.hovered=null)},click:function(t){!e.readonly&&e.set(n)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-d84256",functional:void 0});})(); },{}],"72jU":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var i={name:"interface-rating",mixins:[t.default],components:{Stars:require("./stars.vue").default},computed:{rating:{get:function(){return this.value||0},set:function(t){t>this.options.max_stars&&(t=this.options.max_stars),this.$emit("input",t)}}}};exports.default=i; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"rating"},[n("stars",{attrs:{options:t.options,rating:t.rating,readonly:t.readonly},on:{"update:rating":function(a){t.rating=a}}}),t._v(" "),"decimal"==t.type?n("div",{staticClass:"rating-value"},[n("v-input",{staticClass:"rating-input",attrs:{type:"text",maxlength:t.length,disabled:t.readonly},model:{value:t.rating,callback:function(a){t.rating=a},expression:"rating"}},[n("span",[t._v("out of "+t._s(t.options.max_stars)+" stars")])])],1):t._e()],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-1df0e9",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"rating"},[n("stars",{attrs:{options:t.options,rating:t.rating,readonly:t.readonly},on:{"update:rating":function(a){t.rating=a}}}),t._v(" "),"decimal"==t.type?n("div",{staticClass:"rating-value"},[n("v-input",{staticClass:"rating-input",attrs:{type:"text",maxlength:t.length,disabled:t.readonly},model:{value:t.rating,callback:function(a){t.rating=a},expression:"rating"}},[n("span",[t._v("out of "+t._s(t.options.max_stars)+" stars")])])],1):t._e()],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-ca214d",functional:void 0});})(); },{"../../../mixins/interface":"QdEO","./stars.vue":"ySEJ"}]},{},["72jU"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/rating/stars.css b/public/extensions/core/interfaces/rating/stars.css index a0ea7713b0..a4b4ad7082 100644 --- a/public/extensions/core/interfaces/rating/stars.css +++ b/public/extensions/core/interfaces/rating/stars.css @@ -1,25 +1,25 @@ -.rating-stars[data-v-2ac7dd]{display:flex +.rating-stars[data-v-d84256]{display:flex } -.rating-readonly .rating-button[data-v-2ac7dd]{cursor:auto +.rating-readonly .rating-button[data-v-d84256]{cursor:auto } -.rating-small .rating-button[data-v-2ac7dd]{width:18px;height:20px +.rating-small .rating-button[data-v-d84256]{width:18px;height:20px } -.rating-small .rating-button[data-v-2ac7dd]:after{font-size:18px +.rating-small .rating-button[data-v-d84256]:after{font-size:18px } -.rating-button[data-v-2ac7dd]{width:36px;height:40px;display:flex;justify-content:center;align-items:center +.rating-button[data-v-d84256]{width:36px;height:40px;display:flex;justify-content:center;align-items:center } -.rating-button[data-v-2ac7dd]:after{font-family:Material Icons;font-size:36px;line-height:1 +.rating-button[data-v-d84256]:after{font-family:Material Icons;font-size:36px;line-height:1 } -.rating-empty[data-v-2ac7dd]{color:var(--lighter-gray) +.rating-empty[data-v-d84256]{color:var(--lighter-gray) } -.rating-empty[data-v-2ac7dd]:after{content:"star_border" +.rating-empty[data-v-d84256]:after{content:"star_border" } -.rating-half[data-v-2ac7dd]{color:var(--darker-gray) +.rating-half[data-v-d84256]{color:var(--darker-gray) } -.rating-half[data-v-2ac7dd]:after{content:"star_half" +.rating-half[data-v-d84256]:after{content:"star_half" } -.rating-full[data-v-2ac7dd]{color:var(--darker-gray) +.rating-full[data-v-d84256]{color:var(--darker-gray) } -.rating-full[data-v-2ac7dd]:after{content:"star" +.rating-full[data-v-d84256]:after{content:"star" } \ No newline at end of file diff --git a/public/extensions/core/interfaces/rating/stars.js b/public/extensions/core/interfaces/rating/stars.js index 2aaad03b81..31cdcb7d4e 100644 --- a/public/extensions/core/interfaces/rating/stars.js +++ b/public/extensions/core/interfaces/rating/stars.js @@ -1,4 +1,4 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f=.75?"full":.75>this.frac&&this.frac>=.25?"half":"empty":"empty"},ratingStyle:function(t){var r={};return"empty"!=this.starType(t)&&(this.hovered?r.color="var(--dark-gray)":r.color="var(--".concat(this.options.active_color,")")),r},ratingClass:function(t){var r=["rating-button"],e=this.starType(t);return r.push("rating-".concat(e)),this.hovered&&r.push("rating-hover"),r}}};exports.default=t; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["rating-stars",{"rating-readonly":e.readonly},{"rating-small":e.small}]},e._l(e.options.max_stars,function(n){return t("button",{key:"star_"+n,class:e.ratingClass(n),style:e.ratingStyle(n),on:{mouseenter:function(t){!e.readonly&&(e.hovered=n)},mouseleave:function(n){!e.readonly&&(e.hovered=null)},click:function(t){!e.readonly&&e.set(n)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-2ac7dd",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{class:["rating-stars",{"rating-readonly":e.readonly},{"rating-small":e.small}]},e._l(e.options.max_stars,function(n){return t("button",{key:"star_"+n,class:e.ratingClass(n),style:e.ratingStyle(n),on:{mouseenter:function(t){!e.readonly&&(e.hovered=n)},mouseleave:function(n){!e.readonly&&(e.hovered=null)},click:function(t){!e.readonly&&e.set(n)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-d84256",functional:void 0});})(); },{}]},{},["ySEJ"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/slider/input.css b/public/extensions/core/interfaces/slider/input.css index cd18d406a5..2da9959dcd 100644 --- a/public/extensions/core/interfaces/slider/input.css +++ b/public/extensions/core/interfaces/slider/input.css @@ -1,3 +1,3 @@ -.slider[data-v-9fd444]{max-width:var(--width-medium) +.slider[data-v-c29ab6]{max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/slider/input.js b/public/extensions/core/interfaces/slider/input.js index f9ae6c2a68..4242b67846 100644 --- a/public/extensions/core/interfaces/slider/input.js +++ b/public/extensions/core/interfaces/slider/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"Pxx+":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var i={name:"interface-slider",mixins:[e.default],computed:{safeValue:function(){return this.value?this.value:this.options.minimum}}};exports.default=i; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-slider",{staticClass:"slider",attrs:{disabled:t.readonly,max:t.options.maximum,min:t.options.minimum,step:t.options.step,unit:t.options.unit,value:t.safeValue},on:{input:function(e){t.$emit("input",e)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-9fd444",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-slider",{staticClass:"slider",attrs:{disabled:t.readonly,max:t.options.maximum,min:t.options.minimum,step:t.options.step,unit:t.options.unit,value:t.safeValue},on:{input:function(e){t.$emit("input",e)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-c29ab6",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["Pxx+"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/slug/input.css b/public/extensions/core/interfaces/slug/input.css index 347e626b77..8da67915f1 100644 --- a/public/extensions/core/interfaces/slug/input.css +++ b/public/extensions/core/interfaces/slug/input.css @@ -1,3 +1,3 @@ -.slug[data-v-01f9b3]{max-width:var(--width-medium) +.slug[data-v-cea8b1]{max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/slug/input.js b/public/extensions/core/interfaces/slug/input.js index 95fe5f073d..e37e934f72 100644 --- a/public/extensions/core/interfaces/slug/input.js +++ b/public/extensions/core/interfaces/slug/input.js @@ -1,9 +1,9 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","џ":"dz","Ґ":"G","ґ":"g","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}');function o(o,n){if("string"!=typeof o)throw new Error("slugify: string argument expected");n="string"==typeof n?{replacement:n}:n||{};var r=o.split("").reduce(function(o,r){return o+(e[r]||r).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")},"").trim().replace(/[-\s]+/g,n.replacement||"-");return n.lower?r.toLowerCase():r}return o.extend=function(o){for(var n in o)e[n]=o[n]},o}); +var e;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(n,r,t){"object"===("undefined"==typeof exports?"undefined":o(exports))?(module.exports=t(),module.exports.default=t()):"function"==typeof e&&e.amd?e(t):r.slugify=t()}(0,this,function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","џ":"dz","Ґ":"G","ґ":"g","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₹":"indian rupee","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}');function o(o,n){if("string"!=typeof o)throw new Error("slugify: string argument expected");n="string"==typeof n?{replacement:n}:n||{};var r=o.split("").reduce(function(o,r){return o+(e[r]||r).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]/g,"")},"").trim().replace(/[-\s]+/g,n.replacement||"-");return n.lower?r.toLowerCase():r}return o.extend=function(o){for(var n in o)e[n]=o[n]},o}); },{}],"QdEO":[function(require,module,exports) { module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"lsvV":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("slugify")),r=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var i={mixins:[r.default],computed:{mirror:function(){var e=this.options.mirroredField;return this.values[e]}},watch:{mirror:function(){this.updateValue(this.mirror)}},methods:{updateValue:function(r){this.$emit("input",(0,e.default)(r,{lower:this.options.forceLowercase,remove:/[$*_+~.()'"!:@]/g}))}}};exports.default=i; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("v-input",{staticClass:"slug",attrs:{type:"text",value:this.value,readonly:this.readonly,placeholder:this.options.placeholder,maxlength:this.length,id:this.name},on:{input:this.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-01f9b3",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("v-input",{staticClass:"slug",attrs:{type:"text",value:this.value,readonly:this.readonly,placeholder:this.options.placeholder,maxlength:this.length,id:this.name},on:{input:this.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-cea8b1",functional:void 0});})(); },{"slugify":"vqrC","../../../mixins/interface":"QdEO"}]},{},["lsvV"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/sort/input.css b/public/extensions/core/interfaces/sort/input.css index b5c0b551d7..a822d044fa 100644 --- a/public/extensions/core/interfaces/sort/input.css +++ b/public/extensions/core/interfaces/sort/input.css @@ -1,3 +1,3 @@ -.v-input[data-v-2cfd69]{width:100%;max-width:var(--width-small) +.v-input[data-v-b84de5]{width:100%;max-width:var(--width-small) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/sort/input.js b/public/extensions/core/interfaces/sort/input.js index 9d4b6be4d1..8fc5091122 100644 --- a/public/extensions/core/interfaces/sort/input.js +++ b/public/extensions/core/interfaces/sort/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"iEVx":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var u={mixins:[e.default],methods:{updateValue:function(e){this.$emit("input",Number(e))}}};exports.default=u; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("v-input",{attrs:{type:"number",min:"0","icon-left":"swap_vert",value:this.value,readonly:this.readonly,maxlength:+this.length,id:this.name},on:{input:this.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-2cfd69",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this.$createElement;return(this._self._c||e)("v-input",{attrs:{type:"number",min:"0","icon-left":"swap_vert",value:this.value,readonly:this.readonly,maxlength:+this.length,id:this.name},on:{input:this.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-b84de5",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["iEVx"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/status/display.css b/public/extensions/core/interfaces/status/display.css index ec32165dce..758897793d 100644 --- a/public/extensions/core/interfaces/status/display.css +++ b/public/extensions/core/interfaces/status/display.css @@ -1,5 +1,5 @@ -.badge[data-v-fbdf17]{border-radius:var(--border-radius);padding:5px 10px;display:block;cursor:default;width:max-content;max-width:120px +.badge[data-v-9f9226]{border-radius:var(--border-radius);padding:5px 10px;display:block;cursor:default;width:max-content;max-width:120px } -.simple[data-v-fbdf17]{border-radius:50%;width:10px;height:10px;padding:0 +.simple[data-v-9f9226]{border-radius:50%;width:10px;height:10px;padding:0 } \ No newline at end of file diff --git a/public/extensions/core/interfaces/status/display.js b/public/extensions/core/interfaces/status/display.js index 76d9a3c29a..0aa88af0ae 100644 --- a/public/extensions/core/interfaces/status/display.js +++ b/public/extensions/core/interfaces/status/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"guSa":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var r={mixins:[t.default],computed:{currentStatus:function(){return this.options.status_mapping[this.value]},style:function(){return{backgroundColor:"var(--".concat(this.currentStatus.background_color,")"),color:"var(--".concat(this.currentStatus.text_color,")")}}}};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.currentStatus&&e.currentStatus.browse_badge?s("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!e.options.simpleBadge&&e.currentStatus.name,expression:"options.simpleBadge ? currentStatus.name : false"}],class:["badge","no-wrap",{simple:e.options.simpleBadge}],style:e.style},[e._v(" "+e._s(e.options.simpleBadge?null:e.$t(e.currentStatus.name))+" ")]):e._e()},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-fbdf17",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.currentStatus&&e.currentStatus.browse_badge?s("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!e.options.simpleBadge&&e.currentStatus.name,expression:"options.simpleBadge ? currentStatus.name : false"}],class:["badge","no-wrap",{simple:e.options.simpleBadge}],style:e.style},[e._v(" "+e._s(e.options.simpleBadge?null:e.$t(e.currentStatus.name))+" ")]):e._e()},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-9f9226",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["guSa"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/status/input.css b/public/extensions/core/interfaces/status/input.css index 56d47e4879..a681b8f1a7 100644 --- a/public/extensions/core/interfaces/status/input.css +++ b/public/extensions/core/interfaces/status/input.css @@ -1,5 +1,5 @@ -.interface-status[data-v-1e6483]{max-width:var(--width-x-large) +.interface-status[data-v-fdeb7b]{max-width:var(--width-x-large) } -.interface-status .v-radio[data-v-1e6483]{display:inline-block;margin-right:40px;margin-bottom:20px +.interface-status .v-radio[data-v-fdeb7b]{display:inline-block;margin-right:40px;margin-bottom:20px } \ No newline at end of file diff --git a/public/extensions/core/interfaces/status/input.js b/public/extensions/core/interfaces/status/input.js index 1c97a0346b..fe89797992 100644 --- a/public/extensions/core/interfaces/status/input.js +++ b/public/extensions/core/interfaces/status/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"uAmd":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=s(require("../../../mixins/interface"));function s(t){return t&&t.__esModule?t:{default:t}}var i={name:"interface-status",mixins:[t.default],data:function(){return{startStatus:null}},computed:{statusMapping:function(){return"string"==typeof this.options.status_mapping?this.options.status_mapping?JSON.parse(this.status_mapping):{}:this.options.status_mapping||{}},optionValues:function(){var t=Object.keys(this.statusMapping),s=this.$lodash.differenceWith(t,this.blacklist,this.$lodash.isEqual);return this.$lodash.pick(this.statusMapping,s)},blacklist:function(){return"string"==typeof this.permissions.status_blacklist?this.permissions.status_blacklist.split(","):this.permissions.status_blacklist},permissions:function(){return this.newItem?this.$store.state.permissions[this.collection].$create:this.$store.state.permissions[this.collection].statuses[this.startStatus]},collection:function(){return Object.values(this.fields)[0].collection}},created:function(){this.startStatus=this.value}};exports.default=i; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"interface-status"},e._l(e.optionValues,function(t,a){return n("v-radio",{key:a,attrs:{id:e.fields[e.name].collection+"-"+e.name+"-"+a,name:e.name,value:a,disabled:e.readonly,"model-value":String(e.value),label:e.$t(t.name),checked:a==e.value},on:{change:function(t){e.$emit("input",t)}}})}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-1e6483",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"interface-status"},e._l(e.optionValues,function(t,a){return n("v-radio",{key:a,attrs:{id:e.fields[e.name].collection+"-"+e.name+"-"+a,name:e.name,value:a,disabled:e.readonly,"model-value":String(e.value),label:e.$t(t.name),checked:a==e.value},on:{change:function(t){e.$emit("input",t)}}})}),1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-fdeb7b",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["uAmd"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/tags/display.css b/public/extensions/core/interfaces/tags/display.css index 491cdc337b..9d5e694ab5 100644 --- a/public/extensions/core/interfaces/tags/display.css +++ b/public/extensions/core/interfaces/tags/display.css @@ -1,5 +1,5 @@ -.buttons[data-v-a990aa]{display:flex;flex-wrap:wrap;padding:5px 0 +.buttons[data-v-e397e0]{display:flex;flex-wrap:wrap;padding:5px 0 } -.buttons span[data-v-a990aa]{margin:2px;padding:2px 4px 3px;background-color:var(--gray);color:var(--white);border-radius:var(--border-radius) +.buttons span[data-v-e397e0]{margin:2px;padding:2px 4px 3px;background-color:var(--gray);color:var(--white);border-radius:var(--border-radius) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/tags/display.js b/public/extensions/core/interfaces/tags/display.js index e6d1f4402a..a821f9e6ee 100644 --- a/public/extensions/core/interfaces/tags/display.js +++ b/public/extensions/core/interfaces/tags/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"8jo0":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var r={mixins:[t.default],computed:{displayValue:function(){var t=this;if(!this.value)return"";var e="array"===this.type?this.value:this.value.split(",");return this.options.wrap&&(e.pop(),e.shift()),this.options.format&&(e=e.map(function(e){return t.$helpers.formatTitle(e)})),e}}};exports.default=r; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"buttons no-wrap"},t._l(t.displayValue,function(e,a){return n("span",{key:a},[t._v(t._s(e))])}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-a990aa",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"buttons no-wrap"},e._l(e.displayValue,function(t,s){return n("span",{key:s},[e._v(e._s(t))])}))},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-e397e0",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["8jo0"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/tags/input.css b/public/extensions/core/interfaces/tags/input.css index 6227aa9713..7a95dae551 100644 --- a/public/extensions/core/interfaces/tags/input.css +++ b/public/extensions/core/interfaces/tags/input.css @@ -1,9 +1,9 @@ -.interface-tags[data-v-3d34f1]{max-width:var(--width-medium) +.interface-tags[data-v-192827]{max-width:var(--width-medium) } -.buttons[data-v-3d34f1]{display:flex;flex-wrap:wrap;padding:5px 0 +.buttons[data-v-192827]{display:flex;flex-wrap:wrap;padding:5px 0 } -.buttons button[data-v-3d34f1]{transition:var(--fast) var(--transition);margin:2px;padding:2px 4px 3px;background-color:var(--gray);color:var(--white);border-radius:var(--border-radius) +.buttons button[data-v-192827]{transition:var(--fast) var(--transition);margin:2px;padding:2px 4px 3px;background-color:var(--gray);color:var(--white);border-radius:var(--border-radius) } -.buttons button[data-v-3d34f1]:hover,.user-is-tabbing .buttons button[data-v-3d34f1]:focus{background-color:var(--danger) +.buttons button[data-v-192827]:hover,.user-is-tabbing .buttons button[data-v-192827]:focus{background-color:var(--danger) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/tags/input.js b/public/extensions/core/interfaces/tags/input.js index c990346ad5..6a7cc98b21 100644 --- a/public/extensions/core/interfaces/tags/input.js +++ b/public/extensions/core/interfaces/tags/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"OId8":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}function r(t){return n(t)||a(t)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function a(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function n(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e0&&e.push(t),this.options.alphabetize&&e.sort(),e=r(new Set(e)),this.emitValue(e)},removeTag:function(t){var e=this.valueArray.splice(0);e.splice(t,1),this.emitValue(e)},emitValue:function(t){var e=t.join(",");e&&this.options.wrap&&(e=",".concat(e,",")),"array"===this.type?this.$emit("input",e.split(",")):this.$emit("input",e)}}};exports.default=o; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interface-tags"},[n("v-input",{staticClass:"input",attrs:{type:"text",placeholder:t.$t("interfaces-tags-placeholder_text"),"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight,"icon-right-color":null},on:{keydown:t.onInput}}),t._v(" "),n("div",{staticClass:"buttons"},t._l(t.valueArray,function(e,o){return n("button",{key:o,on:{click:function(e){e.preventDefault(),t.removeTag(o)}}},[t._v(" "+t._s(e)+" ")])}))],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-3d34f1",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"interface-tags"},[n("v-input",{staticClass:"input",attrs:{type:"text",placeholder:t.$t("interfaces-tags-placeholder_text"),"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight,"icon-right-color":null},on:{keydown:t.onInput}}),t._v(" "),n("div",{staticClass:"buttons"},t._l(t.valueArray,function(e,o){return n("button",{key:o,on:{click:function(e){e.preventDefault(),t.removeTag(o)}}},[t._v(" "+t._s(e)+" ")])}))],1)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-192827",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["OId8"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/text-input/input.css b/public/extensions/core/interfaces/text-input/input.css index 1e2d8bce41..5501cef21c 100644 --- a/public/extensions/core/interfaces/text-input/input.css +++ b/public/extensions/core/interfaces/text-input/input.css @@ -1,3 +1,3 @@ -.v-input[data-v-1b1f7a]{width:100%;max-width:var(--width-medium) +.v-input[data-v-79fa63]{width:100%;max-width:var(--width-medium) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/text-input/input.js b/public/extensions/core/interfaces/text-input/input.js index e811cbf555..29d9b0e3a9 100644 --- a/public/extensions/core/interfaces/text-input/input.js +++ b/public/extensions/core/interfaces/text-input/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"wJG6":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var i={mixins:[e.default],methods:{updateValue:function(e){if(e){var t=e;this.options.trim&&(!this.value||t.length>this.value.length)&&(t=t.trim()),this.$emit("input",t)}}}};exports.default=i; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-input",{attrs:{type:"text","icon-right-color":"",value:t.value||"",readonly:t.readonly,placeholder:t.options.placeholder,"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight,maxlength:t.length?+t.length:null,id:t.name,charactercount:t.options.showCharacterCount},on:{input:t.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-1b1f7a",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-input",{attrs:{type:"text","icon-right-color":"",value:t.value||"",readonly:t.readonly,placeholder:t.options.placeholder,"icon-left":t.options.iconLeft,"icon-right":t.options.iconRight,maxlength:t.length?+t.length:null,id:t.name,charactercount:t.options.showCharacterCount},on:{input:t.updateValue}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-79fa63",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["wJG6"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/textarea/input.css b/public/extensions/core/interfaces/textarea/input.css index 979d083183..d9f31a9ec0 100644 --- a/public/extensions/core/interfaces/textarea/input.css +++ b/public/extensions/core/interfaces/textarea/input.css @@ -1,3 +1,3 @@ -.textarea[data-v-75fe19]{width:100%;max-width:var(--width-x-large) +.textarea[data-v-e19f3b]{width:100%;max-width:var(--width-x-large) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/textarea/input.js b/public/extensions/core/interfaces/textarea/input.js index c625003144..0de1fe0c39 100644 --- a/public/extensions/core/interfaces/textarea/input.js +++ b/public/extensions/core/interfaces/textarea/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"LmW6":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-textarea",{staticClass:"textarea",attrs:{readonly:e.readonly,id:e.name,value:e.value,placeholder:e.options.placeholder,rows:+e.options.rows},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-75fe19",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("v-textarea",{staticClass:"textarea",attrs:{readonly:e.readonly,id:e.name,value:e.value,placeholder:e.options.placeholder,rows:+e.options.rows},on:{input:function(t){e.$emit("input",t)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-e19f3b",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["LmW6"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/time/input.css b/public/extensions/core/interfaces/time/input.css index 3c7e5ca212..48a7754b39 100644 --- a/public/extensions/core/interfaces/time/input.css +++ b/public/extensions/core/interfaces/time/input.css @@ -1,3 +1,3 @@ -.input[data-v-e68689]{max-width:var(--width-small) +.input[data-v-fcf8d0]{max-width:var(--width-small) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/time/input.js b/public/extensions/core/interfaces/time/input.js index 9f90ab3349..ed2192479c 100644 --- a/public/extensions/core/interfaces/time/input.js +++ b/public/extensions/core/interfaces/time/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"Kn/W":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var r={mixins:[e.default]};exports.default=r; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-input",{staticClass:"input",attrs:{type:"time",readonly:t.readonly,value:t.value},on:{input:function(e){t.$emit("input",e)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-e68689",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("v-input",{staticClass:"input",attrs:{type:"time",readonly:t.readonly,value:t.value},on:{input:function(e){t.$emit("input",e)}}})},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-fcf8d0",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["Kn/W"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle-icon/display.css b/public/extensions/core/interfaces/toggle-icon/display.css index 9dd3a041c1..bcfb0cb28b 100644 --- a/public/extensions/core/interfaces/toggle-icon/display.css +++ b/public/extensions/core/interfaces/toggle-icon/display.css @@ -1,3 +1,3 @@ -div>span[data-v-f5177a]{text-transform:uppercase;line-height:1.18;font-weight:700;font-size:.85em +div>span[data-v-7ee30a]{text-transform:uppercase;line-height:1.18;font-weight:700;font-size:.85em } \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle-icon/display.js b/public/extensions/core/interfaces/toggle-icon/display.js index bb219e9ba2..345956b42d 100644 --- a/public/extensions/core/interfaces/toggle-icon/display.js +++ b/public/extensions/core/interfaces/toggle-icon/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"m39g":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var i={name:"readonly-toggle-icon",mixins:[t.default],computed:{icon:function(){return this.value?this.options.iconActive:this.options.iconInactive},colorChange:function(){return this.value?this.options.colorActive:this.options.colorInactive},textChange:function(){return this.value?this.options.textActive:this.options.textInactive}}};exports.default=i; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",[t("i",{staticClass:"material-icons readonly-toggle-icon",style:{color:"var(--"+e.colorChange+")"}},[e._v(e._s(e.icon))]),e._v(" "),t("span",{style:{color:"var(--"+e.colorChange+")"}},[e._v(e._s(e.textChange))])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-f5177a",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",[t("i",{staticClass:"material-icons readonly-toggle-icon",style:{color:"var(--"+e.colorChange+")"}},[e._v(e._s(e.icon))]),e._v(" "),t("span",{style:{color:"var(--"+e.colorChange+")"}},[e._v(e._s(e.textChange))])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-7ee30a",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["m39g"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle-icon/input.css b/public/extensions/core/interfaces/toggle-icon/input.css index 9b7860e4e9..b8f6fcafc6 100644 --- a/public/extensions/core/interfaces/toggle-icon/input.css +++ b/public/extensions/core/interfaces/toggle-icon/input.css @@ -1,9 +1,9 @@ -.interface-toggle-icon[data-v-7794bf]{user-select:none +.interface-toggle-icon[data-v-8270d9]{user-select:none } -input[data-v-7794bf]{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:polygon(0 0,0 0,0 0,0 0) +input[data-v-8270d9]{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:polygon(0 0,0 0,0 0,0 0) } -input[disabled]+label[data-v-7794bf]{opacity:.6 +input[disabled]+label[data-v-8270d9]{opacity:.6 } -label[data-v-7794bf]{cursor:pointer;display:inline-block +label[data-v-8270d9]{cursor:pointer;display:inline-block } \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle-icon/input.js b/public/extensions/core/interfaces/toggle-icon/input.js index 4c72b1a1d8..405cdb9bdd 100644 --- a/public/extensions/core/interfaces/toggle-icon/input.js +++ b/public/extensions/core/interfaces/toggle-icon/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"+eGZ":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("../../../mixins/interface"));function e(t){return t&&t.__esModule?t:{default:t}}var i={name:"interface-toggle-icon",mixins:[t.default],computed:{icon:function(){return this.value?this.options.iconActive:this.options.iconInactive},colorChange:function(){return this.value?this.options.colorActive:this.options.colorInactive},textChange:function(){return this.value?this.options.textActive:this.options.textInactive}},methods:{updateValue:function(t){this.$emit("input",t)}}};exports.default=i; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"interface-toggle-icon"},[a("input",{attrs:{type:"checkbox",id:"icon-toggle",disabled:e.readonly},on:{change:function(t){e.updateValue(t.target.checked)}}}),e._v(" "),a("label",{style:{color:"var(--"+e.colorChange+")"},attrs:{for:"icon-toggle"}},[a("i",{staticClass:"material-icons"},[e._v(e._s(e.icon))]),e._v(" "),a("span",[e._v(e._s(e.textChange))])])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-7794bf",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"interface-toggle-icon"},[a("input",{attrs:{type:"checkbox",id:"icon-toggle",disabled:e.readonly},on:{change:function(t){e.updateValue(t.target.checked)}}}),e._v(" "),a("label",{style:{color:"var(--"+e.colorChange+")"},attrs:{for:"icon-toggle"}},[a("i",{staticClass:"material-icons"},[e._v(e._s(e.icon))]),e._v(" "),a("span",[e._v(e._s(e.textChange))])])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-8270d9",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["+eGZ"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle/display.css b/public/extensions/core/interfaces/toggle/display.css index 4cae06222a..ad521582aa 100644 --- a/public/extensions/core/interfaces/toggle/display.css +++ b/public/extensions/core/interfaces/toggle/display.css @@ -1,3 +1,3 @@ -.close[data-v-12e56d]{opacity:.3 +.close[data-v-f4d39b]{opacity:.3 } \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle/display.js b/public/extensions/core/interfaces/toggle/display.js index ea985358c1..79b0123eb5 100644 --- a/public/extensions/core/interfaces/toggle/display.js +++ b/public/extensions/core/interfaces/toggle/display.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"sBpp":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var o={mixins:[e.default],computed:{icon:function(){return this.options.showAsCheckbox?this.value?"check_box":"check_box_outline_blank":this.value?"check":"close"}}};exports.default=o; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:["material-icons","no-wrap",this.icon]},[this._v(this._s(this.icon))])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-12e56d",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:["material-icons","no-wrap",this.icon]},[this._v(this._s(this.icon))])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-f4d39b",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["sBpp"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle/input.css b/public/extensions/core/interfaces/toggle/input.css index 2fae9ae80f..00b1f4010d 100644 --- a/public/extensions/core/interfaces/toggle/input.css +++ b/public/extensions/core/interfaces/toggle/input.css @@ -1,45 +1,45 @@ -input[data-v-947d86]{position:absolute;width:100%;height:100%;left:0;top:0;opacity:0;z-index:2;cursor:pointer +input[data-v-2d7e70]{position:absolute;width:100%;height:100%;left:0;top:0;opacity:0;z-index:2;cursor:pointer } -.checkbox[data-v-947d86]{position:relative;display:inline-block +.checkbox[data-v-2d7e70]{position:relative;display:inline-block } -.checkbox .material-icons[data-v-947d86]{margin-top:-2px +.checkbox .material-icons[data-v-2d7e70]{margin-top:-2px } -.checkbox label[data-v-947d86]{transition:all var(--fast) var(--transition);color:var(--gray);padding:.5rem 0 +.checkbox label[data-v-2d7e70]{transition:all var(--fast) var(--transition);color:var(--gray);padding:.5rem 0 } -.checkbox:hover label[data-v-947d86]{color:var(--darker-gray) +.checkbox:hover label[data-v-2d7e70]{color:var(--darker-gray) } -.checkbox input:checked+label[data-v-947d86]{color:var(--accent) +.checkbox input:checked+label[data-v-2d7e70]{color:var(--accent) } -.checkbox input:disabled+label[data-v-947d86]{color:var(--light-gray) +.checkbox input:disabled+label[data-v-2d7e70]{color:var(--light-gray) } -.checkbox input[data-v-947d86]:disabled{cursor:not-allowed +.checkbox input[data-v-2d7e70]:disabled{cursor:not-allowed } -.toggle[data-v-947d86]{position:relative;display:inline-block +.toggle[data-v-2d7e70]{position:relative;display:inline-block } -.toggle:hover label[data-v-947d86]:after{background-color:var(--lighter-gray) +.toggle:hover label[data-v-2d7e70]:after{background-color:var(--lighter-gray) } -.toggle label[data-v-947d86]{padding:.5rem 0 .5rem 2.75rem;position:relative +.toggle label[data-v-2d7e70]{padding:.5rem 0 .5rem 2.75rem;position:relative } -.toggle label span[data-v-947d86]{position:relative;vertical-align:middle +.toggle label span[data-v-2d7e70]{position:relative;vertical-align:middle } -.toggle label[data-v-947d86]:after,.toggle label[data-v-947d86]:before{content:"";position:absolute;margin:0;outline:0;top:50%;transform:translateY(-50%);transition:all .3s var(--transition);cursor:pointer +.toggle label[data-v-2d7e70]:after,.toggle label[data-v-2d7e70]:before{content:"";position:absolute;margin:0;outline:0;top:50%;transform:translateY(-50%);transition:all .3s var(--transition);cursor:pointer } -.toggle label[data-v-947d86]:before{left:.0625rem;width:2.125rem;height:.875rem;border-radius:.5rem;background-color:var(--gray) +.toggle label[data-v-2d7e70]:before{left:.0625rem;width:2.125rem;height:.875rem;border-radius:.5rem;background-color:var(--gray) } -.toggle label[data-v-947d86]:after{left:0;width:1.25rem;height:1.25rem;background-color:var(--lightest-gray);border-radius:50%;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084) +.toggle label[data-v-2d7e70]:after{left:0;width:1.25rem;height:1.25rem;background-color:var(--lightest-gray);border-radius:50%;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084) } -.toggle input:checked+label[data-v-947d86]{color:var(--accent) +.toggle input:checked+label[data-v-2d7e70]{color:var(--accent) } -.toggle input:checked+label[data-v-947d86]:before{background-color:var(--accent);opacity:.4 +.toggle input:checked+label[data-v-2d7e70]:before{background-color:var(--accent);opacity:.4 } -.toggle input:checked+label[data-v-947d86]:after{background-color:var(--accent);transform:translate(80%,-50%) +.toggle input:checked+label[data-v-2d7e70]:after{background-color:var(--accent);transform:translate(80%,-50%) } -.toggle input:disabled+label[data-v-947d86]{color:var(--light-gray) +.toggle input:disabled+label[data-v-2d7e70]{color:var(--light-gray) } -.toggle input:disabled+label[data-v-947d86]:after,.toggle input:disabled+label[data-v-947d86]:before{background-color:var(--light-gray) +.toggle input:disabled+label[data-v-2d7e70]:after,.toggle input:disabled+label[data-v-2d7e70]:before{background-color:var(--light-gray) } -.toggle input:disabled+label[data-v-947d86]:before{opacity:.4 +.toggle input:disabled+label[data-v-2d7e70]:before{opacity:.4 } -.toggle input[data-v-947d86]:disabled{cursor:not-allowed +.toggle input[data-v-2d7e70]:disabled{cursor:not-allowed } \ No newline at end of file diff --git a/public/extensions/core/interfaces/toggle/input.js b/public/extensions/core/interfaces/toggle/input.js index a04df1b3f7..c8298bd80b 100644 --- a/public/extensions/core/interfaces/toggle/input.js +++ b/public/extensions/core/interfaces/toggle/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"indj":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("../../../mixins/interface"));function t(e){return e&&e.__esModule?e:{default:e}}var i={mixins:[e.default],computed:{icon:function(){return this.value?"check_box":"check_box_outline_blank"},checkbox:function(){return this.options.checkbox||!1},label:function(){return this.value?this.options.labelOn:this.options.labelOff}},methods:{updateValue:function(e){this.$emit("input",e)}}};exports.default=i; -(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.checkbox?a("div",{staticClass:"checkbox"},[a("input",{attrs:{type:"checkbox",disabled:e.readonly,id:e.name},on:{change:function(t){e.updateValue(t.target.checked)}}}),e._v(" "),a("label",{attrs:{for:e.name}},[a("i",{staticClass:"material-icons icon"},[e._v(e._s(e.icon))]),e._v(" "+e._s(e.label)+" ")])]):a("div",{staticClass:"toggle"},[a("input",{attrs:{type:"checkbox",disabled:e.readonly,id:e.name},domProps:{checked:e.value},on:{change:function(t){e.updateValue(t.target.checked)}}}),e._v(" "),a("label",{attrs:{for:e.name}},[a("span"),e._v(e._s(e.label)+" ")])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-947d86",functional:void 0});})(); +(function(){var e=exports.default||module.exports;"function"==typeof e&&(e=e.options),Object.assign(e,{render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.checkbox?a("div",{staticClass:"checkbox"},[a("input",{attrs:{type:"checkbox",disabled:e.readonly,id:e.name},on:{change:function(t){e.updateValue(t.target.checked)}}}),e._v(" "),a("label",{attrs:{for:e.name}},[a("i",{staticClass:"material-icons icon"},[e._v(e._s(e.icon))]),e._v(" "+e._s(e.label)+" ")])]):a("div",{staticClass:"toggle"},[a("input",{attrs:{type:"checkbox",disabled:e.readonly,id:e.name},domProps:{checked:e.value},on:{change:function(t){e.updateValue(t.target.checked)}}}),e._v(" "),a("label",{attrs:{for:e.name}},[a("span"),e._v(e._s(e.label)+" ")])])},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-2d7e70",functional:void 0});})(); },{"../../../mixins/interface":"QdEO"}]},{},["indj"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/interfaces/translation/input.css b/public/extensions/core/interfaces/translation/input.css index fc253c113f..2f7c8284c6 100644 --- a/public/extensions/core/interfaces/translation/input.css +++ b/public/extensions/core/interfaces/translation/input.css @@ -1,11 +1,11 @@ -.translation[data-v-e070bd]{width:100%;padding:var(--page-padding);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius) +.translation[data-v-1965df]{width:100%;padding:var(--page-padding);border:var(--input-border-width) solid var(--lighter-gray);border-radius:var(--border-radius) } -.translation.disabled[data-v-e070bd]{position:relative +.translation.disabled[data-v-1965df]{position:relative } -.translation.disabled .form[data-v-e070bd],.translation.disabled .language-select[data-v-e070bd],.translation.disabled hr[data-v-e070bd]{user-select:none;pointer-events:none;opacity:.2 +.translation.disabled .form[data-v-1965df],.translation.disabled .language-select[data-v-1965df],.translation.disabled hr[data-v-1965df]{user-select:none;pointer-events:none;opacity:.2 } -.translation.disabled p[data-v-e070bd]{top:0;left:0;position:absolute;width:100%;height:100%;text-align:center;display:flex;justify-content:center;align-items:center +.translation.disabled p[data-v-1965df]{top:0;left:0;position:absolute;width:100%;height:100%;text-align:center;display:flex;justify-content:center;align-items:center } -hr[data-v-e070bd]{margin:20px 0;border:0;border-bottom:1px dashed var(--lighter-gray) +hr[data-v-1965df]{margin:20px 0;border:0;border-bottom:1px dashed var(--lighter-gray) } \ No newline at end of file diff --git a/public/extensions/core/interfaces/translation/input.js b/public/extensions/core/interfaces/translation/input.js index e1738b94ea..056d9581ac 100644 --- a/public/extensions/core/interfaces/translation/input.js +++ b/public/extensions/core/interfaces/translation/input.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{name:{type:String,required:!0},value:{type:null,default:null},type:{type:String,required:!0},length:{type:[String,Number],default:null},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},newItem:{type:Boolean,default:!1},relation:{type:Object,default:null},fields:{type:Object,default:null},values:{type:Object,default:null}}}; },{}],"jLuR":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=n(require("../../../mixins/interface")),e=Object.assign||function(t){for(var e=1;e0},select:function(t){var e;e=this.selection.includes(t)?this.selection.filter(function(e){return e!==t}):n(this.selection).concat([t]),this.$emit("select",e)}}};exports.default=s; -(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"layout-cards",on:{scroll:t.onScroll}},[t._l(t.items,function(e){return o("v-card",{key:e.id,attrs:{to:e[t.link],title:t.title(e),subtitle:t.subtitle(e),icon:t.emptySrc(e)?t.viewOptions.icon||"photo":null,opacity:t.emptySrc(e)?"half":null,src:t.src(e),body:t.content(e),selected:t.selection.includes(e.id),"selection-mode":t.selection.length>0},on:{select:function(o){t.select(e.id)}}})}),t._v(" "),t.lazyLoading?o("v-card",{attrs:{color:"dark-gray",icon:"hourglass_empty",opacity:"half",title:t.$t("loading_more")}}):t._e()],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-590416",functional:void 0});})(); +(function(){var t=exports.default||module.exports;"function"==typeof t&&(t=t.options),Object.assign(t,{render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"layout-cards",on:{scroll:t.onScroll}},[t._l(t.items,function(e){return o("v-card",{key:e.id,attrs:{to:e[t.link],title:t.title(e),subtitle:t.subtitle(e),icon:t.emptySrc(e)?t.viewOptions.icon||"photo":null,opacity:t.emptySrc(e)?"half":null,src:t.src(e),body:t.content(e),selected:t.selection.includes(e.id),"selection-mode":t.selection.length>0},on:{select:function(o){t.select(e.id)}}})}),t._v(" "),t.lazyLoading?o("v-card",{attrs:{color:"dark-gray",icon:"hourglass_empty",opacity:"half",title:t.$t("loading_more")}}):t._e()],2)},staticRenderFns:[],_compiled:!0,_scopeId:"data-v-37ff78",functional:void 0});})(); },{"../../../mixins/layout":"vpUX"}]},{},["nCD6"], "__DirectusExtension__") \ No newline at end of file diff --git a/public/extensions/core/layouts/cards/options.css b/public/extensions/core/layouts/cards/options.css index 7cc566525f..b95492a919 100644 --- a/public/extensions/core/layouts/cards/options.css +++ b/public/extensions/core/layouts/cards/options.css @@ -1,5 +1,5 @@ -label[data-v-474201]{margin-bottom:10px +label[data-v-42a91f]{margin-bottom:10px } -label[data-v-474201]:not(:first-of-type){margin-top:30px +label[data-v-42a91f]:not(:first-of-type){margin-top:30px } \ No newline at end of file diff --git a/public/extensions/core/layouts/cards/options.js b/public/extensions/core/layouts/cards/options.js index 438aa205f8..652b789a12 100644 --- a/public/extensions/core/layouts/cards/options.js +++ b/public/extensions/core/layouts/cards/options.js @@ -2,5 +2,5 @@ parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRe module.exports={props:{primaryKeyField:{type:String,required:!0},fields:{type:Object,required:!0},items:{type:Array,default:function(){return[]}},viewOptions:{type:Object,default:function(){return{}}},viewQuery:{type:Object,default:function(){return{}}},loading:{type:Boolean,default:!1},lazyLoading:{type:Boolean,default:!1},selection:{type:Array,default:function(){return[]}},link:{type:String,default:null},sortField:{type:String,default:null}}}; },{}],"4ZlF":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("../../../mixins/layout")),e=Object.assign||function(t){for(var e=1;e [ - // Send an alert when a post is created - 'item.create.posts' => function (array $data) { + // Post a web callback when an article is created + 'item.create.articles' => function (array $data) { $client = new \GuzzleHttp\Client([ - 'base_uri' => 'http://example.com' + 'base_uri' => 'https://example.com' ]); $data = [ diff --git a/public/thumbnail/index.php b/public/thumbnail/index.php index 111797d3a9..43d3ff2c86 100644 --- a/public/thumbnail/index.php +++ b/public/thumbnail/index.php @@ -31,7 +31,7 @@ $app->getContainer()->get('filesystem'), $app->getContainer()->get('filesystem_thumb'), $settings, - \Directus\get_virtual_path() + urldecode(\Directus\get_virtual_path()) ); $image = $thumbnailer->get(); diff --git a/src/core/Directus/Application/Application.php b/src/core/Directus/Application/Application.php index b692a2022a..fbc34b0218 100644 --- a/src/core/Directus/Application/Application.php +++ b/src/core/Directus/Application/Application.php @@ -13,7 +13,7 @@ class Application extends App * * @var string */ - const DIRECTUS_VERSION = '2.0.10'; + const DIRECTUS_VERSION = '2.0.11'; /** * NOT USED diff --git a/src/core/Directus/Database/Schema/SchemaManager.php b/src/core/Directus/Database/Schema/SchemaManager.php index 0ee2d031c7..6e49dc0f80 100644 --- a/src/core/Directus/Database/Schema/SchemaManager.php +++ b/src/core/Directus/Database/Schema/SchemaManager.php @@ -594,34 +594,63 @@ public function addFieldsRelationship($collectionName, array $fields) { $fieldsRelation = $this->getRelationshipsData($collectionName); - foreach ($fields as $field) { - foreach ($fieldsRelation as $key => $value) { - if (ArrayUtils::get($value, 'field_many') == $field->getName() || ArrayUtils::get($value, 'field_one') == $field->getName()) { - $field->setRelationship(ArrayUtils::pull($fieldsRelation, $key)); - } + if (count($fieldsRelation) > 0) { + $fieldsByName = []; + + foreach ($fields as $field) { + $fieldsByName[$field->getName()] = $field; } - if (DataTypes::isFilesType($field->getType()) && !$field->getRelationship()) { - // Set all FILE data type related to directus files (M2O) - $field->setRelationship([ - 'collection_many' => $field->getCollectionName(), - 'field_many' => $field->getName(), - 'collection_one' => static::COLLECTION_FILES, - 'field_one' => 'id' - ]); - } else if (DataTypes::isUsersType($field->getType()) && !$field->getRelationship()) { - $field->setRelationship([ - 'collection_many' => $field->getCollectionName(), - 'field_many' => $field->getName(), - 'collection_one' => static::COLLECTION_USERS, - 'field_one' => 'id' - ]); + foreach ($fieldsRelation as $relation) { + $fieldManyName = ArrayUtils::get($relation, 'field_many'); + $fieldOneName = ArrayUtils::get($relation, 'field_one'); + $fieldMany = $fieldManyName ? ArrayUtils::pull($fieldsByName, $fieldManyName) : null; + $fieldOne = $fieldOneName ? ArrayUtils::pull($fieldsByName, $fieldOneName) : null; + + if ($fieldMany) { + $fieldMany->setRelationship($relation); + } + + if ($fieldOne) { + $fieldOne->setRelationship($relation); + } } } + // At set the relationship to user and file type + // "file" and "user" must be related to directus_files and directus_users + foreach ($fields as $field) { + $this->setSystemTypeRelationship($field); + } + return $fields; } + /** + * Sets System Field Type relationship + * + * @param Field $field + */ + protected function setSystemTypeRelationship(Field $field) + { + if (DataTypes::isFilesType($field->getType())) { + // Set all FILE data type related to directus files (M2O) + $field->setRelationship([ + 'collection_many' => $field->getCollectionName(), + 'field_many' => $field->getName(), + 'collection_one' => static::COLLECTION_FILES, + 'field_one' => 'id' + ]); + } else if (DataTypes::isUsersType($field->getType())) { + $field->setRelationship([ + 'collection_many' => $field->getCollectionName(), + 'field_many' => $field->getName(), + 'collection_one' => static::COLLECTION_USERS, + 'field_one' => 'id' + ]); + } + } + /** * @param array $field */ diff --git a/src/core/Directus/Database/Schema/Sources/MySQLSchema.php b/src/core/Directus/Database/Schema/Sources/MySQLSchema.php index cdc1f7e93a..49123e4caf 100644 --- a/src/core/Directus/Database/Schema/Sources/MySQLSchema.php +++ b/src/core/Directus/Database/Schema/Sources/MySQLSchema.php @@ -713,9 +713,12 @@ public function isTypeLengthAllowed($type) public function isMariaDb() { if ($this->isMariaDb === null) { - $variable = $this->adapter->query('SHOW VARIABLES LIKE "version_comment";')->execute()->current(); - - $this->isMariaDb = $variable && strpos(strtolower(ArrayUtils::get($variable, 'Value', '')), 'mariadb') !== false; + $this->isMariaDb = false; + $result = $this->adapter->query('SHOW VARIABLES WHERE Variable_Name LIKE "version" OR Variable_Name LIKE "version_comment";')->execute(); + while ($result->valid() && !$this->isMariaDb) { + $this->isMariaDb = $result->current() && strpos(strtolower(ArrayUtils::get($result->current(), 'Value', '')), 'mariadb') !== false; + $result->next(); + } } return $this->isMariaDb; diff --git a/src/core/Directus/Util/Installation/stubs/config.stub b/src/core/Directus/Util/Installation/stubs/config.stub index 758afe42dc..46b25bf31f 100644 --- a/src/core/Directus/Util/Installation/stubs/config.stub +++ b/src/core/Directus/Util/Installation/stubs/config.stub @@ -140,6 +140,9 @@ return [ // 'client_id' => '', // 'client_secret' => '', // 'hosted_domain' => '*', + // // Uses OpenIDConnect to fetch the email instead of using the Google+ API + // // Disabling the OIDC Mode, requires you to enable the Google+ API otherwise it will fail + // 'use_oidc_mode' => true, // ], // 'twitter' => [ // 'identifier' => '', diff --git a/vendor/autoload.php b/vendor/autoload.php index 122d3e1fd7..28790621a8 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit4f9e964ab5d13530b71a4959685cbe76::getLoader(); +return ComposerAutoloaderInitda3402f41b8474e901bfaf00d50525d0::getLoader(); diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index a289451ae4..00613c1958 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -2009,6 +2009,7 @@ 'Symfony\\Contracts\\Tests\\Service\\ServiceSubscriberTraitTest' => $vendorDir . '/symfony/contracts/Tests/Service/ServiceSubscriberTraitTest.php', 'Symfony\\Contracts\\Tests\\Service\\TestService' => $vendorDir . '/symfony/contracts/Tests/Service/ServiceSubscriberTraitTest.php', 'Symfony\\Contracts\\Tests\\Translation\\TranslatorTest' => $vendorDir . '/symfony/contracts/Tests/Translation/TranslatorTest.php', + 'Symfony\\Contracts\\Translation\\LocaleAwareInterface' => $vendorDir . '/symfony/contracts/Translation/LocaleAwareInterface.php', 'Symfony\\Contracts\\Translation\\TranslatorInterface' => $vendorDir . '/symfony/contracts/Translation/TranslatorInterface.php', 'Symfony\\Contracts\\Translation\\TranslatorTrait' => $vendorDir . '/symfony/contracts/Translation/TranslatorTrait.php', 'Symfony\\Polyfill\\Ctype\\Ctype' => $vendorDir . '/symfony/polyfill-ctype/Ctype.php', diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index ea43d77a78..a6288a6bae 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit4f9e964ab5d13530b71a4959685cbe76 +class ComposerAutoloaderInitda3402f41b8474e901bfaf00d50525d0 { private static $loader; @@ -19,15 +19,15 @@ public static function getLoader() return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit4f9e964ab5d13530b71a4959685cbe76', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitda3402f41b8474e901bfaf00d50525d0', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit4f9e964ab5d13530b71a4959685cbe76', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitda3402f41b8474e901bfaf00d50525d0', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitda3402f41b8474e901bfaf00d50525d0::getInitializer($loader)); } else { $classMap = require __DIR__ . '/autoload_classmap.php'; if ($classMap) { @@ -39,19 +39,19 @@ public static function getLoader() $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76::$files; + $includeFiles = Composer\Autoload\ComposerStaticInitda3402f41b8474e901bfaf00d50525d0::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire4f9e964ab5d13530b71a4959685cbe76($fileIdentifier, $file); + composerRequireda3402f41b8474e901bfaf00d50525d0($fileIdentifier, $file); } return $loader; } } -function composerRequire4f9e964ab5d13530b71a4959685cbe76($fileIdentifier, $file) +function composerRequireda3402f41b8474e901bfaf00d50525d0($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index a01417b9a5..e21006020e 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76 +class ComposerStaticInitda3402f41b8474e901bfaf00d50525d0 { public static $files = array ( '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', @@ -2332,6 +2332,7 @@ class ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76 'Symfony\\Contracts\\Tests\\Service\\ServiceSubscriberTraitTest' => __DIR__ . '/..' . '/symfony/contracts/Tests/Service/ServiceSubscriberTraitTest.php', 'Symfony\\Contracts\\Tests\\Service\\TestService' => __DIR__ . '/..' . '/symfony/contracts/Tests/Service/ServiceSubscriberTraitTest.php', 'Symfony\\Contracts\\Tests\\Translation\\TranslatorTest' => __DIR__ . '/..' . '/symfony/contracts/Tests/Translation/TranslatorTest.php', + 'Symfony\\Contracts\\Translation\\LocaleAwareInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/LocaleAwareInterface.php', 'Symfony\\Contracts\\Translation\\TranslatorInterface' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorInterface.php', 'Symfony\\Contracts\\Translation\\TranslatorTrait' => __DIR__ . '/..' . '/symfony/contracts/Translation/TranslatorTrait.php', 'Symfony\\Polyfill\\Ctype\\Ctype' => __DIR__ . '/..' . '/symfony/polyfill-ctype/Ctype.php', @@ -3007,10 +3008,10 @@ class ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76::$prefixDirsPsr4; - $loader->prefixesPsr0 = ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76::$prefixesPsr0; - $loader->classMap = ComposerStaticInit4f9e964ab5d13530b71a4959685cbe76::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitda3402f41b8474e901bfaf00d50525d0::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitda3402f41b8474e901bfaf00d50525d0::$prefixDirsPsr4; + $loader->prefixesPsr0 = ComposerStaticInitda3402f41b8474e901bfaf00d50525d0::$prefixesPsr0; + $loader->classMap = ComposerStaticInitda3402f41b8474e901bfaf00d50525d0::$classMap; }, null, ClassLoader::class); } diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index ef0ca40fc4..8aab946746 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -481,17 +481,17 @@ }, { "name": "guzzlehttp/psr7", - "version": "1.5.0", - "version_normalized": "1.5.0.0", + "version": "1.5.2", + "version_normalized": "1.5.2.0", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "53662d6688033a5eccde987bdd5a4a98ebe2d952" + "reference": "9f83dded91781a01c63574e387eaa769be769115" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/53662d6688033a5eccde987bdd5a4a98ebe2d952", - "reference": "53662d6688033a5eccde987bdd5a4a98ebe2d952", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/9f83dded91781a01c63574e387eaa769be769115", + "reference": "9f83dded91781a01c63574e387eaa769be769115", "shasum": "" }, "require": { @@ -505,7 +505,7 @@ "require-dev": { "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8" }, - "time": "2018-12-03T05:07:51+00:00", + "time": "2018-12-04T20:46:45+00:00", "type": "library", "extra": { "branch-alias": { @@ -3073,17 +3073,17 @@ }, { "name": "symfony/config", - "version": "v4.2.0", - "version_normalized": "4.2.0.0", + "version": "v4.2.1", + "version_normalized": "4.2.1.0", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "10ba96d42cc9a482bce05c8179f06e24e665c920" + "reference": "005d9a083d03f588677d15391a716b1ac9b887c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/10ba96d42cc9a482bce05c8179f06e24e665c920", - "reference": "10ba96d42cc9a482bce05c8179f06e24e665c920", + "url": "https://api.github.com/repos/symfony/config/zipball/005d9a083d03f588677d15391a716b1ac9b887c0", + "reference": "005d9a083d03f588677d15391a716b1ac9b887c0", "shasum": "" }, "require": { @@ -3103,7 +3103,7 @@ "suggest": { "symfony/yaml": "To use the yaml reference dumper" }, - "time": "2018-11-26T10:55:26+00:00", + "time": "2018-11-30T22:21:14+00:00", "type": "library", "extra": { "branch-alias": { @@ -3138,8 +3138,8 @@ }, { "name": "symfony/console", - "version": "v4.2.0", - "version_normalized": "4.2.0.0", + "version": "v4.2.1", + "version_normalized": "4.2.1.0", "source": { "type": "git", "url": "https://github.com/symfony/console.git", @@ -3209,17 +3209,17 @@ }, { "name": "symfony/contracts", - "version": "v1.0.1", - "version_normalized": "1.0.1.0", + "version": "v1.0.2", + "version_normalized": "1.0.2.0", "source": { "type": "git", "url": "https://github.com/symfony/contracts.git", - "reference": "3edf0ab943d1985a356721952cba36ff31bd6e5f" + "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/contracts/zipball/3edf0ab943d1985a356721952cba36ff31bd6e5f", - "reference": "3edf0ab943d1985a356721952cba36ff31bd6e5f", + "url": "https://api.github.com/repos/symfony/contracts/zipball/1aa7ab2429c3d594dd70689604b5cf7421254cdf", + "reference": "1aa7ab2429c3d594dd70689604b5cf7421254cdf", "shasum": "" }, "require": { @@ -3236,7 +3236,7 @@ "symfony/service-contracts-implementation": "", "symfony/translation-contracts-implementation": "" }, - "time": "2018-11-24T09:35:08+00:00", + "time": "2018-12-05T08:06:11+00:00", "type": "library", "extra": { "branch-alias": { @@ -3279,8 +3279,8 @@ }, { "name": "symfony/filesystem", - "version": "v4.2.0", - "version_normalized": "4.2.0.0", + "version": "v4.2.1", + "version_normalized": "4.2.1.0", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", @@ -3452,22 +3452,22 @@ }, { "name": "symfony/translation", - "version": "v4.2.0", - "version_normalized": "4.2.0.0", + "version": "v4.2.1", + "version_normalized": "4.2.1.0", "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "ff9a878c9b8f8bcd4d9138e2d32f508c942773d9" + "reference": "c0e2191e9bed845946ab3d99767513b56ca7dcd6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/ff9a878c9b8f8bcd4d9138e2d32f508c942773d9", - "reference": "ff9a878c9b8f8bcd4d9138e2d32f508c942773d9", + "url": "https://api.github.com/repos/symfony/translation/zipball/c0e2191e9bed845946ab3d99767513b56ca7dcd6", + "reference": "c0e2191e9bed845946ab3d99767513b56ca7dcd6", "shasum": "" }, "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0", + "symfony/contracts": "^1.0.2", "symfony/polyfill-mbstring": "~1.0" }, "conflict": { @@ -3492,7 +3492,7 @@ "symfony/config": "", "symfony/yaml": "" }, - "time": "2018-11-27T07:20:32+00:00", + "time": "2018-12-06T10:45:32+00:00", "type": "library", "extra": { "branch-alias": { @@ -3527,17 +3527,17 @@ }, { "name": "symfony/validator", - "version": "v3.4.19", - "version_normalized": "3.4.19.0", + "version": "v3.4.20", + "version_normalized": "3.4.20.0", "source": { "type": "git", "url": "https://github.com/symfony/validator.git", - "reference": "05a6285201cbfd7c564d095de5ad76a589ad9adb" + "reference": "39bcf80269aa504c5aa3f18c7c63938ed0b66f00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/validator/zipball/05a6285201cbfd7c564d095de5ad76a589ad9adb", - "reference": "05a6285201cbfd7c564d095de5ad76a589ad9adb", + "url": "https://api.github.com/repos/symfony/validator/zipball/39bcf80269aa504c5aa3f18c7c63938ed0b66f00", + "reference": "39bcf80269aa504c5aa3f18c7c63938ed0b66f00", "shasum": "" }, "require": { @@ -3579,7 +3579,7 @@ "symfony/property-access": "For accessing properties within comparison constraints", "symfony/yaml": "" }, - "time": "2018-11-20T16:01:59+00:00", + "time": "2018-12-01T08:21:59+00:00", "type": "library", "extra": { "branch-alias": { @@ -3614,8 +3614,8 @@ }, { "name": "symfony/yaml", - "version": "v4.2.0", - "version_normalized": "4.2.0.0", + "version": "v4.2.1", + "version_normalized": "4.2.1.0", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", diff --git a/vendor/guzzlehttp/psr7/CHANGELOG.md b/vendor/guzzlehttp/psr7/CHANGELOG.md index 02c902bd14..27b65f0951 100644 --- a/vendor/guzzlehttp/psr7/CHANGELOG.md +++ b/vendor/guzzlehttp/psr7/CHANGELOG.md @@ -10,6 +10,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.5.2] - 2018-12-04 + +### Fixed + +- Check body size when getting the message summary + + +## [1.5.1] - 2018-12-04 + +### Fixed + +- Get the summary of a body only if it is readable + + ## [1.5.0] - 2018-12-03 ### Added @@ -195,7 +209,9 @@ Currently unsupported: -[Unreleased]: https://github.com/guzzle/psr7/compare/1.5.0...HEAD +[Unreleased]: https://github.com/guzzle/psr7/compare/1.5.2...HEAD +[1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2 +[1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1 [1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0 [1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2 [1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1 diff --git a/vendor/guzzlehttp/psr7/src/functions.php b/vendor/guzzlehttp/psr7/src/functions.php index a0cb8ccc79..957bfb42ae 100644 --- a/vendor/guzzlehttp/psr7/src/functions.php +++ b/vendor/guzzlehttp/psr7/src/functions.php @@ -853,11 +853,16 @@ function get_message_body_summary(MessageInterface $message, $truncateAt = 120) { $body = $message->getBody(); - if (!$body->isSeekable()) { + if (!$body->isSeekable() || !$body->isReadable()) { return null; } $size = $body->getSize(); + + if ($size === 0) { + return null; + } + $summary = $body->read($truncateAt); $body->rewind(); diff --git a/vendor/symfony/config/Resource/GlobResource.php b/vendor/symfony/config/Resource/GlobResource.php index 323352058f..bd110d72f5 100644 --- a/vendor/symfony/config/Resource/GlobResource.php +++ b/vendor/symfony/config/Resource/GlobResource.php @@ -96,9 +96,19 @@ public function getIterator() if (!file_exists($this->prefix) || (!$this->recursive && '' === $this->pattern)) { return; } + $prefix = str_replace('\\', '/', $this->prefix); if (0 !== strpos($this->prefix, 'phar://') && false === strpos($this->pattern, '/**/') && (\defined('GLOB_BRACE') || false === strpos($this->pattern, '{'))) { foreach (glob($this->prefix.$this->pattern, \defined('GLOB_BRACE') ? GLOB_BRACE : 0) as $path) { + if ($this->excludedPrefixes) { + $normalizedPath = str_replace('\\', '/', $path); + do { + if (isset($this->excludedPrefixes[$dirPath = $normalizedPath])) { + continue 2; + } + } while ($prefix !== $dirPath && $dirPath !== $normalizedPath = \dirname($dirPath)); + } + if (is_file($path)) { yield $path => new \SplFileInfo($path); } @@ -145,9 +155,19 @@ function (\SplFileInfo $file, $path) { $prefixLen = \strlen($this->prefix); foreach ($finder->followLinks()->sortByName()->in($this->prefix) as $path => $info) { - if (preg_match($regex, substr(str_replace('\\', '/', $path), $prefixLen)) && $info->isFile()) { - yield $path => $info; + $normalizedPath = str_replace('\\', '/', $path); + if (!preg_match($regex, substr($normalizedPath, $prefixLen)) || !$info->isFile()) { + continue; } + if ($this->excludedPrefixes) { + do { + if (isset($this->excludedPrefixes[$dirPath = $normalizedPath])) { + continue 2; + } + } while ($prefix !== $dirPath && $dirPath !== $normalizedPath = \dirname($dirPath)); + } + + yield $path => $info; } } diff --git a/vendor/symfony/config/Tests/Resource/GlobResourceTest.php b/vendor/symfony/config/Tests/Resource/GlobResourceTest.php index ac7ae5bd75..188b5572ec 100644 --- a/vendor/symfony/config/Tests/Resource/GlobResourceTest.php +++ b/vendor/symfony/config/Tests/Resource/GlobResourceTest.php @@ -73,6 +73,20 @@ public function testIteratorSkipsFoldersForGivenExcludedPrefixes() $this->assertArrayNotHasKey($file, $paths); } + public function testIteratorSkipsSubfoldersForGivenExcludedPrefixes() + { + $dir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'; + $resource = new GlobResource($dir, '/*Exclude/*', true, false, array($dir.\DIRECTORY_SEPARATOR.'Exclude' => true)); + + $paths = iterator_to_array($resource); + + $file = $dir.\DIRECTORY_SEPARATOR.'Exclude'.\DIRECTORY_SEPARATOR.'AnExcludedFile.txt'; + $this->assertArrayNotHasKey($file, $paths); + + $file = $dir.\DIRECTORY_SEPARATOR.'Exclude'.\DIRECTORY_SEPARATOR.'ExcludeToo'.\DIRECTORY_SEPARATOR.'AnotheExcludedFile.txt'; + $this->assertArrayNotHasKey($file, $paths); + } + public function testIteratorSkipsFoldersWithForwardSlashForGivenExcludedPrefixes() { $dir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'; diff --git a/vendor/symfony/contracts/Translation/LocaleAwareInterface.php b/vendor/symfony/contracts/Translation/LocaleAwareInterface.php new file mode 100644 index 0000000000..dbd8894fe7 --- /dev/null +++ b/vendor/symfony/contracts/Translation/LocaleAwareInterface.php @@ -0,0 +1,31 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Contracts\Translation; + +interface LocaleAwareInterface +{ + /** + * Sets the current locale. + * + * @param string $locale The locale + * + * @throws \InvalidArgumentException If the locale contains invalid characters + */ + public function setLocale($locale); + + /** + * Returns the current locale. + * + * @return string The locale + */ + public function getLocale(); +} diff --git a/vendor/symfony/contracts/Translation/TranslatorInterface.php b/vendor/symfony/contracts/Translation/TranslatorInterface.php index 2130c1b2cf..2bdc415cbd 100644 --- a/vendor/symfony/contracts/Translation/TranslatorInterface.php +++ b/vendor/symfony/contracts/Translation/TranslatorInterface.php @@ -62,20 +62,4 @@ interface TranslatorInterface * @throws \InvalidArgumentException If the locale contains invalid characters */ public function trans($id, array $parameters = array(), $domain = null, $locale = null); - - /** - * Sets the current locale. - * - * @param string $locale The locale - * - * @throws \InvalidArgumentException If the locale contains invalid characters - */ - public function setLocale($locale); - - /** - * Returns the current locale. - * - * @return string The locale - */ - public function getLocale(); } diff --git a/vendor/symfony/contracts/Translation/TranslatorTrait.php b/vendor/symfony/contracts/Translation/TranslatorTrait.php index e19e37cfe5..4e53fbd42c 100644 --- a/vendor/symfony/contracts/Translation/TranslatorTrait.php +++ b/vendor/symfony/contracts/Translation/TranslatorTrait.php @@ -14,7 +14,7 @@ use Symfony\Component\Translation\Exception\InvalidArgumentException; /** - * A trait to help implement TranslatorInterface. + * A trait to help implement TranslatorInterface and LocaleAwareInterface. * * @author Fabien Potencier */ diff --git a/vendor/symfony/translation/DataCollectorTranslator.php b/vendor/symfony/translation/DataCollectorTranslator.php index 5e547163a3..ca6bedc71b 100644 --- a/vendor/symfony/translation/DataCollectorTranslator.php +++ b/vendor/symfony/translation/DataCollectorTranslator.php @@ -13,6 +13,7 @@ use Symfony\Component\Translation\Exception\InvalidArgumentException; use Symfony\Component\Translation\TranslatorInterface as LegacyTranslatorInterface; +use Symfony\Contracts\Translation\LocaleAwareInterface; use Symfony\Contracts\Translation\TranslatorInterface; /** @@ -39,8 +40,8 @@ public function __construct($translator) if (!$translator instanceof LegacyTranslatorInterface && !$translator instanceof TranslatorInterface) { throw new \TypeError(sprintf('Argument 1 passed to %s() must be an instance of %s, %s given.', __METHOD__, TranslatorInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator))); } - if (!$translator instanceof TranslatorBagInterface) { - throw new InvalidArgumentException(sprintf('The Translator "%s" must implement TranslatorInterface and TranslatorBagInterface.', \get_class($translator))); + if (!$translator instanceof TranslatorBagInterface || !$translator instanceof LocaleAwareInterface) { + throw new InvalidArgumentException(sprintf('The Translator "%s" must implement TranslatorInterface, TranslatorBagInterface and LocaleAwareInterface.', \get_class($translator))); } $this->translator = $translator; diff --git a/vendor/symfony/translation/Formatter/MessageFormatter.php b/vendor/symfony/translation/Formatter/MessageFormatter.php index 11f766c8cd..e36f242c89 100644 --- a/vendor/symfony/translation/Formatter/MessageFormatter.php +++ b/vendor/symfony/translation/Formatter/MessageFormatter.php @@ -66,7 +66,7 @@ public function formatIntl(string $message, string $locale, array $parameters = */ public function choiceFormat($message, $number, $locale, array $parameters = array()) { - @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the format() one instead with a %count% parameter.', __METHOD__), E_USER_DEPRECATED); + @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the format() one instead with a %%count%% parameter.', __METHOD__), E_USER_DEPRECATED); $parameters = array('%count%' => $number) + $parameters; diff --git a/vendor/symfony/translation/LoggingTranslator.php b/vendor/symfony/translation/LoggingTranslator.php index 2746fcfe30..4fe756d7a7 100644 --- a/vendor/symfony/translation/LoggingTranslator.php +++ b/vendor/symfony/translation/LoggingTranslator.php @@ -14,6 +14,7 @@ use Psr\Log\LoggerInterface; use Symfony\Component\Translation\Exception\InvalidArgumentException; use Symfony\Component\Translation\TranslatorInterface as LegacyTranslatorInterface; +use Symfony\Contracts\Translation\LocaleAwareInterface; use Symfony\Contracts\Translation\TranslatorInterface; /** @@ -37,8 +38,8 @@ public function __construct($translator, LoggerInterface $logger) if (!$translator instanceof LegacyTranslatorInterface && !$translator instanceof TranslatorInterface) { throw new \TypeError(sprintf('Argument 1 passed to %s() must be an instance of %s, %s given.', __METHOD__, TranslatorInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator))); } - if (!$translator instanceof TranslatorBagInterface) { - throw new InvalidArgumentException(sprintf('The Translator "%s" must implement TranslatorInterface and TranslatorBagInterface.', \get_class($translator))); + if (!$translator instanceof TranslatorBagInterface || !$translator instanceof LocaleAwareInterface) { + throw new InvalidArgumentException(sprintf('The Translator "%s" must implement TranslatorInterface, TranslatorBagInterface and LocaleAwareInterface.', \get_class($translator))); } $this->translator = $translator; diff --git a/vendor/symfony/translation/TranslatorInterface.php b/vendor/symfony/translation/TranslatorInterface.php index 02cb5027b8..3ecef054b1 100644 --- a/vendor/symfony/translation/TranslatorInterface.php +++ b/vendor/symfony/translation/TranslatorInterface.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Translation; use Symfony\Component\Translation\Exception\InvalidArgumentException; +use Symfony\Contracts\Translation\LocaleAwareInterface; /** * TranslatorInterface. @@ -20,7 +21,7 @@ * * @deprecated since Symfony 4.2, use Symfony\Contracts\Translation\TranslatorInterface instead */ -interface TranslatorInterface +interface TranslatorInterface extends LocaleAwareInterface { /** * Translates the given message. diff --git a/vendor/symfony/translation/composer.json b/vendor/symfony/translation/composer.json index 29ba62ab15..7d5df73025 100644 --- a/vendor/symfony/translation/composer.json +++ b/vendor/symfony/translation/composer.json @@ -17,7 +17,7 @@ ], "require": { "php": "^7.1.3", - "symfony/contracts": "^1.0", + "symfony/contracts": "^1.0.2", "symfony/polyfill-mbstring": "~1.0" }, "require-dev": { diff --git a/vendor/symfony/validator/ConstraintViolation.php b/vendor/symfony/validator/ConstraintViolation.php index 848c776117..ae9ff89eb5 100644 --- a/vendor/symfony/validator/ConstraintViolation.php +++ b/vendor/symfony/validator/ConstraintViolation.php @@ -79,13 +79,13 @@ public function __toString() } $propertyPath = (string) $this->propertyPath; - $code = $this->code; + $code = (string) $this->code; if ('' !== $propertyPath && '[' !== $propertyPath[0] && '' !== $class) { $class .= '.'; } - if (!empty($code)) { + if ('' !== $code) { $code = ' (code '.$code.')'; } diff --git a/vendor/symfony/validator/Context/ExecutionContextInterface.php b/vendor/symfony/validator/Context/ExecutionContextInterface.php index 544c82f6c0..e4f7df1757 100644 --- a/vendor/symfony/validator/Context/ExecutionContextInterface.php +++ b/vendor/symfony/validator/Context/ExecutionContextInterface.php @@ -112,7 +112,7 @@ public function getValidator(); * Returns the currently validated object. * * If the validator is currently validating a class constraint, the - * object of that class is returned. If it is a validating a property or + * object of that class is returned. If it is validating a property or * getter constraint, the object that the property/getter belongs to is * returned. * diff --git a/vendor/symfony/validator/Tests/ConstraintViolationTest.php b/vendor/symfony/validator/Tests/ConstraintViolationTest.php index cef4782e0f..edaa7fa50d 100644 --- a/vendor/symfony/validator/Tests/ConstraintViolationTest.php +++ b/vendor/symfony/validator/Tests/ConstraintViolationTest.php @@ -53,4 +53,59 @@ public function testToStringHandlesArrayRoots() $this->assertSame($expected, (string) $violation); } + + public function testToStringHandlesCodes() + { + $violation = new ConstraintViolation( + '42 cannot be used here', + 'this is the message template', + array(), + array('some_value' => 42), + 'some_value', + null, + null, + 0 + ); + + $expected = <<<'EOF' +Array.some_value: + 42 cannot be used here (code 0) +EOF; + + $this->assertSame($expected, (string) $violation); + } + + public function testToStringOmitsEmptyCodes() + { + $expected = <<<'EOF' +Array.some_value: + 42 cannot be used here +EOF; + + $violation = new ConstraintViolation( + '42 cannot be used here', + 'this is the message template', + array(), + array('some_value' => 42), + 'some_value', + null, + null, + null + ); + + $this->assertSame($expected, (string) $violation); + + $violation = new ConstraintViolation( + '42 cannot be used here', + 'this is the message template', + array(), + array('some_value' => 42), + 'some_value', + null, + null, + '' + ); + + $this->assertSame($expected, (string) $violation); + } }