impact-ui 4.0.1-alpha.2 → 4.0.1-alpha.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/_virtual/North.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +1 -1
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/components/AccordionModern/index.js +5 -10
- package/dist/components/BottomSheet/index.d.ts.map +1 -1
- package/dist/components/BottomSheet/index.js +5 -4
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +5 -7
- package/dist/components/Chatbot/constant.d.ts.map +1 -1
- package/dist/components/Chatbot/constant.js +8 -2
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +24 -15
- package/dist/components/Chatbot/newChatComponent.js +1 -1
- package/dist/components/Checkbox/Default.js +1 -1
- package/dist/components/CommentsPanel/CommentsContext.js +5 -9
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +8 -12
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts +1 -5
- package/dist/components/DateRangePicker/dateRangePickerCustom.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerCustom.js +1 -4
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +1 -44
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +204 -166
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts +1 -11
- package/dist/components/DateRangePicker/dateRangePickerFooter.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerFooter.js +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts +1 -30
- package/dist/components/DateRangePicker/dateRangePickerInput.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerInput.js +225 -180
- package/dist/components/DateRangePicker/index.d.ts +2 -6
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +158 -164
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts +1 -12
- package/dist/components/DateRangePicker/showMonthYearSelect.d.ts.map +1 -1
- package/dist/components/DateRangePicker/showMonthYearSelect.js +37 -51
- package/dist/components/DateRangePicker/utils.d.ts +13 -39
- package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.js +25 -30
- package/dist/components/FileUpload/index.d.ts.map +1 -1
- package/dist/components/FileUpload/index.js +4 -2
- package/dist/components/FiltersStrip/AppliedFilters.d.ts.map +1 -1
- package/dist/components/FiltersStrip/AppliedFilters.js +6 -6
- package/dist/components/Header/index.js +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts +3 -1
- package/dist/components/KeyboardShortCuts/Keycombo.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/Keycombo.js +11 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +38 -12
- package/dist/components/KeyboardShortCuts/ShortcutModal.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +100 -43
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +9 -6
- package/dist/components/Loader/index.js +1 -1
- package/dist/components/Menu/MenuHeaderInfo.d.ts.map +1 -1
- package/dist/components/Menu/MenuHeaderInfo.js +4 -7
- package/dist/components/Modal/Modal.types.d.ts +12 -1
- package/dist/components/Modal/Modal.types.d.ts.map +1 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Notification/Notification.types.d.ts +4 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationChipsList.js +2 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationList.js +9 -4
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.d.ts.map +1 -1
- package/dist/components/Notification/NotificationBody/NotificationList/NotificationListItem.js +169 -47
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/Notification/mockData.d.ts.map +1 -1
- package/dist/components/Select/Select.types.d.ts +4 -6
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.d.ts.map +1 -1
- package/dist/components/Select/customGroupHeading.js +9 -3
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/dropdown.js +1 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts +1 -1
- package/dist/components/Select/hooks/useMenuPosition.d.ts.map +1 -1
- package/dist/components/Select/hooks/useMenuPosition.js +25 -39
- package/dist/components/Select/hooks/useScrollIntoView.d.ts +2 -1
- package/dist/components/Select/hooks/useScrollIntoView.d.ts.map +1 -1
- package/dist/components/Select/hooks/useScrollIntoView.js +4 -2
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +6 -13
- package/dist/components/Select/menuList.d.ts.map +1 -1
- package/dist/components/Select/menuList.js +19 -19
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +2 -8
- package/dist/components/Table/AdvanceSortModal.d.ts.map +1 -1
- package/dist/components/Table/AdvanceSortModal.js +3 -5
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +27 -10
- package/dist/components/Table/CommentsPortal.d.ts.map +1 -1
- package/dist/components/Table/CommentsPortal.js +6 -10
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModal.js +5 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.d.ts.map +1 -1
- package/dist/components/Table/NewAdvanceSearchModal/NewAdvanceSearchModalItem.js +6 -1
- package/dist/components/Table/NoComments.d.ts.map +1 -1
- package/dist/components/Table/NoComments.js +2 -3
- package/dist/components/Table/index.d.ts +1 -2
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +156 -112
- package/dist/components/Table/tableFunctions.d.ts.map +1 -1
- package/dist/components/Table/tableFunctions.js +176 -104
- package/dist/components/Table/tableHeader.d.ts +2 -1
- package/dist/components/Table/tableHeader.d.ts.map +1 -1
- package/dist/components/Table/tableHeader.js +2 -0
- package/dist/components/Table/tableMoreOptions.d.ts +2 -1
- package/dist/components/Table/tableMoreOptions.d.ts.map +1 -1
- package/dist/components/Table/tableMoreOptions.js +2 -1
- package/dist/components/Table/tableSettings.d.ts +2 -1
- package/dist/components/Table/tableSettings.d.ts.map +1 -1
- package/dist/components/Table/tableSettings.js +2 -0
- package/dist/components/Table/withCommentIcon.d.ts.map +1 -1
- package/dist/components/Table/withCommentIcon.js +2 -3
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.d.ts.map +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +18 -22
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +15 -18
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelItem.js +26 -22
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/ChatChannelList.js +4 -52
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +2 -7
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +17 -17
- package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.d.ts → ChatEditedMessageType /ChatEditedMessageType.d.ts } +0 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType /ChatEditedMessageType.d.ts.map +1 -0
- package/dist/components/TableChat/components/TableChatRightSection/{ChatEditedMessageType/ChatEditedMessageType.js → ChatEditedMessageType /ChatEditedMessageType.js } +2 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +7 -8
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderAction.js +4 -8
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeaderInfo.js +18 -9
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +7 -9
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessageAvatar/ChatMessageAvatar.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts +1 -2
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +5 -9
- package/dist/components/TableChat/components/TableChatRightSection/DateSeparator/DateSeparator.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/PinedChatPanel/PinedChatPanel.js +6 -18
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts +1 -3
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.d.ts.map +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +4 -13
- package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableChat/utils/formatChatTimestamp.js +14 -0
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/AgGridHeader.js +10 -4
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +3 -1
- package/dist/components/TableOld/tableFunctions.d.ts.map +1 -1
- package/dist/components/TableOld/tableFunctions.js +176 -104
- package/dist/components/TableOld/tableHeader.d.ts +2 -1
- package/dist/components/TableOld/tableHeader.d.ts.map +1 -1
- package/dist/components/TableOld/tableHeader.js +2 -0
- package/dist/components/TextArea/index.js +1 -1
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +5195 -0
- package/dist/node_modules/@mui/icons-material/North.js +17 -0
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/global-cache/index.js +4 -5
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-callable/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/lodash/lodash.js +1 -1
- package/dist/node_modules/object-inspect/index.js +1 -2
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/utils/helper.d.ts +4 -2
- package/dist/utils/helper.d.ts.map +1 -1
- package/dist/utils/helper.js +13 -8
- package/package.json +5 -4
- package/dist/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.d.ts.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __exports as North } from "../../../_virtual/North.js";
|
|
2
|
+
import require$$0 from "@babel/runtime/helpers/interopRequireDefault";
|
|
3
|
+
import { __require as requireCreateSvgIcon } from "./utils/createSvgIcon.js";
|
|
4
|
+
import require$$2 from "react/jsx-runtime";
|
|
5
|
+
var _interopRequireDefault = require$$0;
|
|
6
|
+
Object.defineProperty(North, "__esModule", {
|
|
7
|
+
value: true
|
|
8
|
+
});
|
|
9
|
+
var default_1 = North.default = void 0;
|
|
10
|
+
var _createSvgIcon = _interopRequireDefault(requireCreateSvgIcon());
|
|
11
|
+
var _jsxRuntime = require$$2;
|
|
12
|
+
default_1 = North.default = (0, _createSvgIcon.default)(/* @__PURE__ */ (0, _jsxRuntime.jsx)("path", {
|
|
13
|
+
d: "m5 9 1.41 1.41L11 5.83V22h2V5.83l4.59 4.59L19 9l-7-7z"
|
|
14
|
+
}), "North");
|
|
15
|
+
export {
|
|
16
|
+
default_1 as default
|
|
17
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as callBind } from "../../_virtual/
|
|
1
|
+
import { __module as callBind } from "../../_virtual/index14.js";
|
|
2
2
|
import { __require as requireSetFunctionLength } from "../set-function-length/index.js";
|
|
3
3
|
import { __require as requireEsDefineProperty } from "../es-define-property/index.js";
|
|
4
4
|
import { __require as requireCallBindApplyHelpers } from "../call-bind-apply-helpers/index.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { commonjsGlobal } from "../../_virtual/_commonjsHelpers.js";
|
|
2
1
|
import { __require as requireDefineProperties } from "../define-properties/index.js";
|
|
3
2
|
import { __require as requireIsSymbol } from "../is-symbol/index.js";
|
|
4
3
|
var globalCache_1;
|
|
@@ -16,14 +15,14 @@ function requireGlobalCache() {
|
|
|
16
15
|
return true;
|
|
17
16
|
};
|
|
18
17
|
var ensureCache = function ensureCache2() {
|
|
19
|
-
if (!
|
|
18
|
+
if (!globalThis[globalKey]) {
|
|
20
19
|
var properties = {};
|
|
21
20
|
properties[globalKey] = {};
|
|
22
21
|
var predicates = {};
|
|
23
22
|
predicates[globalKey] = trueThunk;
|
|
24
|
-
define(
|
|
23
|
+
define(globalThis, properties, predicates);
|
|
25
24
|
}
|
|
26
|
-
return
|
|
25
|
+
return globalThis[globalKey];
|
|
27
26
|
};
|
|
28
27
|
var cache = ensureCache();
|
|
29
28
|
var isPrimitive = function isPrimitive2(val) {
|
|
@@ -42,7 +41,7 @@ function requireGlobalCache() {
|
|
|
42
41
|
};
|
|
43
42
|
var globalCache = {
|
|
44
43
|
clear: function clear() {
|
|
45
|
-
delete
|
|
44
|
+
delete globalThis[globalKey];
|
|
46
45
|
cache = ensureCache();
|
|
47
46
|
},
|
|
48
47
|
"delete": function deleteKey(key) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as reactIs } from "../../../../_virtual/
|
|
1
|
+
import { __module as reactIs } from "../../../../_virtual/index16.js";
|
|
2
2
|
import { __require as requireReactIs_production_min } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as requireReactIs_development } from "./cjs/react-is.development.js";
|
|
4
4
|
if (process.env.NODE_ENV === "production") {
|
|
@@ -61,7 +61,7 @@ function requireIsCallable() {
|
|
|
61
61
|
if (typeof document === "object") {
|
|
62
62
|
var all = document.all;
|
|
63
63
|
if (toStr.call(all) === toStr.call(document.all)) {
|
|
64
|
-
isDDA = function
|
|
64
|
+
isDDA = function isDocumentDotAll2(value) {
|
|
65
65
|
if ((isIE68 || !value) && (typeof value === "undefined" || typeof value === "object")) {
|
|
66
66
|
try {
|
|
67
67
|
var str = toStr.call(value);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as isSymbol } from "../../_virtual/
|
|
1
|
+
import { __module as isSymbol } from "../../_virtual/index15.js";
|
|
2
2
|
import { __require as requireCallBound } from "../call-bound/index.js";
|
|
3
3
|
import { __require as requireHasSymbols } from "../has-symbols/index.js";
|
|
4
4
|
import { __require as requireSafeRegexTest } from "../safe-regex-test/index.js";
|
|
@@ -334,7 +334,7 @@ lodash.exports;
|
|
|
334
334
|
"\u2029": "u2029"
|
|
335
335
|
};
|
|
336
336
|
var freeParseFloat = parseFloat, freeParseInt = parseInt;
|
|
337
|
-
var freeGlobal = typeof
|
|
337
|
+
var freeGlobal = typeof globalThis == "object" && globalThis && globalThis.Object === Object && globalThis;
|
|
338
338
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
339
339
|
var root = freeGlobal || freeSelf || Function("return this")();
|
|
340
340
|
var freeExports = exports$1 && !exports$1.nodeType && exports$1;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { commonjsGlobal } from "../../_virtual/_commonjsHelpers.js";
|
|
2
1
|
import require$$0 from "../../_virtual/___vite-browser-external.js";
|
|
3
2
|
var objectInspect;
|
|
4
3
|
var hasRequiredObjectInspect;
|
|
@@ -231,7 +230,7 @@ function requireObjectInspect() {
|
|
|
231
230
|
if (typeof window !== "undefined" && obj === window) {
|
|
232
231
|
return "{ [object Window] }";
|
|
233
232
|
}
|
|
234
|
-
if (typeof globalThis !== "undefined" && obj === globalThis || typeof
|
|
233
|
+
if (typeof globalThis !== "undefined" && obj === globalThis || typeof globalThis !== "undefined" && obj === globalThis) {
|
|
235
234
|
return "{ [object globalThis] }";
|
|
236
235
|
}
|
|
237
236
|
if (!isDate(obj) && !isRegExp(obj)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as dist } from "../../../_virtual/
|
|
1
|
+
import { __exports as dist } from "../../../_virtual/index13.js";
|
|
2
2
|
import require$$0 from "@babel/runtime/helpers/interopRequireDefault";
|
|
3
3
|
import { __require as requireArray_prototype_flat } from "../../array.prototype.flat/index.js";
|
|
4
4
|
import { __require as requireGlobalCache } from "../../global-cache/index.js";
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -78,9 +78,11 @@ export declare function hasDuplicateColumns(listOfColumns: string[]): boolean;
|
|
|
78
78
|
*/
|
|
79
79
|
export declare function isColumnSelectionDuplicate(formValues: FormValues, currentValue: string, pendingDeletions: string[], fields: FilterField[]): boolean;
|
|
80
80
|
/**
|
|
81
|
-
* Check if a view name is unique among saved views
|
|
81
|
+
* Check if a view name is unique among saved views.
|
|
82
|
+
* When `isViewNameUniqueAcrossTypes` is true, names must be unique across all
|
|
83
|
+
* view types; otherwise uniqueness is only within the selected type.
|
|
82
84
|
*/
|
|
83
|
-
export declare function isViewNameUnique(inputValue: string, selectedViewType: string | null | undefined,
|
|
85
|
+
export declare function isViewNameUnique(inputValue: string, selectedViewType: string | null | undefined, _isDefaultView: boolean | null | undefined, savedViewsOptions: SavedView[], excludeView?: Pick<SavedView, 'viewName' | 'viewType'> | null, isViewNameUniqueAcrossTypes?: boolean): boolean;
|
|
84
86
|
/**
|
|
85
87
|
* Convert a string to camelCase: lowercase first word, capitalize subsequent words,
|
|
86
88
|
* strip non-alphanumeric characters.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot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AM,EAAE,EAC1B,MAAM,EAAE,WAAW,EAAE,GACpB,OAAO,CAgBT;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC3C,cAAc,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EAC1C,iBAAiB,EAAE,SAAS,EAAE,EAC9B,WAAW,GAAE,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,UAAU,CAAC,GAAG,IAAW,EACnE,2BAA2B,UAAQ,GAClC,OAAO,CAwBT;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,KAAK,MAAM,KAAG,MAM7B,CAAC;AAEd;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CASvE"}
|
package/dist/utils/helper.js
CHANGED
|
@@ -116,15 +116,20 @@ function isColumnSelectionDuplicate(formValues, currentValue, pendingDeletions,
|
|
|
116
116
|
return ((_a = filter.column) == null ? void 0 : _a.value) === currentValue;
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function isViewNameUnique(inputValue, selectedViewType,
|
|
120
|
-
const
|
|
121
|
-
const
|
|
122
|
-
const
|
|
119
|
+
function isViewNameUnique(inputValue, selectedViewType, _isDefaultView, savedViewsOptions, excludeView = null, isViewNameUniqueAcrossTypes = false) {
|
|
120
|
+
const normalizeName = (value) => (value || "").replace(/\s+/g, "").toLowerCase();
|
|
121
|
+
const normalizeType = (value) => (value || "").replace(/\s+/g, "");
|
|
122
|
+
const normalizedInputName = normalizeName(inputValue);
|
|
123
|
+
const normalizedInputType = normalizeType(selectedViewType);
|
|
124
|
+
if (!normalizedInputName) return true;
|
|
125
|
+
const isExcluded = (view) => Boolean(
|
|
126
|
+
excludeView && normalizeName(view.viewName) === normalizeName(excludeView.viewName) && normalizeType(view.viewType) === normalizeType(excludeView.viewType)
|
|
127
|
+
);
|
|
123
128
|
return !savedViewsOptions.find((view) => {
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
return
|
|
129
|
+
if (isExcluded(view)) return false;
|
|
130
|
+
const nameMatches = normalizeName(view.viewName) === normalizedInputName;
|
|
131
|
+
if (!nameMatches) return false;
|
|
132
|
+
return isViewNameUniqueAcrossTypes || normalizeType(view.viewType) === normalizedInputType;
|
|
128
133
|
});
|
|
129
134
|
}
|
|
130
135
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "impact-ui",
|
|
3
|
-
"version": "4.0.1-alpha.
|
|
3
|
+
"version": "4.0.1-alpha.21",
|
|
4
4
|
"description": "Impact Analytics UI library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
"@chromatic-com/storybook": "^5.0.1",
|
|
108
108
|
"@emotion/react": "^11.14.0",
|
|
109
109
|
"@emotion/styled": "^11.14.1",
|
|
110
|
+
"@impactsmartsuite/impact-icons": "^0.1.2",
|
|
110
111
|
"@mui/base": "^5.0.0-alpha.82",
|
|
111
112
|
"@mui/docs": "^5.8.0",
|
|
112
113
|
"@mui/envinfo": "^2.0.6",
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
"@mui/types": "^7.1.3",
|
|
122
123
|
"@mui/x-date-pickers": "^5.0.0-alpha.4",
|
|
123
124
|
"@storybook/addon-a11y": "^10.2.15",
|
|
124
|
-
"@storybook/addon-docs": "
|
|
125
|
+
"@storybook/addon-docs": "10.2.15",
|
|
125
126
|
"@storybook/addon-vitest": "^10.2.15",
|
|
126
127
|
"@storybook/react-vite": "^10.2.15",
|
|
127
128
|
"@storybook/test": "^8.6.15",
|
|
@@ -236,6 +237,7 @@
|
|
|
236
237
|
"@tiptap/suggestion": "^2.26.1",
|
|
237
238
|
"dompurify": "^3.2.7",
|
|
238
239
|
"emoji-picker-react": "^4.14.0",
|
|
240
|
+
"highcharts-border-radius": "^0.0.4",
|
|
239
241
|
"prosemirror-model": "^1.25.3",
|
|
240
242
|
"prosemirror-state": "^1.4.3",
|
|
241
243
|
"prosemirror-view": "^1.40.1",
|
|
@@ -244,8 +246,7 @@
|
|
|
244
246
|
"react-select": "^5.7.0",
|
|
245
247
|
"react-textarea-autosize": "^8.5.9",
|
|
246
248
|
"react-window": "^1.8.11",
|
|
247
|
-
"tippy.js": "^6.3.7"
|
|
248
|
-
"highcharts-border-radius": "^0.0.4"
|
|
249
|
+
"tippy.js": "^6.3.7"
|
|
249
250
|
},
|
|
250
251
|
"browserslist": {
|
|
251
252
|
"production": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChatEditedMessageType.d.ts","sourceRoot":"","sources":["../../../../../../src/components/TableChat/components/TableChatRightSection/ChatEditedMessageType/ChatEditedMessageType.tsx"],"names":[],"mappings":"AAGA,OAAO,qCAAqC,CAAC;AAO7C,QAAA,MAAM,qBAAqB,GAAI;;;;;;;;;CAS9B,4CAuCA,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|