@dataloop-ai/components 0.15.5 → 0.15.7
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
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<dl-icon
|
|
9
9
|
class="expand-icon"
|
|
10
10
|
:size="$props.fontSize"
|
|
11
|
-
:class="{ expanded: isOpen }"
|
|
12
|
-
icon="icon-dl-right-chevron"
|
|
11
|
+
:class="{ expanded: isOpen, rightSide }"
|
|
12
|
+
:icon="rightSide ? 'icon-dl-down-chevron' : 'icon-dl-right-chevron'"
|
|
13
13
|
:color="titleColor"
|
|
14
14
|
/>
|
|
15
15
|
<div class="header-content">
|
|
@@ -48,6 +48,7 @@ import DlTooltip from '../DlTooltip.vue'
|
|
|
48
48
|
import { defineComponent, ref } from 'vue-demi'
|
|
49
49
|
import { getColor } from '../../utils'
|
|
50
50
|
import { useSizeObserver } from '../../hooks/use-size-observer'
|
|
51
|
+
|
|
51
52
|
export default defineComponent({
|
|
52
53
|
name: 'AccordionHeader',
|
|
53
54
|
components: {
|
|
@@ -106,7 +107,7 @@ export default defineComponent({
|
|
|
106
107
|
|
|
107
108
|
<style scoped lang="scss">
|
|
108
109
|
.accordion-header {
|
|
109
|
-
padding:
|
|
110
|
+
padding: 12px 16px;
|
|
110
111
|
cursor: pointer;
|
|
111
112
|
font-size: var(--dl-accordion-header-fontsize);
|
|
112
113
|
display: flex;
|
|
@@ -141,6 +142,16 @@ export default defineComponent({
|
|
|
141
142
|
display: flex !important;
|
|
142
143
|
color: var(--dl-expand-icon-color);
|
|
143
144
|
transition: all 300ms;
|
|
145
|
+
|
|
146
|
+
&.rightSide {
|
|
147
|
+
padding-left: 10px;
|
|
148
|
+
padding-right: 16px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.expanded.rightSide {
|
|
152
|
+
transform: rotate(180deg);
|
|
153
|
+
}
|
|
154
|
+
|
|
144
155
|
&.expanded {
|
|
145
156
|
transform: rotate(90deg);
|
|
146
157
|
}
|
|
@@ -94,7 +94,7 @@ export default defineComponent({
|
|
|
94
94
|
color: { type: String, default: 'dl-color-secondary' },
|
|
95
95
|
disabled: { type: Boolean, default: false },
|
|
96
96
|
id: { type: [String, Number], default: null },
|
|
97
|
-
modelValue: { type: ValueTypes, required:
|
|
97
|
+
modelValue: { type: ValueTypes, required: false, default: null },
|
|
98
98
|
label: { default: null, type: String },
|
|
99
99
|
subLabel: { type: String, default: '' },
|
|
100
100
|
toggleIndeterminate: { type: Boolean, default: false },
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
<dl-accordion
|
|
14
14
|
additional-info="Some additional info"
|
|
15
15
|
title="Uncontrolled with Lorem Ipsum"
|
|
16
|
+
:right-side="true"
|
|
17
|
+
font-size="12px"
|
|
18
|
+
title-color="dl-color-medium"
|
|
16
19
|
>
|
|
17
20
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
|
|
18
21
|
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim
|