plutonium 0.26.1 → 0.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16489,8 +16489,12 @@ ${text2}</tr>
16489
16489
  // src/js/controllers/flatpickr_controller.js
16490
16490
  var flatpickr_controller_default = class extends Controller {
16491
16491
  connect() {
16492
+ this.modal = document.querySelector("[data-controller=remote-modal]");
16492
16493
  this.picker = new flatpickr(this.element, this.#buildOptions());
16493
- this.element.setAttribute("data-action", "turbo:morph-element->flatpickr#reconnect");
16494
+ this.element.setAttribute(
16495
+ "data-action",
16496
+ "turbo:morph-element->flatpickr#reconnect"
16497
+ );
16494
16498
  }
16495
16499
  disconnect() {
16496
16500
  if (this.picker) {
@@ -16510,6 +16514,9 @@ ${text2}</tr>
16510
16514
  options2.enableTime = true;
16511
16515
  options2.noCalendar = true;
16512
16516
  }
16517
+ if (this.modal) {
16518
+ options2.appendTo = this.modal;
16519
+ }
16513
16520
  return options2;
16514
16521
  }
16515
16522
  };
@@ -29297,6 +29304,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
29297
29304
  var attachment_input_controller_default = class extends Controller {
29298
29305
  static values = {
29299
29306
  identifier: String,
29307
+ endpoint: String,
29300
29308
  maxFileSize: { type: Number, default: null },
29301
29309
  minFileSize: { type: Number, default: null },
29302
29310
  maxTotalSize: { type: Number, default: null },
@@ -29341,7 +29349,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e4.byteLength}`), e4.tif
29341
29349
  }
29342
29350
  #configureUploader() {
29343
29351
  this.uppy.use(XHRUpload, {
29344
- endpoint: "/upload"
29352
+ endpoint: this.endpointValue
29345
29353
  // path to the upload endpoint
29346
29354
  });
29347
29355
  }