plutonium 0.15.21 → 0.15.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1f3700f11bbef10af47caf9003c31614fe251d2b79bd3d274313039513a7063
4
- data.tar.gz: 6ee4129d0f60a7cb670da3e000010aa0b9682e5a246978b76a53d46473b1f954
3
+ metadata.gz: 722d928b97ef24e2b2a16735aed55dd662bf83036e276d2dcb5c08ed63547424
4
+ data.tar.gz: 8cc8fcbe505bff108217638dbdcc37b01ac2b106a8d515011b404dce4949ce71
5
5
  SHA512:
6
- metadata.gz: '092a336fee6aba43c69b9ebfe93c8dd1916ef60dcd0b06bec8b030804abf5b9921d5c2b3faa3ca5c10505d59115cbf67a62c78fae5050b0c61b203ed06e47330'
7
- data.tar.gz: a5f9dc91e73d3792cd76a87c48c12c9e387d91e6b1dd3af3a267b9e922fd3b5193e3129bb3c6636a6af9a500122a2e5e01b5d627b2065bd8c1d95e8dd06b7d16
6
+ metadata.gz: de664691f31e58c49fecd8a4e4b046f70deee78fe1d5f971fb1f1dfb4298517937561c2d29809dea84d181cbc2486ad07bd9114caa1755e49e66029ec33e30de
7
+ data.tar.gz: 6872283b4f1ff8533f800db588e6260ab08d89fd7b7eec95a5484c3294026ff989160b532b3e264dc691efe3a8b6314602b988a2d1c6400c5ce7143c30f79028
@@ -7458,6 +7458,28 @@
7458
7458
  }
7459
7459
  };
7460
7460
 
7461
+ // src/js/controllers/flatpickr_controller.js
7462
+ var flatpickr_controller_default = class extends Controller {
7463
+ connect() {
7464
+ console.log(`flatpickr connected: ${this.element}`);
7465
+ self.picker = new flatpickr(this.element, this.#buildOptions());
7466
+ }
7467
+ disconnect() {
7468
+ self.picker.destroy();
7469
+ self.picker = null;
7470
+ }
7471
+ #buildOptions() {
7472
+ let options = { altInput: true };
7473
+ if (this.element.attributes.type.value == "datetime-local") {
7474
+ options.enableTime = true;
7475
+ } else if (this.element.attributes.type.value == "time") {
7476
+ options.enableTime = true;
7477
+ options.noCalendar = true;
7478
+ }
7479
+ return options;
7480
+ }
7481
+ };
7482
+
7461
7483
  // src/js/controllers/register_controllers.js
7462
7484
  function register_controllers_default(application2) {
7463
7485
  application2.register("resource-layout", resource_layout_controller_default);
@@ -7484,6 +7506,7 @@
7484
7506
  application2.register("color-mode", color_mode_controller_default);
7485
7507
  application2.register("easymde", easymde_controller_default);
7486
7508
  application2.register("slim-select", slim_select_controller_default);
7509
+ application2.register("flatpickr", flatpickr_controller_default);
7487
7510
  }
7488
7511
 
7489
7512
  // node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js