@dataloop-ai/components 0.18.36 → 0.18.38

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.18.36",
3
+ "version": "0.18.38",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -12,12 +12,7 @@
12
12
  />
13
13
  <div
14
14
  class="dialog-wrapper"
15
- :style="{
16
- width: Number(width) ? `${width}px` : width,
17
- height: Number(height) ? `${height}px` : height,
18
- transform: `translate(${draggableOptions.draggableX}px, ${draggableOptions.draggableY}px)`,
19
- maxHeight: !fullscreen && !fullHeight ? '90vh' : ''
20
- }"
15
+ :style="wrapperStyles"
21
16
  :class="{
22
17
  'dialog-wrapper--fullscreen': fullscreen,
23
18
  'dialog-wrapper--fullheight': fullHeight,
@@ -164,6 +159,21 @@ export default defineComponent({
164
159
  `${this.zIndex}` ?? 'var(--dl-z-index-dialog)'
165
160
  }
166
161
  },
162
+ wrapperStyles() {
163
+ return {
164
+ ...{
165
+ width: Number(this.width) ? `${this.width}px` : this.width,
166
+ height: Number(this.height)
167
+ ? `${this.height}px`
168
+ : this.height,
169
+ maxHeight:
170
+ !this.fullscreen && !this.fullHeight ? '90vh' : ''
171
+ },
172
+ ...(this.draggable && {
173
+ transform: `translate(${this.draggableOptions.draggableX}px, ${this.draggableOptions.draggableY}px)`
174
+ })
175
+ }
176
+ },
167
177
  iconStyles(): Record<string, string> {
168
178
  return {
169
179
  cursor: this.draggableOptions.draggableCursor,
@@ -14,7 +14,7 @@ import { defineComponent, PropType } from 'vue-demi'
14
14
  import { getColor } from '../../../utils'
15
15
  import { DlTransformOptions } from '../../shared/types'
16
16
 
17
- type Variant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p'
17
+ type Variant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div'
18
18
 
19
19
  const sizes = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'body', 'small']
20
20
 
@@ -77,7 +77,7 @@ export default defineComponent({
77
77
  }
78
78
  } else {
79
79
  if (sizes.includes(this.variant)) {
80
- classes.push(`dl-typography--${this.size}`)
80
+ classes.push(`dl-typography--${this.variant}`)
81
81
  } else {
82
82
  classes.push(`dl-typography--body`)
83
83
  }
@@ -121,6 +121,7 @@ export default defineComponent({
121
121
  font-size: var(--dl-font-size-small);
122
122
  }
123
123
 
124
+ // important needed above for sizing of h tags.. quasar conflict
124
125
  // to deal with quasar conflicts.
125
126
  line-height: initial !important;
126
127
  }
@@ -27,21 +27,38 @@
27
27
  icon="icon-dl-search"
28
28
  @click.stop="onClick"
29
29
  />
30
+
31
+ <dl-input
32
+ v-model="inputValue"
33
+ style="margin-top: 10px"
34
+ title="Custom Label"
35
+ />
36
+ <DlIcon
37
+ size="50px"
38
+ :icon="inputValue"
39
+ />
30
40
  </div>
31
41
  </template>
32
42
 
33
43
  <script lang="ts">
34
- import { defineComponent } from 'vue-demi'
35
- import { DlIcon } from '../components'
44
+ import { defineComponent, ref } from 'vue-demi'
45
+ import { DlIcon, DlInput } from '../components'
36
46
  export default defineComponent({
37
47
  name: 'DlIconDemo',
38
48
  components: {
39
- DlIcon
49
+ DlIcon,
50
+ DlInput
40
51
  },
41
- methods: {
42
- onClick() {
52
+ setup() {
53
+ const inputValue = ref('icon-dl-search')
54
+
55
+ const onClick = () => {
43
56
  console.log('clicked')
44
57
  }
58
+ return {
59
+ onClick,
60
+ inputValue
61
+ }
45
62
  }
46
63
  })
47
64
  </script>
@@ -17,6 +17,7 @@
17
17
  <dl-page-layout>
18
18
  <template #header>
19
19
  <dl-page-layout-header
20
+ title="testsetest"
20
21
  :counters="[
21
22
  {
22
23
  value: 200,
@@ -36,12 +37,12 @@
36
37
  }
37
38
  ]"
38
39
  >
39
- <template #title>
40
- test title
40
+ <template #actions>
41
41
  <dl-button
42
- label="testsetests"
43
42
  outlined
44
- dense
43
+ style="margin-left: 10px"
44
+ padding="5px"
45
+ label="Switch to Basic Browser"
45
46
  />
46
47
  </template>
47
48
  <template #subtitle>
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="page-layout-header">
3
- <div class="page-layout-header__title">
3
+ <div class="page-layout-header__title-container">
4
4
  <dl-typography
5
5
  color="dl-color-lighter"
6
6
  variant="h6"
@@ -9,15 +9,17 @@
9
9
  {{ subTitle }}
10
10
  </slot>
11
11
  </dl-typography>
12
- <dl-typography
13
- color="dl-color-darker"
14
- variant="h1"
15
- style="padding-bottom: 10px"
16
- >
17
- <slot name="title">
18
- {{ title }}
19
- </slot>
20
- </dl-typography>
12
+ <div class="page-layout-header__title">
13
+ <dl-typography
14
+ color="dl-color-darker"
15
+ variant="h1"
16
+ >
17
+ <slot name="title">
18
+ {{ title }}
19
+ </slot>
20
+ </dl-typography>
21
+ <slot name="actions" />
22
+ </div>
21
23
  </div>
22
24
  <div
23
25
  v-if="counters.length > 0"
@@ -69,7 +71,7 @@ export default defineComponent({
69
71
  justify-content: center;
70
72
  background-color: var(--dl-color-body-background);
71
73
 
72
- &__title {
74
+ &__title-container {
73
75
  display: flex;
74
76
  height: 100%;
75
77
  padding-left: 25px;
@@ -78,11 +80,17 @@ export default defineComponent({
78
80
  flex-grow: 1;
79
81
  }
80
82
 
83
+ &__title {
84
+ padding-bottom: 10px;
85
+ display: flex;
86
+ align-items: center;
87
+ }
88
+
81
89
  &__counters {
82
90
  display: flex;
83
91
  height: 100%;
84
92
  align-items: center;
85
- justify-content: end;
93
+ justify-content: flex-end;
86
94
  padding-right: 10px;
87
95
  }
88
96
  }