@rancher/shell 0.2.1 → 0.2.3

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 (56) hide show
  1. package/assets/translations/en-us.yaml +9 -5
  2. package/assets/translations/zh-hans.yaml +328 -117
  3. package/components/Carousel.vue +25 -9
  4. package/components/Import.vue +7 -1
  5. package/components/SortableTable/index.vue +7 -1
  6. package/components/form/MatchExpressions.vue +15 -3
  7. package/components/nav/Header.vue +14 -1
  8. package/detail/cis.cattle.io.clusterscan.vue +6 -2
  9. package/detail/provisioning.cattle.io.cluster.vue +2 -2
  10. package/edit/provisioning.cattle.io.cluster/ACE.vue +1 -2
  11. package/edit/provisioning.cattle.io.cluster/MachinePool.vue +5 -3
  12. package/list/node.vue +7 -2
  13. package/mixins/resource-manager.js +5 -0
  14. package/models/cluster.x-k8s.io.machinedeployment.js +8 -0
  15. package/models/management.cattle.io.cluster.js +6 -1
  16. package/nuxt.config.js +113 -108
  17. package/package.json +1 -1
  18. package/pages/c/_cluster/apps/charts/index.vue +1 -1
  19. package/pages/c/_cluster/apps/charts/install.vue +24 -38
  20. package/pages/c/_cluster/settings/performance.vue +11 -0
  21. package/pages/c/_cluster/uiplugins/InstallDialog.vue +15 -1
  22. package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +28 -6
  23. package/pages/c/_cluster/uiplugins/index.vue +1 -1
  24. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +7 -7
  25. package/scripts/publish-shell.sh +1 -1
  26. package/scripts/test-plugins-build.sh +1 -0
  27. package/scripts/typegen.sh +2 -2
  28. package/store/type-map.js +11 -2
  29. package/types/vue-shim.d +20 -0
  30. package/utils/create-yaml.js +30 -6
  31. package/creators/update/yarn-error.log +0 -54
  32. package/rancher-components/components/BadgeState/BadgeState.spec.ts +0 -12
  33. package/rancher-components/components/BadgeState/BadgeState.vue +0 -107
  34. package/rancher-components/components/BadgeState/index.ts +0 -1
  35. package/rancher-components/components/Banner/Banner.test.ts +0 -13
  36. package/rancher-components/components/Banner/Banner.vue +0 -163
  37. package/rancher-components/components/Banner/index.ts +0 -1
  38. package/rancher-components/components/Card/Card.vue +0 -150
  39. package/rancher-components/components/Card/index.ts +0 -1
  40. package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +0 -77
  41. package/rancher-components/components/Form/Checkbox/Checkbox.vue +0 -395
  42. package/rancher-components/components/Form/Checkbox/index.ts +0 -1
  43. package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +0 -29
  44. package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +0 -343
  45. package/rancher-components/components/Form/LabeledInput/index.ts +0 -1
  46. package/rancher-components/components/Form/Radio/RadioButton.vue +0 -270
  47. package/rancher-components/components/Form/Radio/RadioGroup.vue +0 -235
  48. package/rancher-components/components/Form/Radio/index.ts +0 -2
  49. package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +0 -168
  50. package/rancher-components/components/Form/TextArea/index.ts +0 -1
  51. package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +0 -107
  52. package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +0 -137
  53. package/rancher-components/components/Form/ToggleSwitch/index.ts +0 -1
  54. package/rancher-components/components/Form/index.ts +0 -5
  55. package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +0 -137
  56. package/rancher-components/components/LabeledTooltip/index.ts +0 -1
@@ -1,137 +0,0 @@
1
- <script lang="ts">
2
- import Vue from 'vue';
3
-
4
- export default Vue.extend({
5
- props: {
6
- /**
7
- * The Labeled Tooltip value.
8
- */
9
- value: {
10
- type: [String, Object],
11
- default: null
12
- },
13
-
14
- /**
15
- * The status for the Labeled Tooltip. Controls the Labeled Tooltip class.
16
- * @values info, success, warning, error
17
- */
18
- status: {
19
- type: String,
20
- default: 'error'
21
- },
22
-
23
- /**
24
- * Displays the Labeled Tooltip on mouse hover.
25
- */
26
- hover: {
27
- type: Boolean,
28
- default: true
29
- }
30
- },
31
- computed: {
32
- iconClass() {
33
- return this.status === 'error' ? 'icon-warning' : 'icon-info';
34
- }
35
- }
36
- });
37
- </script>
38
-
39
- <template>
40
- <div ref="container" class="labeled-tooltip" :class="{[status]: true, hoverable: hover}">
41
- <template v-if="hover">
42
- <i v-tooltip="value.content ? { ...{content: value.content, classes: [`tooltip-${status}`]}, ...value } : value" :class="{'hover':!value, [iconClass]: true}" class="icon status-icon" />
43
- </template>
44
- <template v-else>
45
- <i :class="{'hover':!value}" class="icon status-icon" />
46
- <div v-if="value" class="tooltip" x-placement="bottom">
47
- <div class="tooltip-arrow" />
48
- <div class="tooltip-inner">
49
- {{ value }}
50
- </div>
51
- </div>
52
- </template>
53
- </div>
54
- </template>
55
-
56
- <style lang='scss'>
57
- .labeled-tooltip {
58
- position: absolute;
59
- width: 100%;
60
- height: 100%;
61
- left: 0;
62
- top: 0;
63
-
64
- &.hoverable {
65
- height: 0%;
66
- }
67
-
68
- .status-icon {
69
- position: absolute;
70
- right: 30px;
71
- top: $input-padding-lg;
72
- font-size: 20px;
73
- z-index: z-index(hoverOverContent);
74
- }
75
-
76
- .tooltip {
77
- position: absolute;
78
- width: calc(100% + 2px);
79
- top: calc(100% + 6px);
80
-
81
- .tooltip-arrow {
82
- right: 30px;
83
- }
84
-
85
- .tooltip-inner {
86
- padding: 10px;
87
- }
88
- }
89
-
90
- @mixin tooltipColors($color) {
91
- .status-icon {
92
- color: $color;
93
- }
94
- .tooltip {
95
- .tooltip-inner {
96
- color: var(--input-bg);
97
- background: $color;
98
- border-color: $color;
99
- }
100
-
101
- .tooltip-arrow {
102
- border-bottom-color: $color;
103
- &:after {
104
- border: none;
105
- }
106
- }
107
- }
108
- }
109
-
110
- &.error {
111
- @include tooltipColors(var(--error));
112
-
113
- .status-icon {
114
- top: 7px;
115
- right: 5px;
116
- }
117
- }
118
-
119
- &.warning {
120
- @include tooltipColors(var(--warning));
121
- }
122
-
123
- &.success {
124
- @include tooltipColors(var(--success));
125
- }
126
- }
127
-
128
- // Ensure code blocks inside tootips don't look awful
129
- .tooltip {
130
- .tooltip-inner {
131
- > pre {
132
- padding: 2px;
133
- vertical-align: middle;
134
- }
135
- }
136
- }
137
- </style>
@@ -1 +0,0 @@
1
- export { default as LabeledTooltip } from './LabeledTooltip.vue';