super 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +2 -0
  3. data/README.md +47 -61
  4. data/STABILITY.md +2 -2
  5. data/app/assets/javascripts/super/application.js +109 -105
  6. data/app/assets/stylesheets/super/application.css +5600 -0
  7. data/app/views/layouts/super/application.html.erb +10 -2
  8. data/app/views/super/application/_display_rich_text.html.erb +1 -0
  9. data/app/views/super/application/_form_field_checkbox.html.erb +15 -0
  10. data/app/views/super/application/_form_field_generic.html.erb +19 -0
  11. data/app/views/super/application/_form_field_rich_text_area.html.erb +13 -0
  12. data/app/views/super/application/_super_schema_display_show.html.erb +3 -3
  13. data/docs/README.md +4 -2
  14. data/docs/action_text.md +48 -0
  15. data/docs/cheat.md +8 -8
  16. data/docs/faq.md +3 -3
  17. data/docs/installation.md +21 -0
  18. data/docs/quick_start.md +1 -16
  19. data/docs/webpacker.md +13 -5
  20. data/frontend/super-frontend/build.js +1 -1
  21. data/frontend/super-frontend/dist/application.css +5600 -0
  22. data/frontend/super-frontend/dist/application.js +109 -105
  23. data/frontend/super-frontend/package.json +1 -2
  24. data/frontend/super-frontend/src/javascripts/super/{application.ts → application.js} +0 -0
  25. data/frontend/super-frontend/src/javascripts/super/{apply_template_controller.ts → apply_template_controller.js} +3 -5
  26. data/frontend/super-frontend/src/javascripts/super/{toggle_pending_destruction_controller.ts → toggle_pending_destruction_controller.js} +2 -2
  27. data/frontend/super-frontend/tailwind.config.js +2 -2
  28. data/frontend/super-frontend/yarn.lock +0 -5
  29. data/lib/generators/super/action_text/USAGE +23 -0
  30. data/lib/generators/super/action_text/action_text_generator.rb +30 -0
  31. data/lib/generators/super/action_text/templates/pack_super_action_text.css +23 -0
  32. data/lib/generators/super/action_text/templates/pack_super_action_text.js +4 -0
  33. data/lib/generators/super/webpacker/USAGE +5 -4
  34. data/lib/super/assets.rb +4 -0
  35. data/lib/super/display/schema_types.rb +6 -0
  36. data/lib/super/form/schema_types.rb +10 -0
  37. data/lib/super/version.rb +1 -1
  38. metadata +15 -7
  39. data/frontend/super-frontend/src/javascripts/super/rails__ujs.d.ts +0 -1
  40. data/frontend/super-frontend/tsconfig.json +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c7f47bcff0941f86aa7bdb0fa79fec029120128728fdcff3c4b8944dae7bf91
4
- data.tar.gz: 58e5532e0d911cbbe859be53912f86967b29e1d77b9d9b221744114b84d1a5be
3
+ metadata.gz: 7b01ea90f28d8e14b5a5f4bd454e2a15676b9c95623200a17d1a2ed2fb71d87f
4
+ data.tar.gz: 753365f90dcc880f4249ab60d9eea04034189fd221ecb03d500a8fc78f02a7a9
5
5
  SHA512:
6
- metadata.gz: 2dc95583d9a8926a105a48515c695b9546d61eb9a8043c22741759b40620c85038affecaee527fce0356e635a2a9ef4327ff33dc5772469dcbd75cc4cf90eddc
7
- data.tar.gz: b9539c0e2b57adc6ea1c78398ea5240291de73b7922dd42d8f8049f822c08be24dab24652c475273990c9392f7a3a58e1f277ea41e9db322358dcf653141c221
6
+ metadata.gz: ec08f45761eefc5645daa6f4976b9b3844fba97c04b81ddbee3217dfd6392666c30eabb7e7a2eca0516f2dad861b4f8a5f85ac8ac36ed583baa6dcb38d7fb4f2
7
+ data.tar.gz: ed215af314d49cc4454ba98cb8fd84d351ca32808de1eceaa4c079b2199f18bfbd6ebfc1aa8d388738012868b764482741d933e1e232ac1cf30bf02f3effe26f
data/.yardopts CHANGED
@@ -6,6 +6,8 @@ CONTRIBUTING.md
6
6
  STABILITY.md
