@rancher/shell 0.1.21 → 0.2.2
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/assets/styles/global/_button.scss +1 -0
- package/assets/translations/en-us.yaml +56 -10
- package/assets/translations/zh-hans.yaml +346 -117
- package/components/Carousel.vue +25 -9
- package/components/HarvesterServiceAddOnConfig.vue +10 -10
- package/components/Import.vue +7 -1
- package/components/ResourceList/index.vue +34 -14
- package/components/ResourceTable.vue +19 -0
- package/components/SortableTable/THead.vue +311 -70
- package/components/SortableTable/advanced-filtering.js +272 -0
- package/components/SortableTable/filtering.js +90 -29
- package/components/SortableTable/index.vue +480 -271
- package/components/form/MatchExpressions.vue +15 -3
- package/components/form/WorkloadPorts.vue +2 -2
- package/components/nav/Header.vue +14 -1
- package/config/product/settings.js +1 -0
- package/config/product/uiplugins.js +1 -0
- package/config/uiplugins.js +13 -0
- package/creators/app/init +2 -2
- package/creators/app/package.json +1 -1
- package/creators/pkg/package.json +1 -1
- package/detail/cis.cattle.io.clusterscan.vue +6 -2
- package/detail/provisioning.cattle.io.cluster.vue +3 -3
- package/edit/provisioning.cattle.io.cluster/DrainOptions.vue +0 -1
- package/edit/provisioning.cattle.io.cluster/MachinePool.vue +5 -3
- package/edit/provisioning.cattle.io.cluster/rke2.vue +25 -24
- package/edit/service.vue +1 -1
- package/list/node.vue +7 -2
- package/mixins/resource-manager.js +5 -0
- package/models/cluster.x-k8s.io.machinedeployment.js +8 -0
- package/models/management.cattle.io.cluster.js +14 -1
- package/nuxt.config.js +113 -108
- package/package.json +1 -1
- package/pages/c/_cluster/apps/charts/index.vue +1 -1
- package/pages/c/_cluster/apps/charts/install.vue +106 -32
- package/pages/c/_cluster/settings/performance.vue +11 -0
- package/pages/c/_cluster/uiplugins/InstallDialog.vue +16 -2
- package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +5 -2
- package/pages/c/_cluster/uiplugins/RemoveUIPlugins.vue +28 -6
- package/pages/c/_cluster/uiplugins/UninstallDialog.vue +1 -1
- package/pages/c/_cluster/uiplugins/index.vue +49 -12
- package/promptRemove/mixin/roleDeletionCheck.js +15 -1
- package/scripts/record-deps.js +3 -3
- package/scripts/test-plugins-build.sh +1 -0
- package/scripts/typegen.sh +2 -2
- package/store/type-map.js +13 -2
- package/types/vue-shim.d +20 -0
- package/utils/create-yaml.js +30 -6
- package/creators/update/yarn-error.log +0 -54
- package/rancher-components/BadgeState/BadgeState.spec.ts +0 -12
- package/rancher-components/BadgeState/BadgeState.vue +0 -107
- package/rancher-components/BadgeState/index.ts +0 -1
- package/rancher-components/Banner/Banner.test.ts +0 -13
- package/rancher-components/Banner/Banner.vue +0 -163
- package/rancher-components/Banner/index.ts +0 -1
- package/rancher-components/Card/Card.vue +0 -150
- package/rancher-components/Card/index.ts +0 -1
- package/rancher-components/Form/Checkbox/Checkbox.test.ts +0 -77
- package/rancher-components/Form/Checkbox/Checkbox.vue +0 -395
- package/rancher-components/Form/Checkbox/index.ts +0 -1
- package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +0 -29
- package/rancher-components/Form/LabeledInput/LabeledInput.vue +0 -343
- package/rancher-components/Form/LabeledInput/index.ts +0 -1
- package/rancher-components/Form/Radio/RadioButton.vue +0 -270
- package/rancher-components/Form/Radio/RadioGroup.vue +0 -235
- package/rancher-components/Form/Radio/index.ts +0 -2
- package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +0 -168
- package/rancher-components/Form/TextArea/index.ts +0 -1
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +0 -107
- package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +0 -137
- package/rancher-components/Form/ToggleSwitch/index.ts +0 -1
- package/rancher-components/Form/index.ts +0 -5
- package/rancher-components/LabeledTooltip/LabeledTooltip.vue +0 -137
- package/rancher-components/LabeledTooltip/index.ts +0 -1
- package/rancher-components/components/BadgeState/BadgeState.spec.ts +0 -12
- package/rancher-components/components/BadgeState/BadgeState.vue +0 -107
- package/rancher-components/components/BadgeState/index.ts +0 -1
- package/rancher-components/components/Banner/Banner.test.ts +0 -13
- package/rancher-components/components/Banner/Banner.vue +0 -163
- package/rancher-components/components/Banner/index.ts +0 -1
- package/rancher-components/components/Card/Card.vue +0 -150
- package/rancher-components/components/Card/index.ts +0 -1
- package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +0 -77
- package/rancher-components/components/Form/Checkbox/Checkbox.vue +0 -395
- package/rancher-components/components/Form/Checkbox/index.ts +0 -1
- package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +0 -29
- package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +0 -343
- package/rancher-components/components/Form/LabeledInput/index.ts +0 -1
- package/rancher-components/components/Form/Radio/RadioButton.vue +0 -270
- package/rancher-components/components/Form/Radio/RadioGroup.vue +0 -235
- package/rancher-components/components/Form/Radio/index.ts +0 -2
- package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +0 -168
- package/rancher-components/components/Form/TextArea/index.ts +0 -1
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +0 -107
- package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +0 -137
- package/rancher-components/components/Form/ToggleSwitch/index.ts +0 -1
- package/rancher-components/components/Form/index.ts +0 -5
- package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +0 -137
- 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';
|