@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.
Files changed (82) hide show
  1. package/lib/assets/css/_colors.pcss +148 -116
  2. package/lib/assets/css/_context.pcss +44 -44
  3. package/lib/assets/css/base.pcss +9 -8
  4. package/lib/assets/no-data.svg +67 -0
  5. package/lib/components/CardNumbers.vue +4 -4
  6. package/lib/components/LegendTitle.vue +3 -3
  7. package/lib/components/PowerStateIcon.vue +6 -6
  8. package/lib/components/UiCard.vue +2 -2
  9. package/lib/components/UiTag.vue +39 -31
  10. package/lib/components/backup-item/BackupItem.vue +5 -2
  11. package/lib/components/backup-state/BackupState.vue +4 -5
  12. package/lib/components/button/ButtonIcon.vue +40 -40
  13. package/lib/components/button/UiButton.vue +356 -93
  14. package/lib/components/card/CardSubtitle.vue +2 -2
  15. package/lib/components/card/CardTitle.vue +9 -4
  16. package/lib/components/cell-object/CellObject.vue +4 -4
  17. package/lib/components/cell-text/CellText.vue +3 -3
  18. package/lib/components/chip/ChipIcon.vue +6 -5
  19. package/lib/components/chip/UiChip.vue +20 -20
  20. package/lib/components/counter/VtsCounter.vue +147 -0
  21. package/lib/components/divider/Divider.vue +2 -2
  22. package/lib/components/donut-chart/DonutChart.vue +9 -9
  23. package/lib/components/dropdown/DropdownItem.vue +53 -73
  24. package/lib/components/dropdown/DropdownList.vue +1 -1
  25. package/lib/components/dropdown/DropdownTitle.vue +6 -6
  26. package/lib/components/head-bar/HeadBar.vue +6 -6
  27. package/lib/components/icon/ComplexIcon.vue +1 -1
  28. package/lib/components/icon/ObjectIcon.vue +19 -19
  29. package/lib/components/icon/VtsIcon.vue +96 -0
  30. package/lib/components/info/VtsInfo.vue +55 -0
  31. package/lib/components/input/UiInput.vue +22 -16
  32. package/lib/components/layout/LayoutSidebar.vue +3 -3
  33. package/lib/components/legend/LegendItem.vue +11 -11
  34. package/lib/components/menu/MenuItem.vue +4 -4
  35. package/lib/components/menu/MenuList.vue +6 -6
  36. package/lib/components/menu/MenuSeparator.vue +2 -2
  37. package/lib/components/menu/MenuTrigger.vue +6 -6
  38. package/lib/components/object-link/ObjectLink.vue +12 -12
  39. package/lib/components/query-search-bar/QuerySearchBar.vue +10 -3
  40. package/lib/components/stacked-bar/StackedBar.vue +1 -1
  41. package/lib/components/stacked-bar/StackedBarSegment.vue +7 -5
  42. package/lib/components/state-hero/NoDataHero.vue +11 -0
  43. package/lib/components/state-hero/StateHero.vue +6 -3
  44. package/lib/components/tab/TabItem.vue +11 -11
  45. package/lib/components/tab/TabList.vue +2 -2
  46. package/lib/components/table/ColumnTitle.vue +19 -16
  47. package/lib/components/table/UiTable.vue +5 -5
  48. package/lib/components/task/QuickTaskItem.vue +6 -6
  49. package/lib/components/task/QuickTaskList.vue +1 -1
  50. package/lib/components/task/QuickTaskPanel.vue +1 -1
  51. package/lib/components/task/QuickTaskTabBar.vue +22 -4
  52. package/lib/components/tooltip/TooltipItem.vue +15 -9
  53. package/lib/components/tree/TreeItemError.vue +1 -1
  54. package/lib/components/tree/TreeItemLabel.vue +12 -12
  55. package/lib/components/tree/TreeLine.vue +2 -2
  56. package/lib/components/tree/TreeLoadingItem.vue +4 -8
  57. package/lib/components/user/UserLink.vue +8 -8
  58. package/lib/components/user/UserLogo.vue +2 -2
  59. package/lib/composables/hide-route-query.composable.ts +10 -0
  60. package/lib/composables/route-query/actions/handle-delete.ts +9 -6
  61. package/lib/composables/route-query/actions/handle-set.ts +6 -4
  62. package/lib/composables/route-query/types.ts +10 -1
  63. package/lib/composables/sort-route-query.composable.ts +18 -0
  64. package/lib/composables/table/create-base-definition.ts +20 -0
  65. package/lib/composables/table/create-define-column.ts +26 -0
  66. package/lib/composables/table/create-sorting-definition.ts +48 -0
  67. package/lib/composables/table/create-visibility-definition.ts +44 -0
  68. package/lib/composables/table/type.ts +112 -0
  69. package/lib/composables/table.composable.ts +76 -0
  70. package/lib/layouts/CoreLayout.vue +3 -3
  71. package/lib/locales/en.json +3 -0
  72. package/lib/locales/fr.json +3 -0
  73. package/lib/types/backup.type.ts +1 -1
  74. package/lib/types/button.type.ts +1 -1
  75. package/lib/types/color.type.ts +2 -4
  76. package/lib/types/size.type.ts +0 -2
  77. package/lib/types/utility.type.ts +2 -0
  78. package/lib/utils/to-variants.util.ts +9 -0
  79. package/package.json +3 -3
  80. package/lib/components/UiCounter.vue +0 -89
  81. package/lib/components/icon/UiIcon.vue +0 -47
  82. 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>