@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 +3 -1
- package/src/assets/scss/_dark-theme.scss +1 -0
- package/src/assets/scss/main.scss +1 -0
- package/src/components/dropdown/Dropdown.vue +2 -2
- package/src/components/dropdown/index.stories.js +3 -5
- package/src/components/editor/Editor.vue +6 -1
- package/src/components/editor/index.stories.js +0 -226
- package/src/components/editor/tools/bpmn/bpmn.js +187 -0
- package/src/components/editor/tools/bpmn/bpmn.scss +63 -0
- package/src/components/editor/tools/drawing/drawing.js +1 -1
- package/src/components/editor/tools/drawing/excalidraw.production.min.js +2 -0
- package/src/components/filter/FilterBadge.vue +61 -0
- package/src/components/filter/Rule.vue +27 -5
- package/src/components/filter/RuleGroup.vue +24 -14
- package/src/components/filter/constants.js +19 -0
- package/src/components/filter/index.stories.js +7 -1
- package/src/components/table/TableGroup.vue +2 -2
- package/src/components/table/TableHeader.vue +31 -33
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itfin/components",
|
|
3
|
-
"version": "1.3.
|
|
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",
|
|
@@ -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
|
-
|
|
55
|
-
<
|
|
56
|
-
<
|
|
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@
|
|
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,
|