@bimdata/design-system 3.0.0-beta.1 → 3.0.0-beta.10

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.
Files changed (72) hide show
  1. package/package.json +10 -10
  2. package/src/BIMDataComponents/BIMDataAvatar/BIMDataAvatar.vue +93 -0
  3. package/src/BIMDataComponents/BIMDataButton/BIMDataButton.css +28 -8
  4. package/src/BIMDataComponents/BIMDataCheckbox/BIMDataCheckbox.vue +9 -8
  5. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.css +8 -0
  6. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.vue +12 -1
  7. package/src/BIMDataComponents/BIMDataDatePicker/{_BIMDataDatePicker.scss → BIMDataDatePicker.css} +117 -42
  8. package/src/BIMDataComponents/BIMDataDatePicker/BIMDataDatePicker.vue +13 -4
  9. package/src/BIMDataComponents/BIMDataDatePicker/components/DateInput.vue +11 -2
  10. package/src/BIMDataComponents/BIMDataDropdownList/BIMDataDropdownList.vue +18 -12
  11. package/src/BIMDataComponents/BIMDataDropdownMenu/BIMDataDropdownMenu.css +1 -1
  12. package/src/BIMDataComponents/BIMDataDropdownMenu/BIMDataDropdownMenu.vue +10 -5
  13. package/src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue +10 -0
  14. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/DeniedFile.vue +1 -1
  15. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/PieGraph.vue +0 -1
  16. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Translate.vue +2 -2
  17. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/ValidatedFile.vue +1 -1
  18. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/BcfPolychrome.vue +0 -1
  19. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/CreateWindowPolychrome.vue +0 -1
  20. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/DocInfoPolychrome.vue +0 -2
  21. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileDwgPolychrome.vue +3 -4
  22. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileDxfPolychrome.vue +3 -4
  23. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileIfcPolychrome.vue +3 -4
  24. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileImagePolychrome.vue +3 -4
  25. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileJpegPolychrome.vue +4 -5
  26. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePdfPolychrome.vue +1 -2
  27. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePhotospherePolychrome.vue +3 -4
  28. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePlanPolychrome.vue +1 -2
  29. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePngPolychrome.vue +3 -4
  30. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePointCloudPolychrome.vue +1 -2
  31. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FolderPolychrome.vue +0 -1
  32. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/StructurePolychrome.vue +0 -1
  33. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/Viewer2DPolychrome.vue +0 -1
  34. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/Viewer3DPolychrome.vue +0 -2
  35. package/src/BIMDataComponents/BIMDataIcon/Icon.vue +11 -1
  36. package/src/BIMDataComponents/BIMDataInfobox/BIMDataInfobox.vue +18 -7
  37. package/src/BIMDataComponents/BIMDataInput/BIMDataInput.vue +23 -12
  38. package/src/BIMDataComponents/BIMDataList/BIMDataList.vue +2 -2
  39. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.css +59 -1
  40. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.vue +14 -4
  41. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.css +5 -0
  42. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.vue +16 -6
  43. package/src/BIMDataComponents/BIMDataNavigation/BIMDataNavigation.vue +17 -10
  44. package/src/BIMDataComponents/BIMDataPaginatedList/BIMDataPaginatedList.vue +20 -8
  45. package/src/BIMDataComponents/BIMDataPagination/{_BIMDataPagination.scss → BIMDataPagination.css} +4 -2
  46. package/src/BIMDataComponents/BIMDataPagination/BIMDataPagination.vue +20 -9
  47. package/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue +10 -5
  48. package/src/BIMDataComponents/BIMDataSafeZoneInline/{_BIMDataSafeZoneInline.scss → BIMDataSafeZoneInline.css} +7 -2
  49. package/src/BIMDataComponents/BIMDataSafeZoneInline/BIMDataSafeZoneInline.vue +15 -3
  50. package/src/BIMDataComponents/BIMDataSearch/BIMDataSearch.css +1 -1
  51. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.css +28 -0
  52. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.vue +10 -1
  53. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelect.css +104 -2
  54. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue +38 -14
  55. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue +11 -6
  56. package/src/BIMDataComponents/BIMDataSlider/{_BIMDataSlider.scss → BIMDataSlider.css} +39 -2
  57. package/src/BIMDataComponents/BIMDataSlider/BIMDataSlider.vue +13 -2
  58. package/src/BIMDataComponents/BIMDataTable/{_BIMDataTable.scss → BIMDataTable.css} +22 -4
  59. package/src/BIMDataComponents/BIMDataTable/BIMDataTable.vue +22 -17
  60. package/src/BIMDataComponents/BIMDataTable/column-sorting/ColumnSorting.vue +1 -1
  61. package/src/BIMDataComponents/BIMDataTabs/BIMDataTabs.vue +10 -5
  62. package/src/BIMDataComponents/BIMDataText/BIMDataText.css +10 -0
  63. package/src/BIMDataComponents/BIMDataText/BIMDataText.vue +19 -2
  64. package/src/BIMDataComponents/BIMDataTextarea/{_BIMDataTextarea.scss → BIMDataTextarea.css} +20 -9
  65. package/src/BIMDataComponents/BIMDataTextarea/BIMDataTextarea.vue +13 -1
  66. package/src/BIMDataComponents/BIMDataToggle/{_BIMDataToggle.scss → BIMDataToggle.css} +12 -1
  67. package/src/BIMDataComponents/BIMDataToggle/BIMDataToggle.vue +11 -2
  68. package/src/BIMDataComponents/BIMDataTree/BIMDataTree.vue +2 -2
  69. package/src/BIMDataComponents/index.js +1 -0
  70. package/src/assets/colors.js +1 -0
  71. package/src/assets/css/utilities/_colors.css +9 -0
  72. package/src/assets/iconsColors.js +3 -0
