super 0.0.8 → 0.0.9
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.
- checksums.yaml +4 -4
- data/.yardopts +2 -0
- data/README.md +47 -61
- data/STABILITY.md +2 -2
- data/app/assets/javascripts/super/application.js +109 -105
- data/app/assets/stylesheets/super/application.css +5600 -0
- data/app/views/layouts/super/application.html.erb +10 -2
- data/app/views/super/application/_display_rich_text.html.erb +1 -0
- data/app/views/super/application/_form_field_checkbox.html.erb +15 -0
- data/app/views/super/application/_form_field_generic.html.erb +19 -0
- data/app/views/super/application/_form_field_rich_text_area.html.erb +13 -0
- data/app/views/super/application/_super_schema_display_show.html.erb +3 -3
- data/docs/README.md +4 -2
- data/docs/action_text.md +48 -0
- data/docs/cheat.md +8 -8
- data/docs/faq.md +3 -3
- data/docs/installation.md +21 -0
- data/docs/quick_start.md +1 -16
- data/docs/webpacker.md +13 -5
- data/frontend/super-frontend/build.js +1 -1
- data/frontend/super-frontend/dist/application.css +5600 -0
- data/frontend/super-frontend/dist/application.js +109 -105
- data/frontend/super-frontend/package.json +1 -2
- data/frontend/super-frontend/src/javascripts/super/{application.ts → application.js} +0 -0
- data/frontend/super-frontend/src/javascripts/super/{apply_template_controller.ts → apply_template_controller.js} +3 -5
- data/frontend/super-frontend/src/javascripts/super/{toggle_pending_destruction_controller.ts → toggle_pending_destruction_controller.js} +2 -2
- data/frontend/super-frontend/tailwind.config.js +2 -2
- data/frontend/super-frontend/yarn.lock +0 -5
- data/lib/generators/super/action_text/USAGE +23 -0
- data/lib/generators/super/action_text/action_text_generator.rb +30 -0
- data/lib/generators/super/action_text/templates/pack_super_action_text.css +23 -0
- data/lib/generators/super/action_text/templates/pack_super_action_text.js +4 -0
- data/lib/generators/super/webpacker/USAGE +5 -4
- data/lib/super/assets.rb +4 -0
- data/lib/super/display/schema_types.rb +6 -0
- data/lib/super/form/schema_types.rb +10 -0
- data/lib/super/version.rb +1 -1
- metadata +15 -7
- data/frontend/super-frontend/src/javascripts/super/rails__ujs.d.ts +0 -1
- data/frontend/super-frontend/tsconfig.json +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b01ea90f28d8e14b5a5f4bd454e2a15676b9c95623200a17d1a2ed2fb71d87f
|
4
|
+
data.tar.gz: 753365f90dcc880f4249ab60d9eea04034189fd221ecb03d500a8fc78f02a7a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec08f45761eefc5645daa6f4976b9b3844fba97c04b81ddbee3217dfd6392666c30eabb7e7a2eca0516f2dad861b4f8a5f85ac8ac36ed583baa6dcb38d7fb4f2
|
7
|
+
data.tar.gz: ed215af314d49cc4454ba98cb8fd84d351ca32808de1eceaa4c079b2199f18bfbd6ebfc1aa8d388738012868b764482741d933e1e232ac1cf30bf02f3effe26f
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|

|
4
4
|
[][gem]
|
5
|
-
[][
|
5
|
+
[][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
|
15
|
-
*
|
16
|
-
* Preferring plain Ruby objects
|
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
|
22
|
-
|
19
|
+
Super's distinguishing feature is that it's easy to maintain in your
|
20
|
+
application. It does this by:
|
23
21
|
|
24
|
-
*
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
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
|
-
*
|
39
|
-
|
40
|
-
|
41
|
-
*
|
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
|
-
|
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
|
-
|
55
|
-
[
|
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
|
-
|
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
|
-
|
64
|
+
**Super FOSS** provides:
|
67
65
|
|
68
|
-
|
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
|
-
*
|
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
|
-
|
81
|
-
|
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
|
-
|
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
|
-
|
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
|
-
[
|
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
|
-
[
|
120
|
-
[
|
105
|
+
[demo]: https://demo-super.herokuapp.com/admin/members
|
106
|
+
[demo_source]: https://github.com/zachahn/super_demo
|
data/STABILITY.md
CHANGED
@@ -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
|
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
|
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.
|
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
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
|
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
|
-
|
4290
|
-
};
|
4282
|
+
var _stimulus = require("stimulus");
|
4291
4283
|
|
4292
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
4349
|
-
|
4308
|
+
var _default = /*#__PURE__*/function (_Controller) {
|
4309
|
+
_inherits(_default, _Controller);
|
4350
4310
|
|
4351
|
-
|
4352
|
-
|
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
|
-
|
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
|
4343
|
+
var _stimulus = require("stimulus");
|
4364
4344
|
|
4365
|
-
|
4366
|
-
|
4367
|
-
function (
|
4368
|
-
|
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
|
-
|
4371
|
-
|
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
|
-
|
4375
|
-
|
4378
|
+
_createClass(_default, [{
|
4379
|
+
key: "call",
|
4380
|
+
value: function call(event) {
|
4381
|
+
var target = event.target;
|
4376
4382
|
|
4377
|
-
|
4378
|
-
|
4379
|
-
|
4380
|
-
|
4381
|
-
|
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
|
4387
|
-
}(
|
4393
|
+
return _default;
|
4394
|
+
}(_stimulus.Controller);
|
4388
4395
|
|
4389
|
-
exports.default =
|
4390
|
-
},{"stimulus":"../node_modules/stimulus/index.js"}],"javascripts/super/application.
|
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
|
4411
|
-
return
|
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
|
-
|
4421
|
+
_ujs.default.start();
|
4416
4422
|
|
4417
|
-
var
|
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",
|
4423
|
-
StimulusApplication.register("toggle-pending-destruction",
|
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.
|
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")
|