@dejwcake/craftable 2.1.2 → 2.2.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dejwcake/craftable",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "This is a frontend dependency for Craftable. Craftable is a Laravel-based open-source toolkit for building administration interfaces.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <a class="btn btn-sm btn-outline-secondary" :href="url">
3
+ <i class="fa fa-arrow-left"></i> {{ translations.back }}
4
+ </a>
5
+ </template>
6
+
7
+ <script setup>
8
+ defineProps({
9
+ url: { type: String, required: true },
10
+ translations: {
11
+ type: Object,
12
+ default: () => ({
13
+ back: 'Back',
14
+ }),
15
+ },
16
+ });
17
+ </script>
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <a class="btn btn-sm btn-spinner btn-info" :href="url" :title="translations.show_btn" role="button">
3
+ <i class="fa fa-eye"></i>
4
+ </a>
5
+ </template>
6
+
7
+ <script setup>
8
+ defineProps({
9
+ url: { type: String, required: true },
10
+ translations: {
11
+ type: Object,
12
+ default: () => ({
13
+ show_btn: 'Show',
14
+ }),
15
+ },
16
+ });
17
+ </script>
package/src/index.js CHANGED
@@ -22,8 +22,10 @@ export { default as BulkCheckboxRow } from './components/listing/BulkCheckboxRow
22
22
  export { default as BulkOperationsBar } from './components/listing/BulkOperationsBar.vue';
23
23
  export { default as PublishedAtColumn } from './components/listing/PublishedAtColumn.vue';
24
24
  export { default as ListingHeader } from './components/listing/ListingHeader.vue';
25
+ export { default as ShowButton } from './components/listing/ShowButton.vue';
25
26
  export { default as EditButton } from './components/listing/EditButton.vue';
26
27
  export { default as DeleteButton } from './components/listing/DeleteButton.vue';
28
+ export { default as BackButton } from './components/BackButton.vue';
27
29
  export { default as ConfirmModal } from './components/ConfirmModal.vue';
28
30
  export { default as ToggleSwitch } from './components/listing/ToggleSwitch.vue';
29
31
  export { default as ReadOnlySwitch } from './components/ReadOnlySwitch.vue';