plutonium 0.15.20 → 0.15.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/plutonium.css +1 -1
- data/app/assets/plutonium.js +28 -0
- data/app/assets/plutonium.js.map +3 -3
- data/app/assets/plutonium.min.js +5 -5
- data/app/assets/plutonium.min.js.map +4 -4
- data/app/views/components/table/table_component.rb +1 -1
- data/docs/guide/getting-started/resources.md +1 -1
- data/lib/generators/pu/core/assets/assets_generator.rb +1 -1
- data/lib/plutonium/resource/controllers/queryable.rb +1 -1
- data/lib/plutonium/resource/query_object.rb +7 -6
- data/lib/plutonium/ui/display/base.rb +4 -0
- data/lib/plutonium/ui/display/component/markdown.rb +23 -0
- data/lib/plutonium/ui/display/theme.rb +2 -1
- data/lib/plutonium/ui/form/base.rb +15 -0
- data/lib/plutonium/ui/form/components/easymde.rb +17 -0
- data/lib/plutonium/ui/form/options/inferred_types.rb +23 -0
- data/lib/plutonium/ui/layout/base.rb +20 -0
- data/lib/plutonium/ui/table/components/scopes_bar.rb +4 -4
- data/lib/plutonium/ui/table/resource.rb +1 -1
- data/lib/plutonium/version.rb +1 -1
- data/package-lock.json +15 -2
- data/package.json +2 -1
- data/src/css/easymde.css +2 -2
- data/src/css/plutonium.css +1 -0
- data/src/css/slim_select.css +297 -0
- data/src/js/controllers/easymde_controller.js +14 -0
- data/src/js/controllers/register_controllers.js +4 -0
- data/src/js/controllers/slim_select_controller.js +16 -0
- data/tailwind.options.js +46 -2
- metadata +22 -2
data/app/assets/plutonium.js
CHANGED
@@ -7432,6 +7432,32 @@
|
|
7432
7432
|
}
|
7433
7433
|
};
|
7434
7434
|
|
7435
|
+
// src/js/controllers/easymde_controller.js
|
7436
|
+
var easymde_controller_default = class extends Controller {
|
7437
|
+
connect() {
|
7438
|
+
console.log(`easymde connected: ${this.element}`);
|
7439
|
+
self.easyMDE = new EasyMDE({ element: this.element });
|
7440
|
+
}
|
7441
|
+
disconnect() {
|
7442
|
+
self.easyMDE.toTextArea();
|
7443
|
+
self.easyMDE = null;
|
7444
|
+
}
|
7445
|
+
};
|
7446
|
+
|
7447
|
+
// src/js/controllers/slim_select_controller.js
|
7448
|
+
var slim_select_controller_default = class extends Controller {
|
7449
|
+
connect() {
|
7450
|
+
console.log(`slim-select connected: ${this.element}`);
|
7451
|
+
self.slimSelect = new SlimSelect({
|
7452
|
+
select: this.element
|
7453
|
+
});
|
7454
|
+
}
|
7455
|
+
disconnect() {
|
7456
|
+
self.slimSelect.destroy();
|
7457
|
+
self.slimSelect = null;
|
7458
|
+
}
|
7459
|
+
};
|
7460
|
+
|
7435
7461
|
// src/js/controllers/register_controllers.js
|
7436
7462
|
function register_controllers_default(application2) {
|
7437
7463
|
application2.register("resource-layout", resource_layout_controller_default);
|
@@ -7456,6 +7482,8 @@
|
|
7456
7482
|
application2.register("resource-dismiss", resource_dismiss_controller_default);
|
7457
7483
|
application2.register("frame-navigator", frame_navigator_controller_default);
|
7458
7484
|
application2.register("color-mode", color_mode_controller_default);
|
7485
|
+
application2.register("easymde", easymde_controller_default);
|
7486
|
+
application2.register("slim-select", slim_select_controller_default);
|
7459
7487
|
}
|
7460
7488
|
|
7461
7489
|
// node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js
|