@xen-orchestra/web-core 0.1.1 → 0.3.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/lib/assets/css/_colors.pcss +148 -116
- package/lib/assets/css/_context.pcss +44 -44
- package/lib/assets/css/base.pcss +9 -8
- package/lib/assets/no-data.svg +67 -0
- package/lib/components/CardNumbers.vue +4 -4
- package/lib/components/LegendTitle.vue +3 -3
- package/lib/components/PowerStateIcon.vue +6 -6
- package/lib/components/UiCard.vue +2 -2
- package/lib/components/UiTag.vue +39 -31
- package/lib/components/backup-item/BackupItem.vue +5 -2
- package/lib/components/backup-state/BackupState.vue +4 -5
- package/lib/components/button/ButtonIcon.vue +40 -40
- package/lib/components/button/UiButton.vue +356 -93
- package/lib/components/card/CardSubtitle.vue +2 -2
- package/lib/components/card/CardTitle.vue +9 -4
- package/lib/components/cell-object/CellObject.vue +4 -4
- package/lib/components/cell-text/CellText.vue +3 -3
- package/lib/components/chip/ChipIcon.vue +6 -5
- package/lib/components/chip/UiChip.vue +20 -20
- package/lib/components/counter/VtsCounter.vue +147 -0
- package/lib/components/divider/Divider.vue +2 -2
- package/lib/components/donut-chart/DonutChart.vue +9 -9
- package/lib/components/dropdown/DropdownItem.vue +53 -73
- package/lib/components/dropdown/DropdownList.vue +1 -1
- package/lib/components/dropdown/DropdownTitle.vue +6 -6
- package/lib/components/head-bar/HeadBar.vue +6 -6
- package/lib/components/icon/ComplexIcon.vue +1 -1
- package/lib/components/icon/ObjectIcon.vue +19 -19
- package/lib/components/icon/VtsIcon.vue +96 -0
- package/lib/components/info/VtsInfo.vue +55 -0
- package/lib/components/input/UiInput.vue +22 -16
- package/lib/components/layout/LayoutSidebar.vue +3 -3
- package/lib/components/legend/LegendItem.vue +11 -11
- package/lib/components/menu/MenuItem.vue +4 -4
- package/lib/components/menu/MenuList.vue +6 -6
- package/lib/components/menu/MenuSeparator.vue +2 -2
- package/lib/components/menu/MenuTrigger.vue +6 -6
- package/lib/components/object-link/ObjectLink.vue +12 -12
- package/lib/components/query-search-bar/QuerySearchBar.vue +10 -3
- package/lib/components/stacked-bar/StackedBar.vue +1 -1
- package/lib/components/stacked-bar/StackedBarSegment.vue +7 -5
- package/lib/components/state-hero/NoDataHero.vue +11 -0
- package/lib/components/state-hero/StateHero.vue +6 -3
- package/lib/components/tab/TabItem.vue +11 -11
- package/lib/components/tab/TabList.vue +2 -2
- package/lib/components/table/ColumnTitle.vue +19 -16
- package/lib/components/table/UiTable.vue +5 -5
- package/lib/components/task/QuickTaskItem.vue +6 -6
- package/lib/components/task/QuickTaskList.vue +1 -1
- package/lib/components/task/QuickTaskPanel.vue +1 -1
- package/lib/components/task/QuickTaskTabBar.vue +22 -4
- package/lib/components/tooltip/TooltipItem.vue +15 -9
- package/lib/components/tree/TreeItemError.vue +1 -1
- package/lib/components/tree/TreeItemLabel.vue +12 -12
- package/lib/components/tree/TreeLine.vue +2 -2
- package/lib/components/tree/TreeLoadingItem.vue +4 -8
- package/lib/components/user/UserLink.vue +8 -8
- package/lib/components/user/UserLogo.vue +2 -2
- package/lib/composables/hide-route-query.composable.ts +10 -0
- package/lib/composables/route-query/actions/handle-delete.ts +9 -6
- package/lib/composables/route-query/actions/handle-set.ts +6 -4
- package/lib/composables/route-query/types.ts +10 -1
- package/lib/composables/sort-route-query.composable.ts +18 -0
- package/lib/composables/table/create-base-definition.ts +20 -0
- package/lib/composables/table/create-define-column.ts +26 -0
- package/lib/composables/table/create-sorting-definition.ts +48 -0
- package/lib/composables/table/create-visibility-definition.ts +44 -0
- package/lib/composables/table/type.ts +112 -0
- package/lib/composables/table.composable.ts +76 -0
- package/lib/layouts/CoreLayout.vue +3 -3
- package/lib/locales/en.json +3 -0
- package/lib/locales/fr.json +3 -0
- package/lib/types/backup.type.ts +1 -1
- package/lib/types/button.type.ts +1 -1
- package/lib/types/color.type.ts +2 -4
- package/lib/types/size.type.ts +0 -2
- package/lib/types/utility.type.ts +2 -0
- package/lib/utils/to-variants.util.ts +9 -0
- package/package.json +3 -3
- package/lib/components/UiCounter.vue +0 -89
- package/lib/components/icon/UiIcon.vue +0 -47
- package/lib/components/icon/VmIcon.vue +0 -30
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<!-- v1.0 -->
|
|
2
|
-
<template>
|
|
3
|
-
<UiSpinner v-if="busy" class="ui-icon" />
|
|
4
|
-
<FontAwesomeIcon v-else-if="icon !== undefined" :class="color" :fixed-width="fixedWidth" :icon class="ui-icon" />
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script lang="ts" setup>
|
|
8
|
-
import UiSpinner from '@core/components/UiSpinner.vue'
|
|
9
|
-
import type { Color } from '@core/types/color.type'
|
|
10
|
-
import type { IconDefinition } from '@fortawesome/fontawesome-common-types'
|
|
11
|
-
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
12
|
-
|
|
13
|
-
defineProps<{
|
|
14
|
-
busy?: boolean
|
|
15
|
-
icon?: IconDefinition
|
|
16
|
-
fixedWidth?: boolean
|
|
17
|
-
color?: Color
|
|
18
|
-
}>()
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style lang="postcss" scoped>
|
|
22
|
-
/* COLOR VARIANTS */
|
|
23
|
-
.ui-icon {
|
|
24
|
-
--color: currentColor;
|
|
25
|
-
|
|
26
|
-
&.info {
|
|
27
|
-
--color: var(--color-purple-base);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.success {
|
|
31
|
-
--color: var(--color-green-base);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&.warning {
|
|
35
|
-
--color: var(--color-orange-base);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.error {
|
|
39
|
-
--color: var(--color-red-base);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* IMPLEMENTATION */
|
|
44
|
-
.ui-icon {
|
|
45
|
-
color: var(--color);
|
|
46
|
-
}
|
|
47
|
-
</style>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!-- v1.0 -->
|
|
2
|
-
<template>
|
|
3
|
-
<FontAwesomeLayers class="vm-icon">
|
|
4
|
-
<UiIcon :icon="faDisplay" />
|
|
5
|
-
<PowerStateIcon :state class="state" />
|
|
6
|
-
</FontAwesomeLayers>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script lang="ts" setup>
|
|
10
|
-
import UiIcon from '@core/components/icon/UiIcon.vue'
|
|
11
|
-
import PowerStateIcon from '@core/components/PowerStateIcon.vue'
|
|
12
|
-
import type { POWER_STATE } from '@core/types/power-state.type'
|
|
13
|
-
import { faDisplay } from '@fortawesome/free-solid-svg-icons'
|
|
14
|
-
import { FontAwesomeLayers } from '@fortawesome/vue-fontawesome'
|
|
15
|
-
|
|
16
|
-
defineProps<{
|
|
17
|
-
state: POWER_STATE
|
|
18
|
-
}>()
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style lang="postcss" scoped>
|
|
22
|
-
.vm-icon {
|
|
23
|
-
flex-shrink: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.state {
|
|
27
|
-
font-size: 0.7em;
|
|
28
|
-
transform: translate(80%, 70%);
|
|
29
|
-
}
|
|
30
|
-
</style>
|