Sha256: 42cb2b202c71fc59f916544101901fd3663de64e8c6b107da2380edd99cc4a56

Contents?: true

Size: 1.53 KB

Versions: 11

Compression:

Stored size: 1.53 KB

Contents

<div class="relative flex flex-col w-full sm:w-auto z-40 js-actions-dropdown"
  data-controller="toggle-panel actions-picker"
  data-actions-picker-enabled-class="text-black hover:bg-primary-500 hover:text-white"
  data-actions-picker-disabled-class="cursor-wait text-gray-500"
>
  <%= a_button style: @style,
    type: :button,
    color: @color,
    class: "focus:outline-none",
    icon: 'arrow-circle-right',
    icon_class: 'transform rotate-90',
    'data-action': "click->toggle-panel#togglePanel",
    'data-actions-dropdown-button': @resource.model_key do %>
    <%= t 'avo.actions' %>
  <% end %>
  <div
    class="absolute flex inset-auto xl:right-0 top-full bg-white w-full sm:w-auto sm:min-w-[300px] mt-2 z-20 shadow-modal rounded overflow-hidden hidden"
    data-toggle-panel-target="panel"
  >
    <div class="w-full space divide-y">
      <% actions.each_with_index do |action, index| %>
        <%= link_to action_path(action.param_id),
          data: {
            'turbo-frame': 'actions_show',
            'action': 'click->actions-picker#visitAction',
            'actions-picker-target': action.standalone ? 'standaloneAction' : 'resourceAction',
            'disabled': is_disabled?(action),
          },
          title: action.action_name,
          class: "flex items-center px-4 py-3 w-full font-semibold text-sm hover:bg-primary-100 #{is_disabled?(action) ? 'text-gray-500' : 'text-black'}" do %>
          <%= svg 'play', class: 'h-5 mr-1 inline' %> <%= action.action_name %>
        <% end %>
      <% end %>
    </div>
  </div>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
avo-2.16.1.pre.1.nativefields app/components/avo/actions_component.html.erb
avo-2.16.0 app/components/avo/actions_component.html.erb
avo-2.15.3 app/components/avo/actions_component.html.erb
avo-2.15.3.pre.1.data.attrs.to.sidebar.items app/components/avo/actions_component.html.erb
avo-2.15.2 app/components/avo/actions_component.html.erb
avo-2.15.2.pre.1 app/components/avo/actions_component.html.erb
avo-2.15.1 app/components/avo/actions_component.html.erb
avo-2.15.0 app/components/avo/actions_component.html.erb
avo-2.14.3.pre.1.branding app/components/avo/actions_component.html.erb
avo-2.13.2.pre.2 app/components/avo/actions_component.html.erb
avo-2.13.2.pre.1 app/components/avo/actions_component.html.erb