@itfin/components 1.3.21 → 1.3.23

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": "@itfin/components",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -41,12 +41,14 @@
41
41
  "@vue/composition-api": "^1.7.1",
42
42
  "air-datepicker": "^3.3.5",
43
43
  "bootstrap": "^5.3.x",
44
+ "bpmn-js": "^17.0.2",
44
45
  "core-js": "^3.7.0",
45
46
  "debug": "^4.2.0",
46
47
  "intersection-observer": "^0.12.2",
47
48
  "lodash": "^4.17.20",
48
49
  "luxon": "^3.3.0",
49
50
  "pdfjs-dist": "^2.10.377",
51
+ "storybook-dark-mode": "^3.0.3",
50
52
  "tippy.js": "^6.3.2",
51
53
  "vue-imask": "^6.6.3",
52
54
  "vue-property-decorator": "^9.1.2",
@@ -18,6 +18,7 @@ body[data-theme="dark"] {
18
18
  background-color: $dark-input-bg;
19
19
  border-color: $dark-input-bg;
20
20
  color: $dark-body-color;
21
+ box-shadow: 0 2px 10px rgba(255,255,255,.05);
21
22
 
22
23
  &:focus, &:active {
23
24
  background-color: #3d3d3d;
@@ -28,6 +28,7 @@
28
28
 
29
29
  .form-control {
30
30
  min-height: 2.5rem;
31
+ box-shadow: 0 2px 10px rgba(0,0,0,.05);
31
32
  }
32
33
 
33
34
  .color-project-tnm {
@@ -33,11 +33,11 @@ class itfDropdown extends Vue {
33
33
  render (createElement, context) {
34
34
  const { props, slots, data } = context;
35
35
  const modalId = `dropdownId${globalModalIndex++}`;
36
- const { buttonOptions, toggle, right, shadow, label, appendToBody } = props;
36
+ const { buttonOptions, toggle, text, right, shadow, label, appendToBody } = props;
37
37
  const { button, default: defaultSlot } = slots();
38
38
  let elements = [
39
39
  createElement(
40
- itfButton,
40
+ text ? 'div' : itfButton,
41
41
  {
42
42
  props: buttonOptions || {},
43
43
  class: { 'dropdown-toggle': toggle },
@@ -51,11 +51,9 @@ storiesOf('Common', module)
51
51
  <itf-icon name="filter" />
52
52
  </template>
53
53
 
54
- <ul class="dropdown-menu show" aria-labelledby="dropdownMenuOffset">
55
- <li><a class="dropdown-item" href="#">Action</a></li>
56
- <li><a class="dropdown-item" href="#">Another action</a></li>
57
- <li><a class="dropdown-item" href="#">Something else here</a></li>
58
- </ul>
54
+ <div><a class="dropdown-item" href="#">Action</a></div>
55
+ <div><a class="dropdown-item" href="#">Another action</a></div>
56
+ <div><a class="dropdown-item" href="#">Something else here</a></div>
59
57
  </itf-dropdown>
60
58
 
61
59
  </itf-app>
@@ -8,7 +8,7 @@
8
8
  }
9
9
  @font-face {
10
10
  font-family: "Cascadia";
11
- src: url("https://unpkg.com/@excalidraw/excalidraw@undefined/dist/excalidraw-assets/Cascadia.woff2");
11
+ src: url("https://unpkg.com/@excalidraw/excalidraw@0.16.1/dist/excalidraw-assets/Cascadia.woff2");
12
12
  }
13
13
  .editor {
14
14
  &.readonly {
@@ -67,6 +67,7 @@ import AttachesTool from '@editorjs/attaches';
67
67
  import NestedList from '@editorjs/nested-list';
68
68
  import editorjsCodecup from './tools/highlightcode/codecup';
69
69
  import Drawing from './tools/drawing/drawing';
70
+ import Bpmn from './tools/bpmn/bpmn';
70
71
  import cloneDeep from 'lodash/cloneDeep';
71
72
 
72
73
  export default @Component({
@@ -133,6 +134,10 @@ class itfEditor extends Vue {
133
134
  inlineToolbar: true,
134
135
  class: Drawing
135
136
  },
137
+ bpmn: {
138
+ inlineToolbar: true,
139
+ class: Bpmn
140
+ },
136
141
  // warning: Warning,
137
142
  table: {
138
143
  inlineToolbar: true,