plutonium 0.15.6 → 0.15.8
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 +25 -11
- data/app/assets/plutonium.js.map +2 -2
- data/app/assets/plutonium.min.js +4 -4
- data/app/assets/plutonium.min.js.map +3 -3
- data/app/views/layouts/rodauth.html.erb +2 -2
- data/docs/guide/getting-started/installation.md +2 -1
- data/docs/guide/getting-started/resources.md +8 -12
- data/docs/public/templates/plutonium.rb +8 -0
- data/lib/generators/pu/core/assets/assets_generator.rb +1 -1
- data/lib/generators/pu/core/assets/templates/tailwind.config.js +11 -1
- data/lib/generators/pu/eject/layout/layout_generator.rb +3 -3
- data/lib/generators/pu/eject/shell/shell_generator.rb +3 -3
- data/lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb +21 -0
- data/lib/generators/pu/extra/colorized_logger/templates/config/initializers/colorized_logger.rb +22 -0
- data/lib/generators/pu/gem/dotenv/dotenv_generator.rb +1 -1
- data/lib/generators/pu/gem/letter_opener/letter_opener_generator.rb +21 -0
- data/lib/generators/pu/gem/redis/redis_generator.rb +0 -2
- data/lib/generators/pu/gem/standard/standard_generator.rb +19 -0
- data/lib/generators/pu/lib/plutonium_generators/generator.rb +1 -1
- data/lib/generators/pu/res/conn/conn_generator.rb +1 -1
- data/lib/plutonium/core/controllers/authorizable.rb +1 -1
- data/lib/plutonium/definition/actions.rb +6 -2
- data/lib/plutonium/definition/base.rb +1 -0
- data/lib/plutonium/definition/nested_inputs.rb +19 -0
- data/lib/plutonium/resource/controller.rb +13 -9
- data/lib/plutonium/resource/controllers/authorizable.rb +2 -2
- data/lib/plutonium/resource/controllers/interactive_actions.rb +1 -1
- data/lib/plutonium/resource/controllers/presentable.rb +15 -8
- data/lib/plutonium/ui/block.rb +13 -0
- data/lib/plutonium/ui/component/kit.rb +10 -0
- data/lib/plutonium/ui/display/resource.rb +29 -11
- data/lib/plutonium/ui/display/theme.rb +1 -1
- data/lib/plutonium/ui/dyna_frame/content.rb +2 -2
- data/lib/plutonium/ui/dyna_frame/host.rb +20 -0
- data/lib/plutonium/ui/form/concerns/renders_nested_resource_fields.rb +285 -0
- data/lib/plutonium/ui/form/resource.rb +39 -29
- data/lib/plutonium/ui/form/theme.rb +1 -1
- data/lib/plutonium/ui/frame_navigator_panel.rb +53 -0
- data/lib/plutonium/ui/panel.rb +63 -0
- data/lib/plutonium/ui/skeleton_table.rb +29 -0
- data/lib/plutonium/ui/table/resource.rb +1 -1
- data/lib/plutonium/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- data/src/js/controllers/frame_navigator_controller.js +25 -8
- data/src/js/controllers/nested_resource_form_fields_controller.js +2 -2
- data/tailwind.config.js +11 -1
- data/tailwind.options.js +7 -1
- metadata +13 -3
- data/lib/generators/pu/gem/redis/templates/.keep +0 -0
data/tailwind.options.js
CHANGED
@@ -12,7 +12,13 @@ export const darkMode = "selector";
|
|
12
12
|
export const plugins = [
|
13
13
|
// requires users to have the required packages installed in their own project.
|
14
14
|
"@tailwindcss/forms",
|
15
|
-
"flowbite/plugin"
|
15
|
+
"flowbite/plugin",
|
16
|
+
function ({ addVariant }) {
|
17
|
+
// This creates a variant that applies when an ancestor has data-dyna="true"
|
18
|
+
// addVariant('dyna-frame', '&:has([data-dyna-frame="true"] &)')
|
19
|
+
// Or if you prefer using a class instead of data attribute:
|
20
|
+
addVariant('dyna', ':where(.dyna, .dyna *) &')
|
21
|
+
}
|
16
22
|
];
|
17
23
|
export const theme = {
|
18
24
|
extend: {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plutonium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Froelich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -1083,6 +1083,8 @@ files:
|
|
1083
1083
|
- lib/generators/pu/docker/install/templates/docker-compose.yml
|
1084
1084
|
- lib/generators/pu/eject/layout/layout_generator.rb
|
1085
1085
|
- lib/generators/pu/eject/shell/shell_generator.rb
|
1086
|
+
- lib/generators/pu/extra/colorized_logger/colorized_logger_generator.rb
|
1087
|
+
- lib/generators/pu/extra/colorized_logger/templates/config/initializers/colorized_logger.rb
|
1086
1088
|
- lib/generators/pu/field/input/input_generator.rb
|
1087
1089
|
- lib/generators/pu/field/input/templates/.keep
|
1088
1090
|
- lib/generators/pu/field/input/templates/input.rb.tt
|
@@ -1099,8 +1101,9 @@ files:
|
|
1099
1101
|
- lib/generators/pu/gem/dotenv/templates/.env.template
|
1100
1102
|
- lib/generators/pu/gem/dotenv/templates/.keep
|
1101
1103
|
- lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
|
1104
|
+
- lib/generators/pu/gem/letter_opener/letter_opener_generator.rb
|
1102
1105
|
- lib/generators/pu/gem/redis/redis_generator.rb
|
1103
|
-
- lib/generators/pu/gem/
|
1106
|
+
- lib/generators/pu/gem/standard/standard_generator.rb
|
1104
1107
|
- lib/generators/pu/gen/component/component_generator.rb
|
1105
1108
|
- lib/generators/pu/gen/component/templates/component.html.erb.tt
|
1106
1109
|
- lib/generators/pu/gen/component/templates/component.rb.tt
|
@@ -1276,6 +1279,7 @@ files:
|
|
1276
1279
|
- lib/plutonium/definition/base.rb
|
1277
1280
|
- lib/plutonium/definition/config_attr.rb
|
1278
1281
|
- lib/plutonium/definition/defineable_props.rb
|
1282
|
+
- lib/plutonium/definition/nested_inputs.rb
|
1279
1283
|
- lib/plutonium/definition/presentable.rb
|
1280
1284
|
- lib/plutonium/definition/search.rb
|
1281
1285
|
- lib/plutonium/definition/sorting.rb
|
@@ -1348,6 +1352,7 @@ files:
|
|
1348
1352
|
- lib/plutonium/support/parameters.rb
|
1349
1353
|
- lib/plutonium/ui.rb
|
1350
1354
|
- lib/plutonium/ui/action_button.rb
|
1355
|
+
- lib/plutonium/ui/block.rb
|
1351
1356
|
- lib/plutonium/ui/breadcrumbs.rb
|
1352
1357
|
- lib/plutonium/ui/component/base.rb
|
1353
1358
|
- lib/plutonium/ui/component/behaviour.rb
|
@@ -1358,12 +1363,15 @@ files:
|
|
1358
1363
|
- lib/plutonium/ui/display/resource.rb
|
1359
1364
|
- lib/plutonium/ui/display/theme.rb
|
1360
1365
|
- lib/plutonium/ui/dyna_frame/content.rb
|
1366
|
+
- lib/plutonium/ui/dyna_frame/host.rb
|
1361
1367
|
- lib/plutonium/ui/empty_card.rb
|
1362
1368
|
- lib/plutonium/ui/form/base.rb
|
1369
|
+
- lib/plutonium/ui/form/concerns/renders_nested_resource_fields.rb
|
1363
1370
|
- lib/plutonium/ui/form/interaction.rb
|
1364
1371
|
- lib/plutonium/ui/form/query.rb
|
1365
1372
|
- lib/plutonium/ui/form/resource.rb
|
1366
1373
|
- lib/plutonium/ui/form/theme.rb
|
1374
|
+
- lib/plutonium/ui/frame_navigator_panel.rb
|
1367
1375
|
- lib/plutonium/ui/page/base.rb
|
1368
1376
|
- lib/plutonium/ui/page/edit.rb
|
1369
1377
|
- lib/plutonium/ui/page/index.rb
|
@@ -1371,6 +1379,8 @@ files:
|
|
1371
1379
|
- lib/plutonium/ui/page/new.rb
|
1372
1380
|
- lib/plutonium/ui/page/show.rb
|
1373
1381
|
- lib/plutonium/ui/page_header.rb
|
1382
|
+
- lib/plutonium/ui/panel.rb
|
1383
|
+
- lib/plutonium/ui/skeleton_table.rb
|
1374
1384
|
- lib/plutonium/ui/table/base.rb
|
1375
1385
|
- lib/plutonium/ui/table/components/pagy_info.rb
|
1376
1386
|
- lib/plutonium/ui/table/components/pagy_page_info.rb
|
File without changes
|