-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rm types * add avo-hq/literal * add avo-initializer * rename gem * add dependency on "prop_initializer"
- Loading branch information
Showing
73 changed files
with
335 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::AssetManager::JavascriptComponent < Avo::BaseComponent | ||
prop :asset_manager, Avo::AssetManager | ||
prop :asset_manager | ||
|
||
delegate :javascripts, to: :@asset_manager | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::AssetManager::StylesheetComponent < Avo::BaseComponent | ||
prop :asset_manager, Avo::AssetManager | ||
prop :asset_manager | ||
|
||
delegate :stylesheets, to: :@asset_manager | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::DividerComponent < Avo::BaseComponent | ||
prop :label, _Nilable(String), :positional | ||
prop :args, Hash, :** | ||
prop :label, kind: :positional | ||
prop :args, kind: :** | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::Fields::Common::BooleanCheckComponent < Avo::BaseComponent | ||
prop :checked, _Boolean, default: false | ||
prop :icon, _Nilable(String) do |value| | ||
prop :checked, default: false | ||
prop :icon do |value| | ||
@checked ? "heroicons/outline/check-circle" : "heroicons/outline/x-circle" | ||
end | ||
prop :classes, _Nilable(String) do |value| | ||
prop :classes do |value| | ||
"h-6 #{@checked ? "text-green-600" : "text-red-500"}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::Fields::Common::BooleanGroupComponent < Avo::BaseComponent | ||
prop :options, Hash, default: {}.freeze | ||
prop :value, _Nilable(Hash) | ||
prop :options, default: {}.freeze | ||
prop :value | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/components/avo/fields/common/files/view_type/grid_item_component.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
app/components/avo/fields/common/gravatar_viewer_component.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::Fields::Common::GravatarViewerComponent < Avo::BaseComponent | ||
prop :md5, _Nilable(String) | ||
prop :link, _Nilable(String) | ||
prop :default, _Nilable(String) | ||
prop :size, _Nilable(Integer) | ||
prop :rounded, _Boolean, default: false | ||
prop :link_to_record, _Boolean, default: false | ||
prop :title, _Nilable(String) | ||
prop :md5 | ||
prop :link | ||
prop :default | ||
prop :size | ||
prop :rounded, default: false | ||
prop :link_to_record, default: false | ||
prop :title | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::Fields::Common::ProgressBarComponent < Avo::BaseComponent | ||
prop :value, Integer | ||
prop :display_value, _Boolean, default: false | ||
prop :value_suffix, _Nilable(String) | ||
prop :max, Integer, default: 100 | ||
prop :view, Avo::ViewInquirer, reader: :public, default: Avo::ViewInquirer.new(:index).freeze | ||
prop :value | ||
prop :display_value, default: false | ||
prop :value_suffix | ||
prop :max, default: 100 | ||
prop :view, reader: :public, default: Avo::ViewInquirer.new(:index).freeze | ||
|
||
delegate :show?, :index?, to: :view | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::Fields::Common::StatusViewerComponent < Avo::BaseComponent | ||
prop :status, String | ||
prop :label, String | ||
prop :status | ||
prop :label | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
class Avo::Fields::TagsField::TagComponent < Avo::BaseComponent | ||
prop :label, _Nilable(String) | ||
prop :title, _Nilable(String) | ||
prop :label | ||
prop :title | ||
end |
Oops, something went wrong.