@synerise/ds-filter 0.10.3 → 0.11.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.11.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.10.3...@synerise/ds-filter@0.11.0) (2022-07-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * **filter:** adds additional translation ([a00063a](https://github.com/Synerise/synerise-design/commit/a00063a01e4d6d67e1cb6b040f867ecf88f57c14))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.10.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-filter@0.10.2...@synerise/ds-filter@0.10.3) (2022-07-08)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-filter
package/dist/Filter.js CHANGED
@@ -106,6 +106,14 @@ var Filter = function Filter(_ref) {
106
106
  id: 'DS.MATCHING.EXPRESSION-TYPE.EVENT',
107
107
  defaultMessage: 'event'
108
108
  }),
109
+ notAttribute: formatMessage({
110
+ id: 'DS.MATCHING.EXPRESSION-TYPE.NOT_ATTRIBUTE',
111
+ defaultMessage: 'attribute'
112
+ }),
113
+ notEvent: formatMessage({
114
+ id: 'DS.MATCHING.EXPRESSION-TYPE.NOT_EVENT',
115
+ defaultMessage: 'event'
116
+ }),
109
117
  namePlaceholder: formatMessage({
110
118
  id: 'DS.STEP-CARD.NAME-PLACEHOLDER'
111
119
  }),
@@ -134,7 +142,8 @@ var Filter = function Filter(_ref) {
134
142
  return {
135
143
  matching: contextType === 'attribute' ? text.step.have : text.step.performed,
136
144
  notMatching: contextType === 'attribute' ? text.step.notHave : text.step.notPerformed,
137
- conditionType: contextType === 'attribute' ? text.step.attribute : text.step.event
145
+ conditionType: contextType === 'attribute' ? text.step.attribute : text.step.event,
146
+ notConditionType: contextType === 'attribute' ? text.step.notAttribute : text.step.notEvent
138
147
  };
139
148
  }, [text]);
140
149
  var isActive = React.useCallback(function (expression) {
@@ -39,6 +39,8 @@ export declare type FilterProps = {
39
39
  notPerformed?: string;
40
40
  attribute?: string;
41
41
  event?: string;
42
+ notAttribute?: string;
43
+ notEvent?: string;
42
44
  namePlaceholder?: string;
43
45
  moveTooltip?: string;
44
46
  deleteTooltip?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-filter",
3
- "version": "0.10.3",
3
+ "version": "0.11.0",
4
4
  "description": "Filter UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,8 +34,8 @@
34
34
  "dependencies": {
35
35
  "@synerise/ds-button": "^0.17.2",
36
36
  "@synerise/ds-icon": "^0.49.0",
37
- "@synerise/ds-logic": "^0.7.0",
38
- "@synerise/ds-step-card": "^0.6.6",
37
+ "@synerise/ds-logic": "^0.7.1",
38
+ "@synerise/ds-step-card": "^0.7.0",
39
39
  "react-sortablejs": "^6.0.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "@synerise/ds-step-card": "*",
44
44
  "react": ">=16.9.0 < 17.0.0"
45
45
  },
46
- "gitHead": "e28fd3bb9b226dbbddf22e7aee71bca89db58c4c"
46
+ "gitHead": "41a4ccb4e6222516622347a45cb6c65faec250d9"
47
47
  }