-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
71 changed files
with
1,082 additions
and
703 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<script setup> | ||
import IconsTable from './icons-table.vue'; | ||
</script> | ||
|
||
# Icons | ||
|
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script setup> | ||
import Specs from './component-specs.vue'; | ||
import ExampleTableActionBar from './examples/example-table-action-bar.vue'; | ||
</script> | ||
|
||
# `wt-actions-bar.vue` | ||
|
||
> [!TIP] | ||
> Цей компонент – нова версія [`wt-table-actions`](../wt-table-actions/Readme.md), з переробленим інтерфейсом та новими | ||
> можливостями. | ||
> Замість `wt-table-actions` треба використовувати `wt-actions-bar`. | ||
## Specs | ||
|
||
<Specs /> | ||
|
||
## Actions Order, depending on `mode` prop | ||
|
||
::: details Code | ||
<<< ../../../../../src/components/wt-action-bar/WtActionBarActionsOrder.js | ||
::: | ||
|
||
## Example Table Actions Bar (All table actions) | ||
|
||
::: raw | ||
<ExampleTableActionBar /> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-table-action-bar.vue | ||
::: |
11 changes: 11 additions & 0 deletions
11
docs/pages/webitel-ui/components/wt-action-bar/component-specs.vue
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup> | ||
import Component from '__lib__/components/wt-action-bar/wt-action-bar.vue'; | ||
</script> | ||
|
||
<template> | ||
<component-info :info="Component.docs" /> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
</style> |
16 changes: 16 additions & 0 deletions
16
docs/pages/webitel-ui/components/wt-action-bar/examples/example-table-action-bar.vue
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<wt-action-bar | ||
:actions="tableActionsOrder" | ||
mode="table" | ||
/> | ||
</template> | ||
|
||
<script setup> | ||
import { tableActionsOrder } from '__lib__/components/wt-action-bar/WtActionBarActionsOrder.js'; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.example-table-action-bar { | ||
} | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<script setup> | ||
import Specs from './component-specs.vue'; | ||
import ExampleEmpty from './examples/example-empty.vue'; | ||
import ExampleEmptySizes from './examples/example-empty-sizes.vue'; | ||
</script> | ||
|
||
# `wt-empty.vue` | ||
|
||
> [!TIP] | ||
> Цей компонент – нова версія `wt-dummy`, з переробленим інтерфейсом та новими можливостями. | ||
> Замість `wt-dummy` треба використовувати `wt-empty`. | ||
|
||
Компонент для відображення відсутності даних (наприклад, замість таблички). | ||
|
||
## Specs | ||
|
||
<Specs /> | ||
|
||
## Example Empty | ||
|
||
::: raw | ||
<ExampleEmpty /> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-empty.vue{js} | ||
::: | ||
|
||
## Example Image Sizes | ||
|
||
::: raw | ||
<ExampleEmptySizes /> | ||
::: | ||
|
||
::: details Code | ||
<<< ./examples/example-empty-sizes.vue{js} | ||
::: |
11 changes: 11 additions & 0 deletions
11
docs/pages/webitel-ui/components/wt-empty/component-specs.vue
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup> | ||
import Component from '__lib__/components/wt-empty/wt-empty.vue'; | ||
</script> | ||
|
||
<template> | ||
<component-info :info="Component.docs" /> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
</style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
docs/pages/webitel-ui/components/wt-empty/examples/example-empty-sizes.vue
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div style="display: flex; gap: var(--spacing-sm); flex-wrap: nowrap;"> | ||
<wt-table | ||
:data="sizes.map(size => ({ size, empty: true }))" | ||
:headers="[{ value: 'size', width: '40px' }, { value: 'empty', width: 'auto' }]" | ||
:selectable="false" | ||
> | ||
<template #empty="{ item }"> | ||
<wt-empty | ||
:size="item.size" | ||
headline="Component is fully built using props" | ||
image="https://via.placeholder.com/150" | ||
primary-action-text="primary" | ||
secondary-action-text="secondary" | ||
text="There is no data to display" | ||
title="No data" | ||
/> | ||
</template> | ||
</wt-table> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
const sizes = [ | ||
'sm', | ||
'md', | ||
'lg', | ||
]; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.example-empty { | ||
} | ||
</style> |
28 changes: 28 additions & 0 deletions
28
docs/pages/webitel-ui/components/wt-empty/examples/example-empty.vue
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<template> | ||
<wt-empty | ||
headline="Component is fully built using props" | ||
image="https://via.placeholder.com/150" | ||
primary-action-text="alert me" | ||
secondary-action-text="me too" | ||
text="There is no data to display" | ||
title="No data" | ||
@click:primary="handleClick('primary')" | ||
@click:secondary="handleClick('secondary')" | ||
/> | ||
</template> | ||
|
||
<script setup> | ||
const props = defineProps({}); | ||
const emit = defineEmits([]); | ||
const handleClick = (action) => { | ||
alert(`Clicked ${action}`); | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.example-empty { | ||
} | ||
</style> |
Oops, something went wrong.