Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
0097dc14aa Bump fullcalendar from 5.11.5 to 7.1.0
Bumps [fullcalendar](https://github.com/fullcalendar/fullcalendar/tree/HEAD/packages/vanilla) from 5.11.5 to 7.1.0.
- [Release notes](https://github.com/fullcalendar/fullcalendar/releases)
- [Changelog](https://github.com/fullcalendar/fullcalendar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fullcalendar/fullcalendar/commits/v7.1.0/packages/vanilla)

---
updated-dependencies:
- dependency-name: fullcalendar
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-07 19:03:24 +00:00
4 changed files with 130 additions and 33 deletions

View File

@@ -36,7 +36,7 @@
// If there were errors, apply the previous Rig/not-Rig selection
{% if form.errors %}
all('.form-hws').forEach(function (el) { slideDown(el, 0); });
if (document.getElementById('{{form.is_rig.auto_id}}').checked === false) {
if (document.getElementById('{{form.is_rig.auto_id}}').getAttribute('checked') !== 'checked') {
all('.form-is_rig').forEach(function (el) { el.style.display = 'none'; });
}
{% else %}

130
package-lock.json generated
View File

@@ -17,7 +17,7 @@
"clipboard": "^2.0.8",
"cssnano": "^5.0.13",
"easymde": "^2.21.0",
"fullcalendar": "^5.10.1",
"fullcalendar": "^7.1.0",
"gulp-concat": "^2.6.1",
"gulp-flatten": "^0.4.0",
"gulp-if": "^3.0.0",
@@ -50,6 +50,25 @@
"node": ">=6"
}
},
"node_modules/@full-ui/headless-calendar": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@full-ui/headless-calendar/-/headless-calendar-7.1.0.tgz",
"integrity": "sha512-T54tSUik/ia9Jj4xduFHv1p98eVBgLnE33Q6qhpg+WWkqKCLBCbtVyMcTPPIOP5jjTV2MbtjrRvRt1RLSryGHA==",
"license": "MIT",
"peerDependencies": {
"temporal-polyfill": "^1.0.1"
}
},
"node_modules/@fullcalendar/core": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-7.1.0.tgz",
"integrity": "sha512-a+ABP7zQpPWpwPT8EsOdShpeOVrJyx/XYStqERd8ibld/FLi/dzpd95r7w3RIdFqFm9iUv0gdGvBshSlI/dbPw==",
"license": "MIT",
"peerDependencies": {
"@full-ui/headless-calendar": "7.1.0",
"temporal-polyfill": "^1.0.1"
}
},
"node_modules/@gulp-sourcemaps/identity-map": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-2.0.1.tgz",
@@ -2218,9 +2237,18 @@
}
},
"node_modules/fullcalendar": {
"version": "5.11.5",
"resolved": "https://registry.npmjs.org/fullcalendar/-/fullcalendar-5.11.5.tgz",
"integrity": "sha512-eaVD6zOvuFXVpoMKlg2FQAj8e+PcpitBMwlzwRJJr1zOi/dXMYAksx2hLzwtsr93FVUNSSo16xwMTTZz6+prKQ=="
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/fullcalendar/-/fullcalendar-7.1.0.tgz",
"integrity": "sha512-Pvr/fLrwuwfIjRygNKHJdHFJ8QGWjkAf6FFaMAi7Iv/fFftZQXV49smJE8KTgSVW/GxrqjN5t5Zw2OBTRKcnzA==",
"license": "MIT",
"dependencies": {
"@full-ui/headless-calendar": "7.1.0",
"@fullcalendar/core": "7.1.0",
"preact": "^10.29.8"
},
"peerDependencies": {
"temporal-polyfill": "^1.0.1"
}
},
"node_modules/function-bind": {
"version": "1.1.2",
@@ -4021,6 +4049,24 @@
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/preact": {
"version": "10.29.8",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.29.8.tgz",
"integrity": "sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==",
"license": "MIT",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/preact"
},
"peerDependencies": {
"preact-render-to-string": ">=5"
},
"peerDependenciesMeta": {
"preact-render-to-string": {
"optional": true
}
}
},
"node_modules/process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -4929,6 +4975,31 @@
"streamx": "^2.12.5"
}
},
"node_modules/temporal-polyfill": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-1.0.5.tgz",
"integrity": "sha512-+H/mmY74i6wXCMcjIhGuSnODcyZnc4eois2myhOyX0UqRAKNXQY5m9iB1en5jQ/n4SXtjLXo1ElBI5bmn8tZwQ==",
"license": "MIT",
"peer": true,
"dependencies": {
"temporal-spec": "1.0.1",
"temporal-utils": "1.0.3"
}
},
"node_modules/temporal-spec": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-1.0.1.tgz",
"integrity": "sha512-wxVoanmDeavXie1vu2JaQ3WIc3JZnWAOYFBsJyATaVsXsycKYUflGsyBmrRSnoCpZJpwPyr38VpgSUlQ8CbFxg==",
"license": "Apache-2.0",
"peer": true
},
"node_modules/temporal-utils": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/temporal-utils/-/temporal-utils-1.0.3.tgz",
"integrity": "sha512-9jbTSX3HvkOWvDpNpFzwX/d1mkCrgQgwLmVTOEiuocZGKHsrQJtttGZFmybJ2zYP5zCSZuU5ZyeS8+eOEPABiQ==",
"license": "MIT",
"peer": true
},
"node_modules/ternary-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/ternary-stream/-/ternary-stream-3.0.0.tgz",
@@ -5512,6 +5583,18 @@
"resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz",
"integrity": "sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg=="
},
"@full-ui/headless-calendar": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@full-ui/headless-calendar/-/headless-calendar-7.1.0.tgz",
"integrity": "sha512-T54tSUik/ia9Jj4xduFHv1p98eVBgLnE33Q6qhpg+WWkqKCLBCbtVyMcTPPIOP5jjTV2MbtjrRvRt1RLSryGHA==",
"requires": {}
},
"@fullcalendar/core": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@fullcalendar/core/-/core-7.1.0.tgz",
"integrity": "sha512-a+ABP7zQpPWpwPT8EsOdShpeOVrJyx/XYStqERd8ibld/FLi/dzpd95r7w3RIdFqFm9iUv0gdGvBshSlI/dbPw==",
"requires": {}
},
"@gulp-sourcemaps/identity-map": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/@gulp-sourcemaps/identity-map/-/identity-map-2.0.1.tgz",
@@ -7011,9 +7094,14 @@
"optional": true
},
"fullcalendar": {
"version": "5.11.5",
"resolved": "https://registry.npmjs.org/fullcalendar/-/fullcalendar-5.11.5.tgz",
"integrity": "sha512-eaVD6zOvuFXVpoMKlg2FQAj8e+PcpitBMwlzwRJJr1zOi/dXMYAksx2hLzwtsr93FVUNSSo16xwMTTZz6+prKQ=="
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/fullcalendar/-/fullcalendar-7.1.0.tgz",
"integrity": "sha512-Pvr/fLrwuwfIjRygNKHJdHFJ8QGWjkAf6FFaMAi7Iv/fFftZQXV49smJE8KTgSVW/GxrqjN5t5Zw2OBTRKcnzA==",
"requires": {
"@full-ui/headless-calendar": "7.1.0",
"@fullcalendar/core": "7.1.0",
"preact": "^10.29.8"
}
},
"function-bind": {
"version": "1.1.2",
@@ -8303,6 +8391,12 @@
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"preact": {
"version": "10.29.8",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.29.8.tgz",
"integrity": "sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==",
"requires": {}
},
"process-nextick-args": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
@@ -8993,6 +9087,28 @@
"streamx": "^2.12.5"
}
},
"temporal-polyfill": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/temporal-polyfill/-/temporal-polyfill-1.0.5.tgz",
"integrity": "sha512-+H/mmY74i6wXCMcjIhGuSnODcyZnc4eois2myhOyX0UqRAKNXQY5m9iB1en5jQ/n4SXtjLXo1ElBI5bmn8tZwQ==",
"peer": true,
"requires": {
"temporal-spec": "1.0.1",
"temporal-utils": "1.0.3"
}
},
"temporal-spec": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/temporal-spec/-/temporal-spec-1.0.1.tgz",
"integrity": "sha512-wxVoanmDeavXie1vu2JaQ3WIc3JZnWAOYFBsJyATaVsXsycKYUflGsyBmrRSnoCpZJpwPyr38VpgSUlQ8CbFxg==",
"peer": true
},
"temporal-utils": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/temporal-utils/-/temporal-utils-1.0.3.tgz",
"integrity": "sha512-9jbTSX3HvkOWvDpNpFzwX/d1mkCrgQgwLmVTOEiuocZGKHsrQJtttGZFmybJ2zYP5zCSZuU5ZyeS8+eOEPABiQ==",
"peer": true
},
"ternary-stream": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/ternary-stream/-/ternary-stream-3.0.0.tgz",

