@bigbinary/neeto-tags-frontend 0.0.20 → 0.0.21
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/dist/index.js +57 -61
- package/dist/index.js.map +1 -1
- package/package.json +2 -5
- package/readme.md +46 -16
package/dist/index.js
CHANGED
|
@@ -30,9 +30,9 @@ import { Formik, Form } from 'formik';
|
|
|
30
30
|
import { Input, Textarea, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
31
31
|
import classames from 'classnames';
|
|
32
32
|
|
|
33
|
-
function ownKeys$
|
|
33
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
34
34
|
|
|
35
|
-
function _objectSpread$
|
|
35
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
36
36
|
|
|
37
37
|
var consoleLogger = {
|
|
38
38
|
type: 'logger',
|
|
@@ -119,7 +119,7 @@ var Logger = function () {
|
|
|
119
119
|
}, {
|
|
120
120
|
key: "create",
|
|
121
121
|
value: function create(moduleName) {
|
|
122
|
-
return new Logger(this.logger, _objectSpread$
|
|
122
|
+
return new Logger(this.logger, _objectSpread$6(_objectSpread$6({}, {
|
|
123
123
|
prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
|
|
124
124
|
}), this.options));
|
|
125
125
|
}
|
|
@@ -2191,9 +2191,9 @@ function transformOptions(options) {
|
|
|
2191
2191
|
return options;
|
|
2192
2192
|
}
|
|
2193
2193
|
|
|
2194
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2194
|
+
function ownKeys$6$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2195
2195
|
|
|
2196
|
-
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2196
|
+
function _objectSpread$6$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2197
2197
|
|
|
2198
2198
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2199
2199
|
|
|
@@ -2274,10 +2274,10 @@ var I18n = function (_EventEmitter) {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
var defOpts = get();
|
|
2277
|
-
this.options = _objectSpread$6(_objectSpread$6(_objectSpread$6({}, defOpts), this.options), transformOptions(options));
|
|
2277
|
+
this.options = _objectSpread$6$1(_objectSpread$6$1(_objectSpread$6$1({}, defOpts), this.options), transformOptions(options));
|
|
2278
2278
|
|
|
2279
2279
|
if (this.options.compatibilityAPI !== 'v1') {
|
|
2280
|
-
this.options.interpolation = _objectSpread$6(_objectSpread$6({}, defOpts.interpolation), this.options.interpolation);
|
|
2280
|
+
this.options.interpolation = _objectSpread$6$1(_objectSpread$6$1({}, defOpts.interpolation), this.options.interpolation);
|
|
2281
2281
|
}
|
|
2282
2282
|
|
|
2283
2283
|
if (options.keySeparator !== undefined) {
|
|
@@ -2615,7 +2615,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2615
2615
|
|
|
2616
2616
|
options = _this5.options.overloadTranslationOptionHandler([key, opts].concat(rest));
|
|
2617
2617
|
} else {
|
|
2618
|
-
options = _objectSpread$6({}, opts);
|
|
2618
|
+
options = _objectSpread$6$1({}, opts);
|
|
2619
2619
|
}
|
|
2620
2620
|
|
|
2621
2621
|
options.lng = options.lng || fixedT.lng;
|
|
@@ -2753,7 +2753,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2753
2753
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2754
2754
|
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$1;
|
|
2755
2755
|
|
|
2756
|
-
var mergedOptions = _objectSpread$6(_objectSpread$6(_objectSpread$6({}, this.options), options), {
|
|
2756
|
+
var mergedOptions = _objectSpread$6$1(_objectSpread$6$1(_objectSpread$6$1({}, this.options), options), {
|
|
2757
2757
|
isClone: true
|
|
2758
2758
|
});
|
|
2759
2759
|
|
|
@@ -2762,7 +2762,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2762
2762
|
membersToCopy.forEach(function (m) {
|
|
2763
2763
|
clone[m] = _this8[m];
|
|
2764
2764
|
});
|
|
2765
|
-
clone.services = _objectSpread$6({}, this.services);
|
|
2765
|
+
clone.services = _objectSpread$6$1({}, this.services);
|
|
2766
2766
|
clone.services.utils = {
|
|
2767
2767
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
2768
2768
|
};
|
|
@@ -2866,9 +2866,9 @@ var unescape = function unescape(text) {
|
|
|
2866
2866
|
return text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
2867
2867
|
};
|
|
2868
2868
|
|
|
2869
|
-
function ownKeys$
|
|
2869
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2870
2870
|
|
|
2871
|
-
function _objectSpread$
|
|
2871
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2872
2872
|
var defaultOptions = {
|
|
2873
2873
|
bindI18n: 'languageChanged',
|
|
2874
2874
|
bindI18nStore: '',
|
|
@@ -2883,7 +2883,7 @@ var i18nInstance;
|
|
|
2883
2883
|
var I18nContext = createContext();
|
|
2884
2884
|
function setDefaults() {
|
|
2885
2885
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2886
|
-
defaultOptions = _objectSpread$
|
|
2886
|
+
defaultOptions = _objectSpread$5(_objectSpread$5({}, defaultOptions), options);
|
|
2887
2887
|
}
|
|
2888
2888
|
function getDefaults() {
|
|
2889
2889
|
return defaultOptions;
|
|
@@ -3010,9 +3010,9 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
3010
3010
|
var _excluded = ["format"],
|
|
3011
3011
|
_excluded2 = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
3012
3012
|
|
|
3013
|
-
function ownKeys$
|
|
3013
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3014
3014
|
|
|
3015
|
-
function _objectSpread$
|
|
3015
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3016
3016
|
|
|
3017
3017
|
function hasChildren(node, checkLength) {
|
|
3018
3018
|
if (!node) return false;
|
|
@@ -3038,7 +3038,7 @@ function getAsArray(data) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
|
|
3040
3040
|
function mergeProps(source, target) {
|
|
3041
|
-
var newTarget = _objectSpread$
|
|
3041
|
+
var newTarget = _objectSpread$4({}, target);
|
|
3042
3042
|
|
|
3043
3043
|
newTarget.props = Object.assign(source.props, target.props);
|
|
3044
3044
|
return newTarget;
|
|
@@ -3108,7 +3108,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3108
3108
|
getData(children);
|
|
3109
3109
|
var ast = c.parse("<0>".concat(targetString, "</0>"));
|
|
3110
3110
|
|
|
3111
|
-
var opts = _objectSpread$
|
|
3111
|
+
var opts = _objectSpread$4(_objectSpread$4({}, data), combinedTOpts);
|
|
3112
3112
|
|
|
3113
3113
|
function renderInner(child, node, rootReactNode) {
|
|
3114
3114
|
var childs = getChildren(child);
|
|
@@ -3118,7 +3118,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3118
3118
|
|
|
3119
3119
|
function pushTranslatedJSX(child, inner, mem, i, isVoid) {
|
|
3120
3120
|
if (child.dummy) child.children = inner;
|
|
3121
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3121
|
+
mem.push(cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3122
3122
|
key: i
|
|
3123
3123
|
}), isVoid ? undefined : inner));
|
|
3124
3124
|
}
|
|
@@ -3150,7 +3150,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3150
3150
|
} else if (isEmptyTransWithHTML) {
|
|
3151
3151
|
var _inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
3152
3152
|
|
|
3153
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3153
|
+
mem.push(cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3154
3154
|
key: i
|
|
3155
3155
|
}), _inner));
|
|
3156
3156
|
} else if (Number.isNaN(parseFloat(node.name))) {
|
|
@@ -3181,11 +3181,11 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3181
3181
|
var content = node.children[0] ? translationContent : null;
|
|
3182
3182
|
if (content) mem.push(content);
|
|
3183
3183
|
} else if (node.children.length === 1 && translationContent) {
|
|
3184
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3184
|
+
mem.push(cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3185
3185
|
key: i
|
|
3186
3186
|
}), translationContent));
|
|
3187
3187
|
} else {
|
|
3188
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3188
|
+
mem.push(cloneElement(child, _objectSpread$4(_objectSpread$4({}, child.props), {}, {
|
|
3189
3189
|
key: i
|
|
3190
3190
|
})));
|
|
3191
3191
|
}
|
|
@@ -3248,7 +3248,7 @@ function Trans(_ref) {
|
|
|
3248
3248
|
|
|
3249
3249
|
if (context) tOptions.context = context;
|
|
3250
3250
|
|
|
3251
|
-
var reactI18nextOptions = _objectSpread$
|
|
3251
|
+
var reactI18nextOptions = _objectSpread$4(_objectSpread$4({}, getDefaults()), i18n.options && i18n.options.react);
|
|
3252
3252
|
|
|
3253
3253
|
var namespaces = ns || t.ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
3254
3254
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
@@ -3256,13 +3256,13 @@ function Trans(_ref) {
|
|
|
3256
3256
|
var hashTransKey = reactI18nextOptions.hashTransKey;
|
|
3257
3257
|
var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);
|
|
3258
3258
|
var interpolationOverride = values ? tOptions.interpolation : {
|
|
3259
|
-
interpolation: _objectSpread$
|
|
3259
|
+
interpolation: _objectSpread$4(_objectSpread$4({}, tOptions.interpolation), {}, {
|
|
3260
3260
|
prefix: '#$?',
|
|
3261
3261
|
suffix: '?$#'
|
|
3262
3262
|
})
|
|
3263
3263
|
};
|
|
3264
3264
|
|
|
3265
|
-
var combinedTOpts = _objectSpread$
|
|
3265
|
+
var combinedTOpts = _objectSpread$4(_objectSpread$4(_objectSpread$4(_objectSpread$4({}, tOptions), {}, {
|
|
3266
3266
|
count: count
|
|
3267
3267
|
}, values), interpolationOverride), {}, {
|
|
3268
3268
|
defaultValue: defaultValue,
|
|
@@ -3275,9 +3275,9 @@ function Trans(_ref) {
|
|
|
3275
3275
|
return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
|
|
3276
3276
|
}
|
|
3277
3277
|
|
|
3278
|
-
function ownKeys$
|
|
3278
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3279
3279
|
|
|
3280
|
-
function _objectSpread$
|
|
3280
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3281
3281
|
|
|
3282
3282
|
var usePrevious = function usePrevious(value, ignore) {
|
|
3283
3283
|
var ref = useRef();
|
|
@@ -3314,7 +3314,7 @@ function useTranslation(ns) {
|
|
|
3314
3314
|
|
|
3315
3315
|
if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
|
|
3316
3316
|
|
|
3317
|
-
var i18nOptions = _objectSpread$
|
|
3317
|
+
var i18nOptions = _objectSpread$3(_objectSpread$3(_objectSpread$3({}, getDefaults()), i18n.options.react), props);
|
|
3318
3318
|
|
|
3319
3319
|
var useSuspense = i18nOptions.useSuspense,
|
|
3320
3320
|
keyPrefix = i18nOptions.keyPrefix;
|
|
@@ -6706,14 +6706,14 @@ function useQuery(arg1, arg2, arg3) {
|
|
|
6706
6706
|
|
|
6707
6707
|
var fetch = function fetch(_ref) {
|
|
6708
6708
|
var url = _ref.url,
|
|
6709
|
-
|
|
6709
|
+
searchTerm = _ref.searchTerm,
|
|
6710
6710
|
limit = _ref.limit,
|
|
6711
|
-
|
|
6711
|
+
pageNo = _ref.pageNo;
|
|
6712
6712
|
return axios.get(url, {
|
|
6713
6713
|
params: {
|
|
6714
|
-
|
|
6714
|
+
search_term: searchTerm,
|
|
6715
6715
|
limit: limit,
|
|
6716
|
-
page_no:
|
|
6716
|
+
page_no: pageNo
|
|
6717
6717
|
}
|
|
6718
6718
|
});
|
|
6719
6719
|
};
|
|
@@ -6750,9 +6750,9 @@ var queryClient = new QueryClient({
|
|
|
6750
6750
|
})
|
|
6751
6751
|
});
|
|
6752
6752
|
|
|
6753
|
-
function ownKeys$
|
|
6753
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6754
6754
|
|
|
6755
|
-
function _objectSpread$
|
|
6755
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6756
6756
|
var TAG_KEY = "tag-key";
|
|
6757
6757
|
var STALE_TIME = 3200000;
|
|
6758
6758
|
|
|
@@ -6760,7 +6760,7 @@ var useFetchTags = function useFetchTags(params) {
|
|
|
6760
6760
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6761
6761
|
return useQuery([TAG_KEY, Object.values(params)], function () {
|
|
6762
6762
|
return tagsApi.fetch(params);
|
|
6763
|
-
}, _objectSpread$
|
|
6763
|
+
}, _objectSpread$2({
|
|
6764
6764
|
staleTime: STALE_TIME,
|
|
6765
6765
|
select: function select(response) {
|
|
6766
6766
|
return response.data || response;
|
|
@@ -6944,7 +6944,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
6944
6944
|
breadcrumbs = _ref.breadcrumbs,
|
|
6945
6945
|
displayMenu = _ref.displayMenu,
|
|
6946
6946
|
handleMenuToggle = _ref.handleMenuToggle,
|
|
6947
|
-
tagsPath = _ref.tagsPath
|
|
6947
|
+
tagsPath = _ref.tagsPath,
|
|
6948
|
+
_ref$tagsMergable = _ref.tagsMergable,
|
|
6949
|
+
tagsMergable = _ref$tagsMergable === void 0 ? false : _ref$tagsMergable;
|
|
6948
6950
|
|
|
6949
6951
|
var _useState = useState(null),
|
|
6950
6952
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -6975,9 +6977,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
6975
6977
|
|
|
6976
6978
|
var _useFetchTags = useFetchTags({
|
|
6977
6979
|
url: tagType.url,
|
|
6978
|
-
|
|
6980
|
+
searchTerm: debouncedSearchTerm,
|
|
6979
6981
|
limit: DEFAULT_PAGE_SIZE,
|
|
6980
|
-
|
|
6982
|
+
pageNo: pageIndex
|
|
6981
6983
|
}),
|
|
6982
6984
|
data = _useFetchTags.data,
|
|
6983
6985
|
isLoading = _useFetchTags.isLoading;
|
|
@@ -7057,7 +7059,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
7057
7059
|
where: t("title")
|
|
7058
7060
|
})
|
|
7059
7061
|
},
|
|
7060
|
-
actionBlock: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
7062
|
+
actionBlock: /*#__PURE__*/React.createElement(React.Fragment, null, tagsMergable && /*#__PURE__*/React.createElement(Button, {
|
|
7061
7063
|
size: "large",
|
|
7062
7064
|
style: "secondary",
|
|
7063
7065
|
label: t("merge.mergeTags"),
|
|
@@ -7230,9 +7232,9 @@ var pluralize = function pluralize(_ref) {
|
|
|
7230
7232
|
return resultText;
|
|
7231
7233
|
};
|
|
7232
7234
|
|
|
7233
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7235
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7234
7236
|
|
|
7235
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7237
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7236
7238
|
|
|
7237
7239
|
var MergeAlert = function MergeAlert(_ref) {
|
|
7238
7240
|
var sourceTag = _ref.sourceTag,
|
|
@@ -7262,7 +7264,7 @@ var MergeAlert = function MergeAlert(_ref) {
|
|
|
7262
7264
|
values: {
|
|
7263
7265
|
sourceTag: sourceTag.name,
|
|
7264
7266
|
destinationTag: destinationTag.name,
|
|
7265
|
-
entities: pluralize(_objectSpread(_objectSpread({
|
|
7267
|
+
entities: pluralize(_objectSpread$1(_objectSpread$1({
|
|
7266
7268
|
singular: tagType.label.toLowerCase()
|
|
7267
7269
|
}, PLURAL), {}, {
|
|
7268
7270
|
skipCount: true
|
|
@@ -7524,7 +7526,7 @@ var createRoutes = function createRoutes(props) {
|
|
|
7524
7526
|
return renderComponent(Dashboard, props);
|
|
7525
7527
|
},
|
|
7526
7528
|
exact: true,
|
|
7527
|
-
path: props.tagsPath
|
|
7529
|
+
path: props.tagsPath || ""
|
|
7528
7530
|
}];
|
|
7529
7531
|
};
|
|
7530
7532
|
|
|
@@ -7579,11 +7581,15 @@ var withReactQuery = function withReactQuery(Component) {
|
|
|
7579
7581
|
return QueryWrapper;
|
|
7580
7582
|
};
|
|
7581
7583
|
|
|
7584
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7585
|
+
|
|
7586
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7587
|
+
|
|
7582
7588
|
var Tags = function Tags(_ref) {
|
|
7583
|
-
var
|
|
7584
|
-
|
|
7585
|
-
displayMenu =
|
|
7586
|
-
|
|
7589
|
+
var config = _ref.config;
|
|
7590
|
+
var tagTypes = config.tagTypes,
|
|
7591
|
+
_config$displayMenu = config.displayMenu,
|
|
7592
|
+
displayMenu = _config$displayMenu === void 0 ? true : _config$displayMenu;
|
|
7587
7593
|
|
|
7588
7594
|
var _useState = useState(tagTypes[0]),
|
|
7589
7595
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7601,13 +7607,10 @@ var Tags = function Tags(_ref) {
|
|
|
7601
7607
|
});
|
|
7602
7608
|
};
|
|
7603
7609
|
|
|
7604
|
-
var routes = createRoutes({
|
|
7605
|
-
tagsPath: tagsPath,
|
|
7606
|
-
tagType: tagType,
|
|
7607
|
-
breadcrumbs: breadcrumbs,
|
|
7610
|
+
var routes = createRoutes(_objectSpread(_objectSpread({}, config), {}, {
|
|
7608
7611
|
handleMenuToggle: handleMenuToggle,
|
|
7609
|
-
|
|
7610
|
-
});
|
|
7612
|
+
tagType: tagType
|
|
7613
|
+
}));
|
|
7611
7614
|
return /*#__PURE__*/React.createElement("div", {
|
|
7612
7615
|
className: "neeto-tag-wrapper"
|
|
7613
7616
|
}, displayMenu && /*#__PURE__*/React.createElement(Menu, {
|
|
@@ -7631,16 +7634,9 @@ var Tags = function Tags(_ref) {
|
|
|
7631
7634
|
var Tags$1 = withReactQuery(Tags);
|
|
7632
7635
|
|
|
7633
7636
|
var App = function App(_ref) {
|
|
7634
|
-
var
|
|
7635
|
-
breadcrumbs = _ref.breadcrumbs,
|
|
7636
|
-
_ref$displayMenu = _ref.displayMenu,
|
|
7637
|
-
displayMenu = _ref$displayMenu === void 0 ? true : _ref$displayMenu,
|
|
7638
|
-
tagsPath = _ref.tagsPath;
|
|
7637
|
+
var config = _ref.config;
|
|
7639
7638
|
return /*#__PURE__*/React.createElement(Tags$1, {
|
|
7640
|
-
|
|
7641
|
-
breadcrumbs: breadcrumbs,
|
|
7642
|
-
displayMenu: displayMenu,
|
|
7643
|
-
tagsPath: tagsPath
|
|
7639
|
+
config: config
|
|
7644
7640
|
});
|
|
7645
7641
|
};
|
|
7646
7642
|
|