@dataloop-ai/components 0.19.61 → 0.19.63

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": "@dataloop-ai/components",
3
- "version": "0.19.61",
3
+ "version": "0.19.63",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -10,7 +10,7 @@
10
10
  :size="counterFontSizeComputed"
11
11
  :style="typographyStyles"
12
12
  >
13
- {{ formatCounter(counter) }}
13
+ {{ formatCounter(counter) }} {{ hasValue ? prefix : '' }}
14
14
  </dl-typography>
15
15
  </div>
16
16
  <div class="kpi_box__title">
@@ -124,7 +124,11 @@ export default defineComponent({
124
124
  default: false,
125
125
  required: false
126
126
  },
127
- dense: Boolean
127
+ dense: Boolean,
128
+ prefix: {
129
+ type: String,
130
+ default: null
131
+ }
128
132
  },
129
133
  setup(props) {
130
134
  const progressValue = (progress: DlKpiProgressType) => {
@@ -815,7 +815,7 @@
815
815
  </div>
816
816
 
817
817
  <div
818
- v-if="!hideBottom"
818
+ v-if="!hideBottom || (nothingToDisplay && !hideNoData)"
819
819
  :class="bottomClasses"
820
820
  >
821
821
  <div
@@ -506,6 +506,30 @@
506
506
  no-data-label="NOoooooOOOOOoooooo"
507
507
  />
508
508
  </div>
509
+ <div>
510
+ <p>With empty data virtual scroll</p>
511
+ <DlTable
512
+ :rows="[]"
513
+ :columns="tableColumns"
514
+ title="empty data"
515
+ no-data-label="NOoooooOOOOOoooooo"
516
+ virtual-scroll
517
+ />
518
+ </div>
519
+ <div>
520
+ <p>With empty data virtual scroll no data slot</p>
521
+ <DlTable
522
+ :rows="[]"
523
+ :columns="tableColumns"
524
+ title="empty data"
525
+ virtual-scroll
526
+ hide-bottom
527
+ >
528
+ <template #no-data>
529
+ <div>&lt slot#no-data ></div>
530
+ </template>
531
+ </DlTable>
532
+ </div>
509
533
  <div>
510
534
  <p>With alignments</p>
511
535
  <DlTable