@@ -30,6 +30,12 @@ const sizeToPixel = {
30
30
 
31
31
  export default {
32
32
  name: "BIMDataIcon",
33
+ inject: {
34
+ darkThemeRef: {
35
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
36
+ default: () => ({ value: false }),
37
+ },
38
+ },
33
39
  props: {
34
40
  color: {
35
41
  type: String,
@@ -75,6 +81,7 @@ export default {
75
81
  "icon-stroke": this.stroke,
76
82
  [`icon-fill--${this.color}`]: this.fill && this.color,
77
83
  [`icon-stroke--${this.color}`]: this.stroke && this.color,
84
+ "dark": this.isDark
78
85
  };
79
86
  },
80
87
  style() {
@@ -89,6 +96,9 @@ export default {
89
96
  };
90
97
  return style;
91
98
  },
99
+ isDark() {
100
+ return this.darkThemeRef;
101
+ },
92
102
  },
93
103
  methods: {
94
104
  getPixelSize() {
@@ -98,6 +108,6 @@ export default {
98
108
  };
99
109
  </script>
100
110
 
101
- <style lang="scss" scoped src="../../assets/css/variables.css"></style>
111
+ <style scoped src="../../assets/css/variables.css"></style>
102
112
 
103
113
  <style src="./BIMDataIcon.css"></style>
@@ -1,6 +1,7 @@
1
1
  <template>
2
- <div class="bimdata-infobox">
3
- <div class="bimdata-infobox__stripe"
2
+ <div class="bimdata-infobox" :class="{ dark: isDark }">
3
+ <div
4
+ class="bimdata-infobox__stripe"
4
5
  :style="{ backgroundColor: `var(--color-${color})` }"
5
6
  >
6
7
  <!-- left stripe -->
@@ -15,19 +16,20 @@
15
16
  </template>
16
17
 
17
18
  <script setup>
19
+ import { inject, computed } from "vue";
18
20
  defineProps({
19
21
  text: {
20
22
  type: String,
21
- default: ""
23
+ default: "",
22
24
  },
23
25
  icon: {
24
26
  type: String,
25
- default: "information"
27
+ default: "information",
26
28
  },
27
29
  color: {
28
30
  type: String,
29
- validator:
30
- v => [
31
+ validator: v =>
32
+ [
31
33
  "granite-light",
32
34
  "high",
33
35
  "neutral",
@@ -36,9 +38,13 @@ defineProps({
36
38
  "success",
37
39
  "warning",
38
40
  ].includes(v),
39
- default: "neutral"
41
+ default: "neutral",
40
42
  },
41
43
  });
44
+ const darkThemeRef = inject("BIMDATA_DESIGN_SYSTEM_DARK_THEME", {
45
+ value: false,
46
+ });
47
+ const isDark = computed(() => darkThemeRef?.value);
42
48
  </script>
43
49
 
44
50
  <style scoped>
@@ -72,5 +78,10 @@ defineProps({
72
78
  .bimdata-infobox__text {
73
79
  line-height: 1.25;
74
80
  }
81
+
82
+ &.dark {
83
+ background-color: var(--color-quaternary);
84
+ color: var(--color-quaternary-lighter);
85
+ }
75
86
  }
76
87
  </style>
@@ -6,19 +6,25 @@
6
6
  success,
7
7
  disabled,
8
8
  loading,
9
- dark,
9
+ dark: isDark,
10
10
  empty:
11
11
  modelValue === undefined || modelValue === null || modelValue === '',
12
12
  }"
13
13
  :style="style"
14
14
  >
15
- <label v-if="isLabel && computedLabel !== ''" :for="`bimdata-input-${uuid}`">{{
16
- computedLabel
17
- }}</label>
18
- <div class="bimdata-input__content" style="position: relative;" :style="{
19
- 'background-color': backgroundColor,
20
- 'border-radius': borderRadius,
21
- }">
15
+ <label
16
+ v-if="isLabel && computedLabel !== ''"
17
+ :for="`bimdata-input-${uuid}`"
18
+ >{{ computedLabel }}</label
19
+ >
20
+ <div
21
+ class="bimdata-input__content"
22
+ style="position: relative"
23
+ :style="{
24
+ 'background-color': backgroundColor,
25
+ 'border-radius': borderRadius,
26
+ }"
27
+ >
22
28
  <div class="bimdata-input__icon left-icon">
23
29
  <slot name="leftInputIcon"></slot>
24
30
  </div>
@@ -61,6 +67,12 @@ export default {
61
67
  prop: "modelValue",
62
68
  event: "update:modelValue",
63
69
  },
70
+ inject: {
71
+ darkThemeRef: {
72
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
73
+ default: () => ({ value: false }),
74
+ },
75
+ },
64
76
  props: {
65
77
  modelValue: {
66
78
  type: [String, Number],
@@ -126,10 +138,6 @@ export default {
126
138
  type: Boolean,
127
139
  default: true,
128
140
  },
129
- dark: {
130
- type: Boolean,
131
- default: false,
132
- },
133
141
  },
134
142
  emits: ["update:modelValue", "blur", "keypress", "focus", "change"],
135
143
  computed: {
@@ -142,6 +150,9 @@ export default {
142
150
  // Si `label` est vide, utilise la valeur de `placeholder`
143
151
  return this.label || this.placeholder;
144
152
  },
153
+ isDark() {
154
+ return this.darkThemeRef;
155
+ },
145
156
  },
146
157
  beforeCreate() {
147
158
  this.uuid = uuid.toString();
@@ -86,7 +86,7 @@ export default {
86
86
  };
87
87
  </script>
88
88
 
89
- <style scoped lang="scss">
89
+ <style scoped>
90
90
  .bimdata-list {
91
91
  margin: 0;
92
92
  padding: 0;
@@ -98,7 +98,7 @@ export default {
98
98
 
99
99
  position: relative;
100
100
 
101
- &__element {
101
+ .bimdata-list __element {
102
102
  position: absolute;
103
103
  width: 100%;
104
104
  }
@@ -24,7 +24,7 @@
24
24
  &:hover {
25
25
  background-color: var(--color-silver-light);
26
26
  }
27
- &--active {
27
+ .bimdata-menu__item__content--active {
28
28
  background-color: #f0f5ff;
29
29
  }
30
30
  }
@@ -70,4 +70,62 @@
70
70
  }
71
71
  }
72
72
  }
73
+
74
+ .bimdata-menu__item__content {
75
+ position: relative;
76
+ z-index: 0;
77
+ }
78
+ .bimdata-menu__item:first-child .bimdata-menu__item__content:hover::before {
79
+ border-top-left-radius: 12px;
80
+ border-top-right-radius: 12px;
81
+ }
82
+ .bimdata-menu__item:last-child .bimdata-menu__item__content:hover::before {
83
+ border-bottom-left-radius: 12px;
84
+ border-bottom-right-radius: 12px;
85
+ }
86
+ .bimdata-menu__item__content:hover::before {
87
+ content: "";
88
+ position: absolute;
89
+ inset: 0;
90
+ background-color: var(--color-silver-light);
91
+ z-index: -1;
92
+ pointer-events: none;
93
+ transition: background-color 0.2s;
94
+ }
95
+
96
+ &.dark {
97
+ background-color: var(--color-quaternary);
98
+ color: var(--color-quaternary-lighter);
99
+ & .bimdata-menu__item {
100
+ & .bimdata-menu__item__title {
101
+ color: var(--color-white);
102
+ }
103
+ & .bimdata-menu__item__content {
104
+ &:hover {
105
+ background-color: transparent;
106
+ &::before {
107
+ background-color: color-mix(in srgb, transparent, var(--color-quaternary-lighter) 8%);
108
+ }
109
+ }
110
+ &.bimdata-menu__item__content--active {
111
+ background-color: color-mix(in srgb, transparent, var(--color-quaternary-lighter) 5%);
112
+ }
113
+ }
114
+ & .bimdata-menu__item__children {
115
+ background-color: var(--color-quaternary);
116
+ ul {
117
+ li {
118
+ &:hover {
119
+ background-color: color-mix(in srgb, transparent, var(--color-quaternary-lighter) 8%);
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ & .bimdata-menu__item__divider {
126
+ .divider {
127
+ border-color: var(--color-quaternary-lighter);
128
+ }
129
+ }
130
+ }
73
131
  }
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <ul
3
3
  class="bimdata-menu bimdata-list"
4
+ :class="{ dark: isDark }"
4
5
  :style="{
5
6
  width,
6
7
  maxHeight,
@@ -23,6 +24,8 @@
23
24
  @mouseleave="hoveredItemKey = null"
24
25
  :style="{
25
26
  color: item.color,
27
+ 'background-color':
28
+ hoveredItemKey === item.key ? item.background : '',
26
29
  }"
27
30
  >
28
31
  <div v-if="item.groupTitle" class="bimdata-menu__item__title">
@@ -32,10 +35,6 @@
32
35
  </div>
33
36
  <div
34
37
  v-if="item.text"
35
- :style="{
36
- 'background-color':
37
- hoveredItemKey === item.key ? item.background : '',
38
- }"
39
38
  class="bimdata-menu__item__content flex"
40
39
  :class="{ 'bimdata-menu__item__content--active': isItemActive(item) }"
41
40
  >
@@ -90,6 +89,12 @@ export default {
90
89
  BIMDataIconChevron,
91
90
  BIMDataTextbox,
92
91
  },
92
+ inject: {
93
+ darkThemeRef: {
94
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
95
+ default: () => ({ value: false }),
96
+ },
97
+ },
93
98
  props: {
94
99
  menuItems: {
95
100
  type: Array,
@@ -145,6 +150,11 @@ export default {
145
150
  this.hoveredItemKey = item.key;
146
151
  },
147
152
  },
153
+ computed: {
154
+ isDark() {
155
+ return this.darkThemeRef;
156
+ },
157
+ },
148
158
  };
149
159
  </script>
150
160
 
@@ -9,4 +9,9 @@
9
9
  gap: calc(var(--spacing-unit) / 2);
10
10
  border-radius: 8px;
11
11
  }
12
+ &.dark {
13
+ & .bimdata-menu-inline__submenu {
14
+ background-color: var(--color-quaternary);
15
+ }
16
+ }
12
17
  }
@@ -1,24 +1,25 @@
1
1
  <template>
2
- <div class="bimdata-menu-inline" v-clickaway="away">
2
+ <div class="bimdata-menu-inline" :class="{ dark: isDark }" v-clickaway="away">
3
3
  <BIMDataButton
4
- color="primary"
4
+ :color="isDark ? 'quaternary' : 'primary'"
5
5
  ghost
6
6
  rounded
7
7
  icon
8
8
  @click="active = !active"
9
9
  :width="width"
10
+ padding="0px"
10
11
  >
11
12
  <slot name="button" :active="active">
12
13
  <BIMDataIconEllipsis
13
14
  v-if="!active"
14
15
  fill
15
- color="granite-light"
16
+ :color="isDark ? 'white' : 'granite-light'"
16
17
  :size="iconEllipsisSize"
17
18
  />
18
19
  <BIMDataIconClose
19
20
  v-else
20
21
  fill
21
- color="granite-light"
22
+ :color="isDark ? 'white' : 'granite-light'"
22
23
  :size="iconCloseSize"
23
24
  />
24
25
  </slot>
@@ -54,6 +55,12 @@ export default {
54
55
  BIMDataIconClose,
55
56
  BIMDataIconEllipsis,
56
57
  },
58
+ inject: {
59
+ darkThemeRef: {
60
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
61
+ default: () => ({ value: false }),
62
+ },
63
+ },
57
64
  props: {
58
65
  isSubmenuRight: {
59
66
  type: Boolean,
@@ -72,7 +79,7 @@ export default {
72
79
  default: "m",
73
80
  validator: value =>
74
81
  ["xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl", "xxxl"].includes(
75
- value
82
+ value,
76
83
  ),
77
84
  },
78
85
  iconCloseSize: {
@@ -80,7 +87,7 @@ export default {
80
87
  default: "xxs",
81
88
  validator: value =>
82
89
  ["xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl", "xxxl"].includes(
83
- value
90
+ value,
84
91
  ),
85
92
  },
86
93
  },
@@ -96,6 +103,9 @@ export default {
96
103
  }
97
104
  return `right: ${this.width}`;
98
105
  },
106
+ isDark() {
107
+ return this.darkThemeRef;
108
+ },
99
109
  },
100
110
  methods: {
101
111
  away() {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ul
3
3
  class="bimdata-list bimdata-navigation"
4
- :class="{ dark }"
4
+ :class="{ dark: isDark }"
5
5
  :style="{ 'background-color': backgroundColor }"
6
6
  >
7
7
  <li class="bimdata-navigation__left m-r-6">
@@ -12,7 +12,7 @@
12
12
  @click="$emit('first')"
13
13
  :disabled="firstDisabled"
14
14
  ghost
15
- :color="!dark ? 'default' : 'quaternary'"
15
+ :color="isDark ? 'quaternary' : 'default'"
16
16
  :class="{ disabled: firstDisabled }"
17
17
  width="21px"
18
18
  height="21px"
@@ -25,7 +25,7 @@
25
25
  @click="$emit('previous')"
26
26
  :disabled="previousDisabled"
27
27
  ghost
28
- :color="!dark ? 'default' : 'quaternary'"
28
+ :color="isDark ? 'quaternary' : 'default'"
29
29
  :class="{ disabled: previousDisabled }"
30
30
  width="21px"
31
31
  height="21px"
@@ -41,7 +41,7 @@
41
41
  @click="$emit('next')"
42
42
  :disabled="nextDisabled"
43
43
  ghost
44
- :color="!dark ? 'default' : 'quaternary'"
44
+ :color="isDark ? 'quaternary' : 'default'"
45
45
  :class="{ disabled: nextDisabled }"
46
46
  width="21px"
47
47
  height="21px"
@@ -54,7 +54,7 @@
54
54
  @click="$emit('last')"
55
55
  :disabled="lastDisabled"
56
56
  ghost
57
- :color="!dark ? 'default' : 'quaternary'"
57
+ :color="isDark ? 'quaternary' : 'default'"
58
58
  :class="{ disabled: lastDisabled }"
59
59
  width="21px"
60
60
  height="21px"
@@ -81,6 +81,12 @@ export default {
81
81
  BIMDataIconDoubleChevron,
82
82
  BIMDataButton,
83
83
  },
84
+ inject: {
85
+ darkThemeRef: {
86
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
87
+ default: () => ({ value: false }),
88
+ },
89
+ },
84
90
  props: {
85
91
  first: {
86
92
  type: Boolean,
@@ -118,13 +124,14 @@ export default {
118
124
  type: String,
119
125
  default: "var(--color-white)",
120
126
  },
121
- dark: {
122
- type: Boolean,
123
- default: false,
124
- },
125
127
  },
126
128
  emits: ["first", "previous", "next", "last"],
129
+ computed: {
130
+ isDark() {
131
+ return this.darkThemeRef;
132
+ },
133
+ },
127
134
  };
128
135
  </script>
129
136
 
130
- <style scoped lang="scss" src="./BIMDataNavigation.css"></style>
137
+ <style scoped src="./BIMDataNavigation.css"></style>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="bimdata-paginated-list" :class="{ dark }" :style="style">
2
+ <div class="bimdata-paginated-list" :class="{ dark: isDark }" :style="style">
3
3
  <BIMDataSpinner v-if="loading" />
4
4
  <div v-else>
5
5
  <slot name="header"></slot>
@@ -29,8 +29,10 @@
29
29
  :first="first"
30
30
  :last="last"
31
31
  :numberDataElements="numberDataElements"
32
- :backgroundColor="backgroundColor"
33
- :dark="dark"
32
+ :style="{
33
+ backgroundColor: backgroundColorSet ? backgroundColor : undefined,
34
+ }"
35
+ :class="{ dark: isDark && !backgroundColorSet }"
34
36
  />
35
37
  </div>
36
38
  </div>
@@ -45,6 +47,12 @@ export default {
45
47
  BIMDataPagination,
46
48
  BIMDataSpinner,
47
49
  },
50
+ inject: {
51
+ darkThemeRef: {
52
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
53
+ default: () => ({ value: false }),
54
+ },
55
+ },
48
56
  props: {
49
57
  list: {
50
58
  type: Array,
@@ -84,10 +92,6 @@ export default {
84
92
  activeElement: {
85
93
  type: [String, Number, Object],
86
94
  },
87
- dark: {
88
- type: Boolean,
89
- default: false,
90
- },
91
95
  borderRadius: {
92
96
  type: String,
93
97
  default: "3px",
@@ -120,6 +124,14 @@ export default {
120
124
  };
121
125
  }
122
126
  },
127
+ backgroundColorSet() {
128
+ return (
129
+ !!this.backgroundColor && this.backgroundColor !== "var(--color-white)"
130
+ );
131
+ },
132
+ isDark() {
133
+ return this.darkThemeRef;
134
+ },
123
135
  },
124
136
  watch: {
125
137
  list: {
@@ -177,4 +189,4 @@ export default {
177
189
  };
178
190
  </script>
179
191
 
180
- <style scoped lang="scss" src="./BIMDataPaginatedList.css"></style>
192
+ <style scoped src="./BIMDataPaginatedList.css"></style>
@@ -1,6 +1,5 @@
1
- // custom BASE PAGINATION
2
1
  .bimdata-pagination {
3
- &__item {
2
+ .bimdata-pagination__item {
4
3
  .bimdata-btn {
5
4
  padding: 0;
6
5
  justify-content: center;
@@ -12,4 +11,7 @@
12
11
  }
13
12
  }
14
13
  }
14
+ &.dark {
15
+ background-color: var(--color-quaternary);
16
+ }
15
17
  }
@@ -9,9 +9,10 @@
9
9
  :nextDisabled="isLastPage"
10
10
  :lastDisabled="isLastPage"
11
11
  class="bimdata-pagination"
12
- :class="{ dark }"
13
- :backgroundColor="backgroundColor"
14
- :dark="dark"
12
+ :class="['bimdata-pagination', { dark: isDark && !backgroundColorSet }]"
13
+ :style="{
14
+ backgroundColor: backgroundColorSet ? backgroundColor : undefined,
15
+ }"
15
16
  >
16
17
  <template #left v-if="numberDataElements">
17
18
  {{ firstIndex }} - {{ lastIndex }} of {{ length }}
@@ -19,7 +20,7 @@
19
20
  <span class="bimdata-pagination__item">
20
21
  <BIMDataButton
21
22
  ghost
22
- :color="!dark ? 'default' : 'quaternary'"
23
+ :color="isDark ? 'quaternary' : 'default'"
23
24
  width="21px"
24
25
  height="21px"
25
26
  >
@@ -38,6 +39,12 @@ export default {
38
39
  BIMDataNavigation,
39
40
  BIMDataButton,
40
41
  },
42
+ inject: {
43
+ darkThemeRef: {
44
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
45
+ default: () => ({ value: false }),
46
+ },
47
+ },
41
48
  props: {
42
49
  length: {
43
50
  type: Number,
@@ -66,10 +73,6 @@ export default {
66
73
  return value > 0;
67
74
  },
68
75
  },
69
- dark: {
70
- type: Boolean,
71
- default: false,
72
- },
73
76
  },
74
77
  emits: ["pagechanged"],
75
78
  computed: {
@@ -85,6 +88,14 @@ export default {
85
88
  isLastPage() {
86
89
  return this.currentPage === this.totalPages;
87
90
  },
91
+ backgroundColorSet() {
92
+ return (
93
+ !!this.backgroundColor && this.backgroundColor !== "var(--color-white)"
94
+ );
95
+ },
96
+ isDark() {
97
+ return this.darkThemeRef;
98
+ },
88
99
  },
89
100
  methods: {
90
101
  firstPage() {
@@ -103,4 +114,4 @@ export default {
103
114
  };
104
115
  </script>
105
116
 
106
- <style scoped lang="scss" src="./_BIMDataPagination.scss"></style>
117
+ <style scoped src="./BIMDataPagination.css"></style>
@@ -6,7 +6,7 @@
6
6
  disabled,
7
7
  'bimdata-radio--checked': checked,
8
8
  'bimdata-radio--big': big,
9
- dark
9
+ dark: isDark
10
10
  }"
11
11
  :disabled="disabled"
12
12
  @click="onClick"
@@ -28,6 +28,12 @@ export default {
28
28
  prop: "modelValue",
29
29
  event: "update:modelValue",
30
30
  },
31
+ inject: {
32
+ darkThemeRef: {
33
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
34
+ default: () => ({ value: false }),
35
+ },
36
+ },
31
37
  props: {
32
38
  big: {
33
39
  type: Boolean,
@@ -45,16 +51,15 @@ export default {
45
51
  type: Boolean,
46
52
  default: false,
47
53
  },
48
- dark: {
49
- type: Boolean,
50
- default: false,
51
- },
52
54
  },
53
55
  emits: ["update:modelValue"],
54
56
  computed: {
55
57
  checked() {
56
58
  return this.modelValue === this.value;
57
59
  },
60
+ isDark() {
61
+ return this.darkThemeRef;
62
+ },
58
63
  },
59
64
  methods: {
60
65
  onClick() {
@@ -6,11 +6,16 @@
6
6
  box-shadow: var(--box-shadow);
7
7
  background-color: var(--color-white);
8
8
 
9
- &__btn-delete {
9
+ & .safe-zone-inline__btn-delete {
10
10
  width: 90px;
11
11
  }
12
12
 
13
- &__btn-close {
13
+ & .safe-zone-inline__btn-close {
14
14
  padding: 0 8px;
15
15
  }
16
+
17
+ &.dark {
18
+ background-color: var(--color-quaternary);
19
+ color: var(--color-quaternary-lighter);
20
+ }
16
21
  }