@appscode/design-system 2.0.89 → 2.0.91
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/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
3
|
const FooterItems = defineAsyncComponent(() => import("./FooterItems.vue"));
|
|
4
4
|
const FooterItem = defineAsyncComponent(() => import("./FooterItem.vue"));
|
|
5
5
|
const HeroiconsCheckBadge = defineAsyncComponent(() => import("~icons/heroicons/check-badge"));
|
|
6
6
|
const HeroiconsCrossBadge = defineAsyncComponent(() => import("~icons/heroicons/x-circle"));
|
|
7
|
-
const
|
|
7
|
+
const MdiMinusCircleOutline = defineAsyncComponent(() => import("~icons/mdi/minus-circle-outline"));
|
|
8
|
+
|
|
8
9
|
interface Props {
|
|
9
10
|
statusInfo?: Array<Record<string, string>>;
|
|
10
11
|
}
|
|
@@ -20,7 +21,8 @@ withDefaults(defineProps<Props>(), {
|
|
|
20
21
|
<span class="icon">
|
|
21
22
|
<HeroiconsCheckBadge v-if="item.color === `has-text-success`" />
|
|
22
23
|
<i v-else-if="item.color === `has-text-warning`" class="fa fa-refresh fa-spin fa-fw"></i>
|
|
23
|
-
<HeroiconsCrossBadge v-else />
|
|
24
|
+
<HeroiconsCrossBadge v-else-if="item.color === 'has-text-danger'" />
|
|
25
|
+
<MdiMinusCircleOutline v-else />
|
|
24
26
|
</span>
|
|
25
27
|
<span>{{ item.label }}</span>
|
|
26
28
|
</footer-item>
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
tableHeaders?: Array<AcTableCol>;
|
|
9
9
|
collapsible?: boolean;
|
|
10
10
|
actionable?: boolean;
|
|
11
|
+
actionableHeader?: string;
|
|
11
12
|
isDynamicWidthTable?: boolean;
|
|
12
13
|
fullWidth?: number;
|
|
13
14
|
columnStriped?: boolean;
|
|
@@ -20,6 +21,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
20
21
|
tableHeaders: () => [],
|
|
21
22
|
collapsible: false,
|
|
22
23
|
actionable: false,
|
|
24
|
+
actionableHeader: "",
|
|
23
25
|
isDynamicWidthTable: false,
|
|
24
26
|
fullWidth: 1920,
|
|
25
27
|
columnStriped: false,
|
|
@@ -170,7 +172,8 @@ onUpdated(() => {
|
|
|
170
172
|
<i class="fa fa-exclamation-triangle" />
|
|
171
173
|
</span>
|
|
172
174
|
</th>
|
|
173
|
-
<th
|
|
175
|
+
<th v-if="actionable && actionableHeader">{{ actionableHeader }}</th>
|
|
176
|
+
<th v-else-if="actionable"></th>
|
|
174
177
|
<fake-table-cell v-if="fakeCellWidth > 0" :is-header-cell="true" :fake-cell-width="fakeCellWidth" />
|
|
175
178
|
</table-row>
|
|
176
179
|
</thead>
|