View File

@@ -16,7 +16,7 @@
"clipboard": "^2.0.8",
"cssnano": "^5.0.13",
"easymde": "^2.21.0",
"fullcalendar": "^5.10.1",
"fullcalendar": "^7.1.0",
"gulp-concat": "^2.6.1",
"gulp-flatten": "^0.4.0",
"gulp-if": "^3.0.0",

View File

@@ -50,8 +50,7 @@ function initPicker(select) {
var noClear = 'noclear' in select.dataset;
var multiple = select.multiple;
var url = select.dataset.sourceurl;
// input_autogrow keeps the search box on the same line as the selected value (otherwise it wraps and doubles the height)
var plugins = ['input_autogrow'];
var plugins = [];
if (multiple) {
plugins.push('remove_button');
} else if (!noClear) {
@@ -71,28 +70,18 @@ function initPicker(select) {
};
if (url) {
// The server does the searching. Tom Select keeps every option it has ever loaded, so remember which
// ones the server returned for each query and only show those (otherwise results for "a" and "al"
// linger in the dropdown when searching for "ali hassan").
var results = {};
var normalise = function (query) { return query.trim().toLowerCase(); };
Object.assign(settings, {
score: function (query) {
var ids = results[normalise(query)];
return function (option) { return ids && ids.has(String(option.value)) ? 1 : 0; };
},
// Results come from the server so don't filter them locally
score: function () { return function () { return 1; }; },
shouldLoad: function (query) { return query.length > 0; },
load: function (query, callback) {
var separator = url.indexOf('?') === -1 ? '?' : '&';
fetch(url + separator + 'q=' + encodeURIComponent(query), {credentials: 'same-origin'})
.then(function (response) { return response.json(); })
.then(function (data) {
var options = data.map(function (item) {
callback(data.map(function (item) {
return {value: item.pk, text: item.text, update_url: item.update};
});
results[normalise(query)] = new Set(options.map(function (option) { return String(option.value); }));
callback(options);
}));
})
.catch(function () { callback(); });
}
@@ -105,14 +94,6 @@ function initPicker(select) {
});
var ts = new TomSelect(select, settings);
if (url) {
// Emptying the search box shouldn't list everything loaded so far (selected options are kept)
ts.on('type', function (query) {
if (query === '') {
ts.clearOptions();
}
});
}
Object.keys(update_urls).forEach(function (value) {
if (ts.options[value]) {
ts.options[value].update_url = update_urls[value];