7
7
  LICENSE
8
8
  docs/quick_start.md
9
+ docs/installation.md
9
10
  docs/webpacker.md
11
+ docs/action_text.md
10
12
  docs/cheat.md
11
13
  docs/faq.md
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![Unit tests status](https://github.com/zachahn/super/workflows/Unit%20tests/badge.svg?branch=master)
4
4
  [![Gem](https://img.shields.io/gem/v/super)][gem]
5
- [![Try the demo](https://img.shields.io/badge/try-demo-blue)][super_demo]
5
+ [![Try the demo](https://img.shields.io/badge/try-demo-blue)][demo]
6
6
 
7
7
 
8
8
  Super is an admin framework for Ruby on Rails applications. Super helps you make
@@ -11,91 +11,82 @@ app that make it great.
11
11
 
12
12
  Super strives to let engineers build great admin pages quickly and easily by:
13
13
 
14
- * Providing a useful CRUD interface
15
- * Relying on Rails' built in features whenever possible
16
- * Preferring plain Ruby objects rather than requiring DSLs
17
- * Supporting a wide range of Ruby and Rails versions
18
- * Having zero dependencies
14
+ * Providing a configurable CRUD interface with usable defaults
15
+ * Building on top of standard Rails controllers and ERB views
16
+ * Preferring plain Ruby objects and initializers instead of DSLs
19
17
 
20
18
 
21
- Super has no dependencies. That means when you install Super, only Super gets
22
- added to your `Gemfile.lock`. This leads to many benefits:
19
+ Super's distinguishing feature is that it's easy to maintain in your
20
+ application. It does this by:
23
21
 
24
- * Super doesn't require common Rails libraries like [Kaminari][Kaminari],
25
- [Devise][Devise], or [Sass][Sass], so it'll never conflict with the libraries
26
- you have installed. If you want to upgrade Super, you won't have to upgrade
27
- any of your other gems. And if you want to upgrade your other gems, you won't
28
- have to upgrade Super! This will greatly reduce your maintenance burden since
29
- your admin framework won't dictate which libraries and which versions your
30
- application uses.
31
- * All code has the possibility of bugs and security issues, whether they're
32
- written by you or by others. Having fewer dependencies can reduce the risk of
33
- introducing problems into your application.
22
+ * Supporting a wide range of Ruby (2.3–3.0+) and Rails (5.0–6.1+) versions,
23
+ which makes it easy to upgrade your Ruby and Rails versions without breaking
24
+ your admin pages
25
+ * Having zero dependencies, so that you can upgrade your app's dependencies
26
+ without affecting your admin pages (or upgrade your admin pages without
27
+ worrying it might break your app)
28
+
29
+
30
+ Note: There may be lots of breaking changes since Super is still fairly young.
31
+ See the [stability doc](./STABILITY.md) for an idea of what might be changed.
34
32
 
35
33
 
36
34
  ## Features
37
35
 
38
- * Sprockets and Webpacker compatibility
39
- * Note: Webpacker support depends on one additional NPM package for parsing
40
- ERB
41
- * Configurable forms (new and edit forms)
42
- * Nested associations are supported out of the box
36
+ * Responsive and mobile-friendly
37
+ * Compatible with Sprockets and Webpacker
38
+ * Configurable forms
39
+ * Supports nested attributes `accepts_nested_attributes_for`
43
40
  * Configurable display (index and show tables)
41
+ * Advanced filtering for ActiveRecord
44
42
  * Pre-built frontend assets (doesn't require Sass, PostCSS, Babel, etc)
45
43
  * Vendored assets include
46
44
  * Stimulus JS
47
- * Rails UJS
48
45
  * Tailwind CSS
46
+ * Rails UJS
49
47
  * Supports Rails 5.0+, Ruby 2.3+
50
48
 
51
49
 
52
- ## Super doesn't fit my needs. What should I look at?
50
+ See the [demo][demo] and its [source][demo_source] for an example of some of its
51
+ features.
52
+
53
+
54
+ ## Installation and Usage
53
55
 
54
- There are lots of Rails admin frameworks. I've personally used
55
- [ActiveAdmin][ActiveAdmin] and [Administrate][Administrate], and I had some
56
- brief exposure to [RailsAdmin][RailsAdmin].
56
+ See [Installation](./docs/quick_start.md) and
57
+ [Quick start](./docs/quick_start.md)
57
58
 
58
- If you need a ton of features, I'd probably suggest looking at ActiveAdmin. It
59
- relies pretty heavily on DSLs but is pretty flexible and popular.
60
59
 
61
- I like Administrate as well. I found that it doesn't have quite as many features
62
- as ActiveAdmin, but it's nice and feels like developing a normal Rails app.
63
- There's no DSL.
60
+ ## Editions
64
61
 
62
+ There are several editions to consider.
65
63
 
66
- ## Paid editions
64
+ **Super FOSS** provides:
67
65
 
68
- If you have additional requirements, there are some paid editions to consider:
66
+ * A great admin framework that's free and easy to maintain
67
+ * Community support, see the [discussion forum][discussions]
69
68
 
70
- **Super Premium** provides:
69
+ **Super Premium** (not available yet) provides:
71
70
 
72
- * Priority email support
71
+ * Private email support
73
72
  * Ensuring long term development of Super
74
73
 
75
- **Super Professional** provides everything in Premium and:
74
+ **Super Professional** (not available yet) provides everything in Premium and:
76
75
 
77
76
  * Productivity improvements and quality of life features for admins
78
77
  * An LGPL exemption
79
78
 
80
- They aren't available yet. Contact me if you're interested, or subscribe to the
81
- [newsletter][newsletter] to be notified of its availability and for brief,
82
- occasional updates to Super.
83
-
84
-
85
- ## Demos
86
-
87
- * [Super Demo][super_demo]
88
- * [Super Demo source][super_demo_source]
89
-
90
-
91
- ## Installation and Usage
79
+ Subscribe to the [newsletter][newsletter] to be notified of their availabilities
80
+ and for brief, quarterly-at-most updates to Super.
92
81
 
93
- See [Quick start](./docs/quick_start.md)
94
82
 
83
+ ## Super doesn't fit my needs. What are some alternatives?
95
84
 
96
- ## Path to 1.0
85
+ [ActiveAdmin](https://github.com/activeadmin/activeadmin) is great if you need
86
+ lots of features. It relies heavily on DSLs but is flexible and popular.
97
87
 
98
- See [STABILITY](./STABILITY.md)
88
+ [Administrate](https://github.com/thoughtbot/administrate) doesn't have as many
89
+ features as ActiveAdmin, but it feels like developing a normal Rails app.
99
90
 
100
91
 
101
92
  ## Contributing
@@ -109,12 +100,7 @@ The gem is available under the terms of the [GNU LGPLv3](./LICENSE).
109
100
 
110
101
 
111
102
  [gem]: https://rubygems.org/gems/super
112
- [Administrate]: https://github.com/thoughtbot/administrate
113
- [ActiveAdmin]: https://github.com/activeadmin/activeadmin
114
- [RailsAdmin]: https://github.com/sferik/rails_admin
115
- [Kaminari]: https://github.com/kaminari/kaminari
116
- [Devise]: https://github.com/heartcombo/devise
117
- [Sass]: https://github.com/sass/sassc-ruby
103
+ [discussions]: https://github.com/zachahn/super/discussions
118
104
  [newsletter]: https://tinyletter.com/zachahn
119
- [super_demo]: https://demo-super.herokuapp.com/admin/members
120
- [super_demo_source]: https://github.com/zachahn/super_demo
105
+ [demo]: https://demo-super.herokuapp.com/admin/members
106
+ [demo_source]: https://github.com/zachahn/super_demo
@@ -19,10 +19,10 @@ stability.
19
19
  <tr><td><code>Super::Assets</code></td> <td>🚧</td></tr>
20
20
  <tr><td><code>Super::ClientError</code></td> <td>✅</td></tr>
21
21
  <tr><td><code>Super::Compatability</code></td> <td>🙈</td></tr>
22
- <tr><td><code>Super::Configuration</code></td> <td>❌</td></tr>
22
+ <tr><td><code>Super::Configuration</code></td> <td>🚧</td></tr>
23
23
  <tr><td><code>Super::Controls::Optional</code></td> <td>✅</td></tr>
24
24
  <tr><td><code>Super::Controls::Required</code></td> <td>✅</td></tr>
25
- <tr><td><code>Super::Controls::Steps</code></td> <td>🤔</td></tr>
25
+ <tr><td><code>Super::Controls::Steps</code></td> <td>🚧</td></tr>
26
26
  <tr><td><code>Super::Controls</code></td> <td>✅</td></tr>
27
27
  <tr><td><code>Super::Display</code></td> <td>🤔</td></tr>
28
28
  <tr><td><code>Super::Engine</code></td> <td>🙈</td></tr>
@@ -4271,154 +4271,158 @@ Object.keys(_core).forEach(function (key) {
4271
4271
  }
4272
4272
  });
4273
4273
  });
4274
- },{"@stimulus/core":"../node_modules/@stimulus/core/dist/index.js"}],"javascripts/super/apply_template_controller.ts":[function(require,module,exports) {
4274
+ },{"@stimulus/core":"../node_modules/@stimulus/core/dist/index.js"}],"javascripts/super/apply_template_controller.js":[function(require,module,exports) {
4275
4275
  "use strict";
4276
4276
 
4277
- var __extends = this && this.__extends || function () {
4278
- var _extendStatics = function extendStatics(d, b) {
4279
- _extendStatics = Object.setPrototypeOf || {
4280
- __proto__: []
4281
- } instanceof Array && function (d, b) {
4282
- d.__proto__ = b;
4283
- } || function (d, b) {
4284
- for (var p in b) {
4285
- if (b.hasOwnProperty(p)) d[p] = b[p];
4286
- }
4287
- };
4277
+ Object.defineProperty(exports, "__esModule", {
4278
+ value: true
4279
+ });
4280
+ exports.default = void 0;
4288
4281
 
4289
- return _extendStatics(d, b);
4290
- };
4282
+ var _stimulus = require("stimulus");
4291
4283
 
4292
- return function (d, b) {
4293
- _extendStatics(d, b);
4284
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4294
4285
 
4295
- function __() {
4296
- this.constructor = d;
4297
- }
4286
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4298
4287
 
4299
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4300
- };
4301
- }();
4288
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4302
4289
 
4303
- Object.defineProperty(exports, "__esModule", {
4304
- value: true
4305
- });
4290
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4306
4291
 
4307
- var stimulus_1 = require("stimulus");
4292
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4308
4293
 
4309
- var default_1 =
4310
- /** @class */
4311
- function (_super) {
4312
- __extends(default_1, _super);
4294
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
4313
4295
 
4314
- function default_1() {
4315
- return _super !== null && _super.apply(this, arguments) || this;
4316
- }
4296
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4317
4297
 
4318
- default_1.prototype.call = function (event) {
4319
- event.preventDefault();
4320
- var unixtime = new Date().getTime();
4321
- var content = this.templateTarget.innerHTML.replace(/TEMPLATEINDEX/g, unixtime.toString());
4322
- this.templateTarget.insertAdjacentHTML("beforebegin", content);
4323
- };
4298
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4324
4299
 
4325
- default_1.targets = ["template"];
4326
- return default_1;
4327
- }(stimulus_1.Controller);
4300
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4328
4301
 
4329
- exports.default = default_1;
4330
- },{"stimulus":"../node_modules/stimulus/index.js"}],"javascripts/super/toggle_pending_destruction_controller.ts":[function(require,module,exports) {
4331
- "use strict";
4302
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4332
4303
 
4333
- var __extends = this && this.__extends || function () {
4334
- var _extendStatics = function extendStatics(d, b) {
4335
- _extendStatics = Object.setPrototypeOf || {
4336
- __proto__: []
4337
- } instanceof Array && function (d, b) {
4338
- d.__proto__ = b;
4339
- } || function (d, b) {
4340
- for (var p in b) {
4341
- if (b.hasOwnProperty(p)) d[p] = b[p];
4342
- }
4343
- };
4304
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4344
4305
 
4345
- return _extendStatics(d, b);
4346
- };
4306
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4347
4307
 
4348
- return function (d, b) {
4349
- _extendStatics(d, b);
4308
+ var _default = /*#__PURE__*/function (_Controller) {
4309
+ _inherits(_default, _Controller);
4350
4310
 
4351
- function __() {
4352
- this.constructor = d;
4311
+ var _super = _createSuper(_default);
4312
+
4313
+ function _default() {
4314
+ _classCallCheck(this, _default);
4315
+
4316
+ return _super.apply(this, arguments);
4317
+ }
4318
+
4319
+ _createClass(_default, [{
4320
+ key: "call",
4321
+ value: function call(event) {
4322
+ event.preventDefault();
4323
+ var unixtime = new Date().getTime();
4324
+ var content = this.templateTarget.innerHTML.replace(/TEMPLATEINDEX/g, unixtime.toString());
4325
+ this.templateTarget.insertAdjacentHTML("beforebegin", content);
4353
4326
  }
4327
+ }]);
4354
4328
 
4355
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4356
- };
4357
- }();
4329
+ return _default;
4330
+ }(_stimulus.Controller);
4331
+
4332
+ exports.default = _default;
4333
+
4334
+ _defineProperty(_default, "targets", ["template"]);
4335
+ },{"stimulus":"../node_modules/stimulus/index.js"}],"javascripts/super/toggle_pending_destruction_controller.js":[function(require,module,exports) {
4336
+ "use strict";
4358
4337
 
4359
4338
  Object.defineProperty(exports, "__esModule", {
4360
4339
  value: true
4361
4340
  });
4341
+ exports.default = void 0;
4362
4342
 
4363
- var stimulus_1 = require("stimulus");
4343
+ var _stimulus = require("stimulus");
4364
4344
 
4365
- var default_1 =
4366
- /** @class */
4367
- function (_super) {
4368
- __extends(default_1, _super);
4345
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4346
+
4347
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
4348
+
4349
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
4350
+
4351
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
4352
+
4353
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
4354
+
4355
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
4356
+
4357
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4358
+
4359
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4360
+
4361
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
4362
+
4363
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
4364
+
4365
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
4366
+
4367
+ var _default = /*#__PURE__*/function (_Controller) {
4368
+ _inherits(_default, _Controller);
4369
4369
 
4370
- function default_1() {
4371
- return _super !== null && _super.apply(this, arguments) || this;
4370
+ var _super = _createSuper(_default);
4371
+
4372
+ function _default() {
4373
+ _classCallCheck(this, _default);
4374
+
4375
+ return _super.apply(this, arguments);
4372
4376
  }
4373
4377
 
4374
- default_1.prototype.call = function (event) {
4375
- var target = event.target;
4378
+ _createClass(_default, [{
4379
+ key: "call",
4380
+ value: function call(event) {
4381
+ var target = event.target;
4376
4382
 
4377
- if (target) {
4378
- if (target.checked) {
4379
- this.element.classList.add("opacity-75", "bg-gray-100");
4380
- } else {
4381
- this.element.classList.remove("opacity-75", "bg-gray-100");
4383
+ if (target) {
4384
+ if (target.checked) {
4385
+ this.element.classList.add("opacity-75", "bg-gray-100");
4386
+ } else {
4387
+ this.element.classList.remove("opacity-75", "bg-gray-100");
4388
+ }
4382
4389
  }
4383
4390
  }
4384
- };
4391
+ }]);
4385
4392
 
4386
- return default_1;
4387
- }(stimulus_1.Controller);
4393
+ return _default;
4394
+ }(_stimulus.Controller);
4388
4395
 
4389
- exports.default = default_1;
4390
- },{"stimulus":"../node_modules/stimulus/index.js"}],"javascripts/super/application.ts":[function(require,module,exports) {
4396
+ exports.default = _default;
4397
+ },{"stimulus":"../node_modules/stimulus/index.js"}],"javascripts/super/application.js":[function(require,module,exports) {
4391
4398
  "use strict";
4392
4399
 
4393
- var __importDefault = this && this.__importDefault || function (mod) {
4394
- return mod && mod.__esModule ? mod : {
4395
- "default": mod
4396
- };
4397
- };
4398
-
4399
4400
  Object.defineProperty(exports, "__esModule", {
4400
4401
  value: true
4401
4402
  });
4402
- exports.StimulusController = exports.StimulusApplication = void 0;
4403
-
4404
- var ujs_1 = __importDefault(require("@rails/ujs"));
4405
-
4406
- var stimulus_1 = require("stimulus");
4407
-
4408
4403
  Object.defineProperty(exports, "StimulusController", {
4409
4404
  enumerable: true,
4410
- get: function get() {
4411
- return stimulus_1.Controller;
4405
+ get: function () {
4406
+ return _stimulus.Controller;
4412
4407
  }
4413
4408
  });
4409
+ exports.StimulusApplication = void 0;
4410
+
4411
+ var _ujs = _interopRequireDefault(require("@rails/ujs"));
4412
+
4413
+ var _stimulus = require("stimulus");
4414
+
4415
+ var _apply_template_controller = _interopRequireDefault(require("./apply_template_controller"));
4416
+
4417
+ var _toggle_pending_destruction_controller = _interopRequireDefault(require("./toggle_pending_destruction_controller"));
4418
+
4419
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4414
4420
 
4415
- var apply_template_controller_1 = __importDefault(require("./apply_template_controller"));
4421
+ _ujs.default.start();
4416
4422
 
4417
- var toggle_pending_destruction_controller_1 = __importDefault(require("./toggle_pending_destruction_controller"));
4423
+ var StimulusApplication = _stimulus.Application.start();
4418
4424
 
4419
- ujs_1.default.start();
4420
- var StimulusApplication = stimulus_1.Application.start();
4421
4425
  exports.StimulusApplication = StimulusApplication;
4422
- StimulusApplication.register("apply-template", apply_template_controller_1.default);
4423
- StimulusApplication.register("toggle-pending-destruction", toggle_pending_destruction_controller_1.default);
4424
- },{"@rails/ujs":"../node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","stimulus":"../node_modules/stimulus/index.js","./apply_template_controller":"javascripts/super/apply_template_controller.ts","./toggle_pending_destruction_controller":"javascripts/super/toggle_pending_destruction_controller.ts"}]},{},["javascripts/super/application.ts"], "Super")
4426
+ StimulusApplication.register("apply-template", _apply_template_controller.default);
4427
+ StimulusApplication.register("toggle-pending-destruction", _toggle_pending_destruction_controller.default);
4428
+ },{"@rails/ujs":"../node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","stimulus":"../node_modules/stimulus/index.js","./apply_template_controller":"javascripts/super/apply_template_controller.js","./toggle_pending_destruction_controller":"javascripts/super/toggle_pending_destruction_controller.js"}]},{},["javascripts/super/application.js"], "Super")