@dataloop-ai/components 0.19.90 → 0.19.92

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.90",
3
+ "version": "0.19.92",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -803,7 +803,7 @@ export default defineComponent({
803
803
  return modelValue.value?.toString()
804
804
  })
805
805
 
806
- const onModelValueChange = (val: string) => {
806
+ const onModelValueChange = (val: string | number) => {
807
807
  if (!isInternalChange.value && val !== null && val !== undefined) {
808
808
  if (readonly.value || disabled.value) {
809
809
  return
@@ -830,10 +830,17 @@ export default defineComponent({
830
830
  return debounced
831
831
  })
832
832
 
833
+ const firstTime = ref(true)
834
+
833
835
  watch(
834
836
  modelValue,
835
- (val) => {
837
+ (val: string | number) => {
836
838
  nextTick(() => {
839
+ if (firstTime.value) {
840
+ firstTime.value = false
841
+ onModelValueChange(val)
842
+ return
843
+ }
837
844
  debouncedOnModelValueChange.value(val)
838
845
  })
839
846
  },
@@ -16,7 +16,7 @@
16
16
  >
17
17
  <div
18
18
  :for="individualProps[index].id"
19
- style="display: inline-flex; gap: 5px"
19
+ style="display: inline-flex; margin-right: 5px"
20
20
  >
21
21
  <span>{{ option.label }}</span>
22
22
  <span
@@ -180,6 +180,7 @@
180
180
  icon="icon-dl-column"
181
181
  tooltip="Manage columns"
182
182
  :disabled="isDataEmpty"
183
+ padding="0"
183
184
  >
184
185
  <slot
185
186
  name="header-cell-visible-columns-menu"
@@ -570,6 +571,7 @@
570
571
  icon="icon-dl-column"
571
572
  tooltip="Manage columns"
572
573
  :disabled="isDataEmpty"
574
+ padding="0"
573
575
  >
574
576
  <slot
575
577
  name="header-cell-visible-columns-menu"
@@ -276,6 +276,7 @@
276
276
  line-height: 14px;
277
277
 
278
278
  .dl-table__control {
279
+ width: 100%;
279
280
  min-height: 24px;
280
281
  }
281
282
  }