@appscode/design-system 2.2.7 → 2.2.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -13,7 +13,7 @@ export interface AcTableCell {
13
13
  }
14
14
  export interface AcTableCol {
15
15
  name: string;
16
- type: "object" | "string" | "number" | "date" | "integer";
16
+ type: "object" | "string" | "number" | "date" | "integer" | "boolean";
17
17
  priority: number;
18
18
  width?: number;
19
19
  pathTemplate?: string;
@@ -13,7 +13,7 @@ interface Props {
13
13
  fullWidth?: number;
14
14
  columnStriped?: boolean;
15
15
  modifierClass?: string;
16
- hasCheckbox?: boolean;
16
+ isCustom?: boolean;
17
17
  }
18
18
 
19
19
  const props = withDefaults(defineProps<Props>(), {
@@ -27,7 +27,7 @@ const props = withDefaults(defineProps<Props>(), {
27
27
  fullWidth: 1920,
28
28
  columnStriped: false,
29
29
  modifierClass: "",
30
- hasCheckbox: false,
30
+ isCustom: false,
31
31
  });
32
32
 
33
33
  const emit = defineEmits(["sort", "scroller"]);
@@ -162,8 +162,8 @@ onUpdated(() => {
162
162
  }"
163
163
  @click.prevent="headerSortables[idx].enabled && emitSortEvent(idx)"
164
164
  >
165
- <span v-if="hasCheckbox && headerLabels[idx] === 'checkbox'">
166
- <slot name="checkbox" />
165
+ <span v-if="isCustom && headerLabels[idx] === 'Custom'">
166
+ <slot name="custom" v-bind="{ headerLabels, idx }" />
167
167
  </span>
168
168
  <span v-else>
169
169
  {{ headerLabels[idx] }}