@bimdata/design-system 2.1.0-rc.22 → 2.1.0-rc.24

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": "@bimdata/design-system",
3
- "version": "2.1.0-rc.22",
3
+ "version": "2.1.0-rc.24",
4
4
  "main": "./src/BIMDataComponents/index.js",
5
5
  "module": "./src/BIMDataComponents/index.js",
6
6
  "files": [
@@ -0,0 +1,19 @@
1
+ <template>
2
+ <Icon
3
+ :fill="fill"
4
+ :fillColor="fillColor"
5
+ :color="color"
6
+ :class="classes"
7
+ :style="style"
8
+ >
9
+ <Structure />
10
+ </Icon>
11
+ </template>
12
+
13
+ <script>
14
+ import Structure from "../BIMDataLibraryIcons/Structure.vue";
15
+ import makeIcon from "./iconFactory.js";
16
+ export default makeIcon("Structure", Structure);
17
+ </script>
18
+
19
+ <style scoped lang="scss" src="../_BIMDataIcon.scss"></style>
@@ -123,6 +123,7 @@ export { default as BIMDataIconSpace2 } from "./BIMDataIconSpace2.vue";
123
123
  export { default as BIMDataIconSpacing } from "./BIMDataIconSpacing.vue";
124
124
  export { default as BIMDataIconSplit } from "./BIMDataIconSplit.vue";
125
125
  export { default as BIMDataIconStorey } from "./BIMDataIconStorey.vue";
126
+ export { default as BIMDataIconStructure } from "./BIMDataIconStructure.vue";
126
127
  export { default as BIMDataIconSuccess } from "./BIMDataIconSuccess.vue";
127
128
  export { default as BIMDataIconSurface } from "./BIMDataIconSurface.vue";
128
129
  export { default as BIMDataIconSwap } from "./BIMDataIconSwap.vue";
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <path
3
+ fill-rule="evenodd"
4
+ clip-rule="evenodd"
5
+ d="M21.6656 15.7776H20.5497V11.889C20.5497 11.4607 20.2107 11.111 19.7954 11.111H12.2543V7.2224H13.1828C13.9164 7.2224 14.5163 6.60278 14.5163 5.84623V2.37617C14.5163 1.61962 13.9164 1 13.1828 1H9.81719C9.08361 1 8.4828 1.61962 8.4828 2.37617V5.84623C8.4828 6.60278 9.08361 7.2224 9.81719 7.2224H10.7457V11.111H3.20459C2.78931 11.111 2.45029 11.4607 2.45029 11.889V15.7776H1.33438C0.600802 15.7776 0 16.3972 0 17.1538V20.6238C0 21.3804 0.600802 22 1.33438 22H4.69907C5.43265 22 6.03345 21.3804 6.03345 20.6238V17.1538C6.03345 16.3972 5.43265 15.7776 4.69907 15.7776H3.95795V12.6669H10.7457V15.7776H9.81719C9.08361 15.7776 8.4828 16.3972 8.4828 17.1538V20.6238C8.4828 21.3804 9.08361 22 9.81719 22H13.1828C13.9164 22 14.5163 21.3804 14.5163 20.6238V17.1538C14.5163 16.3972 13.9164 15.7776 13.1828 15.7776H12.2543V12.6669H19.0411V15.7776H18.3009C17.5664 15.7776 16.9665 16.3972 16.9665 17.1538V20.6238C16.9665 21.3804 17.5664 22 18.3009 22H21.6656C22.3992 22 23 21.3804 23 20.6238V17.1538C23 16.3972 22.3992 15.7776 21.6656 15.7776Z"
6
+ />
7
+ </template>
@@ -123,6 +123,7 @@ import space2 from "./Space2.vue";
123
123
  import spacing from "./Spacing.vue";
124
124
  import split from "./Split.vue";
125
125
  import storey from "./Storey.vue";
126
+ import structure from "./Structure.vue";
126
127
  import success from "./Success.vue";
127
128
  import surface from "./Surface.vue";
128
129
  import swap from "./Swap.vue";
@@ -295,6 +296,7 @@ export default {
295
296
  spacing,
296
297
  split,
297
298
  storey,
299
+ structure,
298
300
  success,
299
301
  surface,
300
302
  swap,
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  ref="nodeRef"
4
+ v-show="visible"
4
5
  class="bimdata-tree__node"
5
6
  :class="{
6
7
  'bimdata-tree__node--selected': node.id === state.selectedId,
@@ -113,12 +114,20 @@ Node = {
113
114
  setup(props) {
114
115
  const state = inject("state");
115
116
 
117
+ let visible = null;
118
+ if (isRef(props.node.visibleRef)) {
119
+ visible = props.node.visibleRef;
120
+ } else {
121
+ visible = ref(true);
122
+ }
123
+
116
124
  let expanded = null;
117
125
  if (isRef(props.node.expandedRef)) {
118
126
  expanded = props.node.expandedRef;
119
127
  } else {
120
128
  expanded = ref(false);
121
129
  }
130
+
122
131
  const nodeRef = ref(null);
123
132
 
124
133
  let expandTimer = null;
@@ -181,6 +190,7 @@ Node = {
181
190
  state,
182
191
  nodeRef,
183
192
  expanded,
193
+ visible,
184
194
  dropHelperPosition,
185
195
  hasAncestorSelected: state.hasAncestorSelected,
186
196
  onMouseEnter,