-
Notifications
You must be signed in to change notification settings - Fork 49
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
1 parent
f0e9bdc
commit 9ce09fb
Showing
8 changed files
with
245 additions
and
89 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
82 changes: 7 additions & 75 deletions
82
app/src/routes/(backstage)/(library)/data-entry/selects/tree-select/WithinPopover.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
55 changes: 55 additions & 0 deletions
55
app/src/routes/(backstage)/(library)/data-entry/selects/tree-select/WithinTableCell.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,55 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue'; | ||
import { XTable, XTreeSelect } from '@x/ui'; | ||
import options from './options'; | ||
const selected = ref<string[]>([]); | ||
</script> | ||
|
||
<template> | ||
<XTable | ||
:columns="[ | ||
{ key: 'A', name: 'Layout' }, | ||
{ key: 'B', name: 'Flexbox & Grid' }, | ||
{ key: 'C', name: 'Spacing' }, | ||
{ key: 'D', name: 'Sizing' }, | ||
{ key: 'E', name: 'Typography' }, | ||
{ key: 'F', name: 'Backgrounds' }, | ||
{ key: 'G', name: 'Borders' }, | ||
{ key: 'H', name: 'Effects' }, | ||
{ key: 'I', name: 'Filters' }, | ||
{ key: 'J', name: 'Tables' }, | ||
{ key: 'K', name: 'Transitions & Animation' }, | ||
{ key: 'L', name: 'Transforms' }, | ||
{ key: 'M', name: 'Interactivity' }, | ||
{ key: 'N', name: 'SVG' }, | ||
{ key: 'O', name: 'Accessibility' }, | ||
]" | ||
:rows="[ | ||
{ | ||
A: 'Aspect Ratio', | ||
B: 'Flex Basis', | ||
C: 'Padding', | ||
D: 'Width', | ||
E: 'Font Family', | ||
F: 'Background Attachment', | ||
G: 'Border Radius', | ||
H: 'Box Shadow', | ||
I: 'Blur', | ||
J: 'Border Collapse', | ||
K: 'Transition Property', | ||
L: 'Scale', | ||
M: 'Accent Color', | ||
N: 'Fill', | ||
O: 'Screen Readers', | ||
}, | ||
]" | ||
> | ||
<template #D> | ||
<div class="w-64 py-1"> | ||
<XTreeSelect v-model:value="selected" :options /> | ||
</div> | ||
</template> | ||
</XTable> | ||
</template> |
77 changes: 77 additions & 0 deletions
77
...utes/(backstage)/(library)/data-entry/selects/tree-select/WithinTableCellWithinDialog.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,77 @@ | ||
<script lang="ts" setup> | ||
import { ref } from 'vue'; | ||
import { XButton, XDialog, XDivider, XTable, XTreeSelect } from '@x/ui'; | ||
import options from './options'; | ||
const status = ref(false); | ||
const selected = ref<string[]>([]); | ||
const more = ref(false); | ||
</script> | ||
|
||
<template> | ||
<XButton label="Launch" @click="status = true" /> | ||
|
||
<XDialog v-model="status" title="TreeSelect within TableCell within Dialog"> | ||
<XTable | ||
:columns="[ | ||
{ key: 'A', name: 'Layout' }, | ||
{ key: 'B', name: 'Flexbox & Grid' }, | ||
{ key: 'C', name: 'Spacing' }, | ||
{ key: 'D', name: 'Sizing' }, | ||
{ key: 'E', name: 'Typography' }, | ||
{ key: 'F', name: 'Backgrounds' }, | ||
{ key: 'G', name: 'Borders' }, | ||
{ key: 'H', name: 'Effects' }, | ||
{ key: 'I', name: 'Filters' }, | ||
{ key: 'J', name: 'Tables' }, | ||
{ key: 'K', name: 'Transitions & Animation' }, | ||
{ key: 'L', name: 'Transforms' }, | ||
{ key: 'M', name: 'Interactivity' }, | ||
{ key: 'N', name: 'SVG' }, | ||
{ key: 'O', name: 'Accessibility' }, | ||
]" | ||
:rows="[ | ||
{ | ||
A: 'Aspect Ratio', | ||
B: 'Flex Basis', | ||
C: 'Padding', | ||
D: 'Width', | ||
E: 'Font Family', | ||
F: 'Background Attachment', | ||
G: 'Border Radius', | ||
H: 'Box Shadow', | ||
I: 'Blur', | ||
J: 'Border Collapse', | ||
K: 'Transition Property', | ||
L: 'Scale', | ||
M: 'Accent Color', | ||
N: 'Fill', | ||
O: 'Screen Readers', | ||
}, | ||
]" | ||
> | ||
<template #D> | ||
<div class="w-64 py-1"> | ||
<XTreeSelect v-model:value="selected" :options /> | ||
</div> | ||
</template> | ||
</XTable> | ||
|
||
<XDivider /> | ||
|
||
<XButton color="info" @click="more = !more">More</XButton> | ||
|
||
<div v-if="more" class="flex flex-col gap-4 mt-4"> | ||
<p v-for="num in 5" :key="num"> | ||
{{ num }}. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem | ||
Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown | ||
printer took a galley of type and scrambled it to make a type specimen book. It has survived | ||
not only five centuries, but also the leap into electronic typesetting, remaining | ||
essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets | ||
containing Lorem Ipsum passages, and more recently with desktop publishing software like | ||
Aldus PageMaker including versions of Lorem Ipsum. | ||
</p> | ||
</div> | ||
</XDialog> | ||
</template> |
63 changes: 63 additions & 0 deletions
63
app/src/routes/(backstage)/(library)/data-entry/selects/tree-select/options.ts
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,63 @@ | ||
export default [ | ||
{ | ||
label: '1', | ||
value: '1', | ||
children: [ | ||
{ | ||
label: '1-1', | ||
value: '1-1', | ||
children: [ | ||
{ label: '1-1-1', value: '1-1-1' }, | ||
{ label: '1-1-2', value: '1-1-2' }, | ||
], | ||
}, | ||
{ | ||
label: '1-2', | ||
value: '1-2', | ||
children: [ | ||
{ label: '1-2-1', value: '1-2-1' }, | ||
{ label: '1-2-2', value: '1-2-2' }, | ||
], | ||
}, | ||
{ | ||
label: '1-3', | ||
value: '1-3', | ||
children: [ | ||
{ label: '1-3-1', value: '1-3-1' }, | ||
{ | ||
label: '1-3-2', | ||
value: '1-3-2', | ||
children: [ | ||
{ label: '1-3-2-1', value: '1-3-2-1' }, | ||
{ label: '1-3-2-2', value: '1-3-2-2' }, | ||
], | ||
}, | ||
{ label: '1-3-3', value: '1-3-3' }, | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
label: '2', | ||
value: '2', | ||
children: [ | ||
{ | ||
label: '2-1', | ||
value: '2-1', | ||
children: [ | ||
{ | ||
label: '2-1-1', | ||
value: '2-1-1', | ||
children: [ | ||
{ label: '2-1-1-1', value: '2-1-1-1' }, | ||
{ label: '2-1-1-2', value: '2-1-1-2' }, | ||
], | ||
}, | ||
{ label: '2-1-2', value: '2-1-2' }, | ||
], | ||
}, | ||
{ label: '2-2', value: '2-2' }, | ||
], | ||
}, | ||
{ label: '3', value: '3' }, | ||
]; |
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
Oops, something went wrong.