0.9.0 • Published 1 year ago

@krknet/fe v0.9.0

Weekly downloads
26
License
ISC
Repository
-
Last release
1 year ago

Frontend Collection

Helpers and Components

Requirements

  • Tailwind >= 1.2
  • Vue >= 2.6

Helpers

Components

RichTable

Import

import { RichTable } from '@krknet/fe/components'

Usage

<rich-table
  keyField="_id"
  :isLoading="isLoading"
  :columns="columns"
  :hasActions="true"
  :entries="filteredList"
>
  <template #emptyItem>
    <div class="py-4 italic text-center text-gray-500">
      <div v-if="totalEntries > 0">
        <p>keine passende Einträge</p>
        <button class="py-1 mt-2 text-gray-600 hover:text-gray-800 focus:outline-none" @click="clearSearch">
          <i class="mr-1 fal fa-fw fa-empty-set" />
          <span class="tracking-wider">Suche zurücksetzen</span>
        </button>
      </div>
      <div v-else>
        <p>es sind noch keine Einträge im System hinterlegt</p>
        <button class="py-1 mt-2 text-gray-600 hover:text-gray-800 focus:outline-none" @click="createNew">
          <i class="mr-1 fal fa-fw fa-plus" />
          <span class="tracking-wider">ersten Eintrag anlegen</span>
        </button>
      </div>
    </div>
  </template>
  <template #loadingItem>
    <td class="px-2 py-1 pr-4 loading">Peter Pan</td>
    <td class="px-2 py-1 loading t-num">000-00-00 <span class="text-gray-500">00:00</span></td>
    <td class="px-2 py-1 loading t-num">000-00-00 <span class="text-gray-500">00:00</span></td>
    <td class="px-2 py-1 loading t-num">000-00-00 <span class="text-gray-500">00:00</span></td>
    <td class="px-3 py-1 text-right loading">
      <button class="px-1 py-1 leading-none text-gray-600 sm:text-xs focus:outline-none hover:text-gray-800 focus:text-gray-800" title="bearbeiten">
        <i class="fas fa-fw fa-pen" />
      </button>
    </td>
  </template>
  <template #row="{ entry }">
    <rich-row :entry="entry" @update="updateEntry" @triggerEdit="triggerEdit(entry)" />
  </template>
</rich-table>

vSwitch

Import

import { vSwitch } from '@krknet/fe/components'

Usage

<v-switch :value="view">
  <template #table>TableView</template>
</v-switch>
0.9.0

1 year ago

0.8.0

2 years ago

0.7.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago