akeyless-client-commons 1.1.71 → 1.1.73

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.
@@ -157,6 +157,7 @@ interface SearchSelectProps {
157
157
  searchPlaceholder?: string;
158
158
  defaultValue?: SearchSelectOptions["value"];
159
159
  dropdownClassName?: string;
160
+ dropdownContainerClassName?: string;
160
161
  dropdownOptionClassName?: string;
161
162
  notFoundLabelClassName?: string;
162
163
  buttonClassName?: string;
@@ -261,6 +262,7 @@ interface SelectWithSearchProps extends BaseElementProps {
261
262
  defaultValue?: SearchSelectOptions["value"];
262
263
  dropdownClassName?: string;
263
264
  dropdownOptionClassName?: string;
265
+ dropdownContainerClassName?: string;
264
266
  placeholder?: string;
265
267
  notFoundLabel?: string;
266
268
  searchPlaceholder?: string;
@@ -602,7 +604,7 @@ declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sort
602
604
  declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
603
605
  declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
604
606
  declare function MultiSelect({ onChange, selectedOptions, emptyOptionsElement, unremovableOptions, options, styles, name, placeholder, labelContent, required, labelClassName, groupBy, onSearch, onSearchSync, triggerSearchOnFocus, sortDirection, sortAsNumber, direction, createNewOptionLabel, searchInputProps, labelWithDots, labelsCommonClassName, labelStyle, closeDropdownOnSelect, elementsCommonClassName, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
605
- declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, buttonClassName, buttonFocusClassName, sortDirection, sortAsNumber, disabled, direction, createNewOptionLabel, createNewOptionContainerClassName, labelWithDots, labelsCommonClassName, elementsCommonClassName, labelStyle, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
607
+ declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, buttonClassName, buttonFocusClassName, sortDirection, sortAsNumber, disabled, direction, createNewOptionLabel, createNewOptionContainerClassName, labelWithDots, labelsCommonClassName, elementsCommonClassName, labelStyle, dropdownContainerClassName, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
606
608
  declare const TextAreaContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, value, onChange, direction, labelWithDots, labelsCommonClassName, elementsCommonClassName, labelStyle, }: TextAreaContainerProps) => react_jsx_runtime.JSX.Element;
607
609
  declare const FormSeparator: ({ props, children }: FormSeparatorProps) => react_jsx_runtime.JSX.Element;
608
610
  declare const CheckboxContainer: ({ id, checked, setChecked, circleClassName, className, containerClassName, elementClassName, name, direction, labelClassName, labelContent, labelWithDots, labelsCommonClassName, props, rotate, disabled, title, inputProps, required, labelStyle, elementsCommonClassName, }: CheckboxContainerProps) => react_jsx_runtime.JSX.Element;
@@ -157,6 +157,7 @@ interface SearchSelectProps {
157
157
  searchPlaceholder?: string;
158
158
  defaultValue?: SearchSelectOptions["value"];
159
159
  dropdownClassName?: string;
160
+ dropdownContainerClassName?: string;
160
161
  dropdownOptionClassName?: string;
161
162
  notFoundLabelClassName?: string;
162
163
  buttonClassName?: string;
@@ -261,6 +262,7 @@ interface SelectWithSearchProps extends BaseElementProps {
261
262
  defaultValue?: SearchSelectOptions["value"];
262
263
  dropdownClassName?: string;
263
264
  dropdownOptionClassName?: string;
265
+ dropdownContainerClassName?: string;
264
266
  placeholder?: string;
265
267
  notFoundLabel?: string;
266
268
  searchPlaceholder?: string;
@@ -602,7 +604,7 @@ declare const useSortValues: (options: any[], sortDirection: "abc" | "cba", sort
602
604
  declare const InputContainer: ({ validationError, name, inputType, labelContent, defaultValue, validationName, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, onChange, direction, value, labelWithDots, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: InputContainerProps) => react_jsx_runtime.JSX.Element;
603
605
  declare const SelectContainer: ({ name, labelContent, containerClassName, labelClassName, defaultValue, elementClassName, optionClassName, required, options, selectClassName, optionsContainerClassName, sortDirection, sortAsNumber, direction, onChange, labelWithDots, iconClassName, labelsCommonClassName, elementsCommonClassName, title, labelStyle, }: SelectContainerProps) => react_jsx_runtime.JSX.Element;
604
606
  declare function MultiSelect({ onChange, selectedOptions, emptyOptionsElement, unremovableOptions, options, styles, name, placeholder, labelContent, required, labelClassName, groupBy, onSearch, onSearchSync, triggerSearchOnFocus, sortDirection, sortAsNumber, direction, createNewOptionLabel, searchInputProps, labelWithDots, labelsCommonClassName, labelStyle, closeDropdownOnSelect, elementsCommonClassName, }: MultiSelectProps): react_jsx_runtime.JSX.Element;
605
- declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, buttonClassName, buttonFocusClassName, sortDirection, sortAsNumber, disabled, direction, createNewOptionLabel, createNewOptionContainerClassName, labelWithDots, labelsCommonClassName, elementsCommonClassName, labelStyle, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
607
+ declare const SelectWithSearch: ({ options, labelClassName, labelContent, name, onChange, value, placeholder, required, defaultValue, notFoundLabel, searchPlaceholder, containerClassName, dropdownClassName, dropdownOptionClassName, elementClassName, notFoundLabelClassName, searchClassName, buttonClassName, buttonFocusClassName, sortDirection, sortAsNumber, disabled, direction, createNewOptionLabel, createNewOptionContainerClassName, labelWithDots, labelsCommonClassName, elementsCommonClassName, labelStyle, dropdownContainerClassName, }: SelectWithSearchProps) => react_jsx_runtime.JSX.Element;
606
608
  declare const TextAreaContainer: ({ name, labelContent, defaultValue, containerClassName, labelClassName, elementClassName, required, placeholder, props, minLength, onKeyDown, value, onChange, direction, labelWithDots, labelsCommonClassName, elementsCommonClassName, labelStyle, }: TextAreaContainerProps) => react_jsx_runtime.JSX.Element;
607
609
  declare const FormSeparator: ({ props, children }: FormSeparatorProps) => react_jsx_runtime.JSX.Element;
608
610
  declare const CheckboxContainer: ({ id, checked, setChecked, circleClassName, className, containerClassName, elementClassName, name, direction, labelClassName, labelContent, labelWithDots, labelsCommonClassName, props, rotate, disabled, title, inputProps, required, labelStyle, elementsCommonClassName, }: CheckboxContainerProps) => react_jsx_runtime.JSX.Element;
@@ -5153,7 +5153,7 @@ var import_lucide_react4 = require("lucide-react");
5153
5153
  var import_react10 = require("react");
5154
5154
  var import_jsx_runtime17 = require("react/jsx-runtime");
5155
5155
  function SearchSelect(param) {
5156
- var options = param.options, name = param.name, _param_selectPlaceholder = param.selectPlaceholder, selectPlaceholder = _param_selectPlaceholder === void 0 ? "Select" : _param_selectPlaceholder, defaultValue = param.defaultValue, _param_searchPlaceholder = param.searchPlaceholder, searchPlaceholder = _param_searchPlaceholder === void 0 ? "Search" : _param_searchPlaceholder, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, notFoundLabel = param.notFoundLabel, notFoundLabelClassName = param.notFoundLabelClassName, elementClassName = param.elementClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, value = param.value, disabled = param.disabled, onChange = param.onChange, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName;
5156
+ var options = param.options, name = param.name, _param_selectPlaceholder = param.selectPlaceholder, selectPlaceholder = _param_selectPlaceholder === void 0 ? "Select" : _param_selectPlaceholder, defaultValue = param.defaultValue, _param_searchPlaceholder = param.searchPlaceholder, searchPlaceholder = _param_searchPlaceholder === void 0 ? "Search" : _param_searchPlaceholder, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, notFoundLabel = param.notFoundLabel, notFoundLabelClassName = param.notFoundLabelClassName, elementClassName = param.elementClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, value = param.value, disabled = param.disabled, onChange = param.onChange, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName, dropdownContainerClassName = param.dropdownContainerClassName;
5157
5157
  var id = (0, import_react10.useId)();
5158
5158
  var _ref = _sliced_to_array((0, import_react10.useState)(false), 2), open = _ref[0], setOpen = _ref[1];
5159
5159
  var _ref1 = _sliced_to_array((0, import_react10.useState)(value || defaultValue || ""), 2), selectedValue = _ref1[0], setSelectedValue = _ref1[1];
@@ -5249,7 +5249,7 @@ function SearchSelect(param) {
5249
5249
  })
5250
5250
  }),
5251
5251
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(PopoverContent, {
5252
- className: cn("border-input w-full min-w-[var(--radix-popper-anchor-width)] p-0 bg-[#fff]"),
5252
+ className: cn("border-input w-full min-w-[var(--radix-popper-anchor-width)] p-0 bg-[#fff]", dropdownContainerClassName),
5253
5253
  align: "start",
5254
5254
  children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Command, {
5255
5255
  children: [
@@ -6368,7 +6368,7 @@ function MultiSelect(param) {
6368
6368
  }));
6369
6369
  }
6370
6370
  var SelectWithSearch = function(param) {
6371
- var options = param.options, labelClassName = param.labelClassName, labelContent = param.labelContent, name = param.name, onChange = param.onChange, value = param.value, placeholder = param.placeholder, required = param.required, defaultValue = param.defaultValue, notFoundLabel = param.notFoundLabel, searchPlaceholder = param.searchPlaceholder, containerClassName = param.containerClassName, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, elementClassName = param.elementClassName, notFoundLabelClassName = param.notFoundLabelClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, disabled = param.disabled, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, elementsCommonClassName = param.elementsCommonClassName, labelStyle = param.labelStyle;
6371
+ var options = param.options, labelClassName = param.labelClassName, labelContent = param.labelContent, name = param.name, onChange = param.onChange, value = param.value, placeholder = param.placeholder, required = param.required, defaultValue = param.defaultValue, notFoundLabel = param.notFoundLabel, searchPlaceholder = param.searchPlaceholder, containerClassName = param.containerClassName, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, elementClassName = param.elementClassName, notFoundLabelClassName = param.notFoundLabelClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, disabled = param.disabled, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, elementsCommonClassName = param.elementsCommonClassName, labelStyle = param.labelStyle, dropdownContainerClassName = param.dropdownContainerClassName;
6372
6372
  var sortOptions = useSortValues(options, sortDirection, sortAsNumber);
6373
6373
  var containerProps = (0, import_react15.useMemo)(function() {
6374
6374
  return {
@@ -6414,6 +6414,7 @@ var SelectWithSearch = function(param) {
6414
6414
  searchPlaceholder: searchPlaceholder,
6415
6415
  dropdownClassName: dropdownClassName,
6416
6416
  dropdownOptionClassName: dropdownOptionClassName,
6417
+ dropdownContainerClassName: dropdownContainerClassName,
6417
6418
  notFoundLabelClassName: notFoundLabelClassName,
6418
6419
  notFoundLabel: notFoundLabel
6419
6420
  })
@@ -4931,7 +4931,7 @@ import { CheckIcon, ChevronDownIcon } from "lucide-react";
4931
4931
  import { useCallback as useCallback5, useEffect as useEffect6, useId, useMemo as useMemo5, useState as useState6 } from "react";
4932
4932
  import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
4933
4933
  function SearchSelect(param) {
4934
- var options = param.options, name = param.name, _param_selectPlaceholder = param.selectPlaceholder, selectPlaceholder = _param_selectPlaceholder === void 0 ? "Select" : _param_selectPlaceholder, defaultValue = param.defaultValue, _param_searchPlaceholder = param.searchPlaceholder, searchPlaceholder = _param_searchPlaceholder === void 0 ? "Search" : _param_searchPlaceholder, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, notFoundLabel = param.notFoundLabel, notFoundLabelClassName = param.notFoundLabelClassName, elementClassName = param.elementClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, value = param.value, disabled = param.disabled, onChange = param.onChange, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName;
4934
+ var options = param.options, name = param.name, _param_selectPlaceholder = param.selectPlaceholder, selectPlaceholder = _param_selectPlaceholder === void 0 ? "Select" : _param_selectPlaceholder, defaultValue = param.defaultValue, _param_searchPlaceholder = param.searchPlaceholder, searchPlaceholder = _param_searchPlaceholder === void 0 ? "Search" : _param_searchPlaceholder, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, notFoundLabel = param.notFoundLabel, notFoundLabelClassName = param.notFoundLabelClassName, elementClassName = param.elementClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, value = param.value, disabled = param.disabled, onChange = param.onChange, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName, dropdownContainerClassName = param.dropdownContainerClassName;
4935
4935
  var id = useId();
4936
4936
  var _useState6 = _sliced_to_array(useState6(false), 2), open = _useState6[0], setOpen = _useState6[1];
4937
4937
  var _useState61 = _sliced_to_array(useState6(value || defaultValue || ""), 2), selectedValue = _useState61[0], setSelectedValue = _useState61[1];
@@ -5027,7 +5027,7 @@ function SearchSelect(param) {
5027
5027
  })
5028
5028
  }),
5029
5029
  /* @__PURE__ */ jsx17(PopoverContent, {
5030
- className: cn("border-input w-full min-w-[var(--radix-popper-anchor-width)] p-0 bg-[#fff]"),
5030
+ className: cn("border-input w-full min-w-[var(--radix-popper-anchor-width)] p-0 bg-[#fff]", dropdownContainerClassName),
5031
5031
  align: "start",
5032
5032
  children: /* @__PURE__ */ jsxs11(Command, {
5033
5033
  children: [
@@ -6146,7 +6146,7 @@ function MultiSelect(param) {
6146
6146
  }));
6147
6147
  }
6148
6148
  var SelectWithSearch = function(param) {
6149
- var options = param.options, labelClassName = param.labelClassName, labelContent = param.labelContent, name = param.name, onChange = param.onChange, value = param.value, placeholder = param.placeholder, required = param.required, defaultValue = param.defaultValue, notFoundLabel = param.notFoundLabel, searchPlaceholder = param.searchPlaceholder, containerClassName = param.containerClassName, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, elementClassName = param.elementClassName, notFoundLabelClassName = param.notFoundLabelClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, disabled = param.disabled, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, elementsCommonClassName = param.elementsCommonClassName, labelStyle = param.labelStyle;
6149
+ var options = param.options, labelClassName = param.labelClassName, labelContent = param.labelContent, name = param.name, onChange = param.onChange, value = param.value, placeholder = param.placeholder, required = param.required, defaultValue = param.defaultValue, notFoundLabel = param.notFoundLabel, searchPlaceholder = param.searchPlaceholder, containerClassName = param.containerClassName, dropdownClassName = param.dropdownClassName, dropdownOptionClassName = param.dropdownOptionClassName, elementClassName = param.elementClassName, notFoundLabelClassName = param.notFoundLabelClassName, searchClassName = param.searchClassName, buttonClassName = param.buttonClassName, buttonFocusClassName = param.buttonFocusClassName, _param_sortDirection = param.sortDirection, sortDirection = _param_sortDirection === void 0 ? "abc" : _param_sortDirection, sortAsNumber = param.sortAsNumber, disabled = param.disabled, direction = param.direction, createNewOptionLabel = param.createNewOptionLabel, createNewOptionContainerClassName = param.createNewOptionContainerClassName, labelWithDots = param.labelWithDots, labelsCommonClassName = param.labelsCommonClassName, elementsCommonClassName = param.elementsCommonClassName, labelStyle = param.labelStyle, dropdownContainerClassName = param.dropdownContainerClassName;
6150
6150
  var sortOptions = useSortValues(options, sortDirection, sortAsNumber);
6151
6151
  var containerProps = useMemo9(function() {
6152
6152
  return {
@@ -6192,6 +6192,7 @@ var SelectWithSearch = function(param) {
6192
6192
  searchPlaceholder: searchPlaceholder,
6193
6193
  dropdownClassName: dropdownClassName,
6194
6194
  dropdownOptionClassName: dropdownOptionClassName,
6195
+ dropdownContainerClassName: dropdownContainerClassName,
6195
6196
  notFoundLabelClassName: notFoundLabelClassName,
6196
6197
  notFoundLabel: notFoundLabel
6197
6198
  })
@@ -226,6 +226,8 @@ declare const international_israel_phone_format: ConvertFunction;
226
226
  declare const get_international_phone_number: ConvertFunction;
227
227
  declare const displayFormatPhoneNumber: (phoneNumber: string, separator?: string) => string;
228
228
  declare const is_iccid: (number: string) => boolean;
229
+ declare const is_msisdn: (number: string) => boolean;
230
+ declare const is_fixed_or_service_number: (number: string) => boolean;
229
231
 
230
232
  declare function cn(...inputs: ClassValue[]): string;
231
233
 
@@ -321,4 +323,4 @@ declare class SocketService {
321
323
  }
322
324
  declare const socketServiceInstance: SocketService;
323
325
 
324
- export { type EmailAttachment, type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterEventsDomain, callCenterGeoDomain, carsRegex, chartsRegex, checkUserPermissions, cleanNxSites, cloudwiseDomain, cn, collections, colorRegex, createAttachmentFromBlob, createAttachmentFromUrl, createSelectors, dataSocketDomain, dataSyncDomain, db, delete_document, devicesDomain, displayFormatPhoneNumber, durationToSeconds, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFileUrlFromStorage, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, get_international_phone_number, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, notificationsDomain, numbersOnlyRegex, numbersRegex, nxApiCall, parseMultiSelectInput, parsePermissions, parseSnapshotAsArray, parseSnapshotAsObject, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, secondsToDuration, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, socketServiceInstance, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, uploadFileToStorage, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateAndCast, validateUserStatusAndPermissions };
326
+ export { type EmailAttachment, type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterEventsDomain, callCenterGeoDomain, carsRegex, chartsRegex, checkUserPermissions, cleanNxSites, cloudwiseDomain, cn, collections, colorRegex, createAttachmentFromBlob, createAttachmentFromUrl, createSelectors, dataSocketDomain, dataSyncDomain, db, delete_document, devicesDomain, displayFormatPhoneNumber, durationToSeconds, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFileUrlFromStorage, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, get_international_phone_number, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_fixed_or_service_number, is_iccid, is_msisdn, local_israel_phone_format, mode, multiStringFormat, notificationsDomain, numbersOnlyRegex, numbersRegex, nxApiCall, parseMultiSelectInput, parsePermissions, parseSnapshotAsArray, parseSnapshotAsObject, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, secondsToDuration, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, socketServiceInstance, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, uploadFileToStorage, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateAndCast, validateUserStatusAndPermissions };
@@ -226,6 +226,8 @@ declare const international_israel_phone_format: ConvertFunction;
226
226
  declare const get_international_phone_number: ConvertFunction;
227
227
  declare const displayFormatPhoneNumber: (phoneNumber: string, separator?: string) => string;
228
228
  declare const is_iccid: (number: string) => boolean;
229
+ declare const is_msisdn: (number: string) => boolean;
230
+ declare const is_fixed_or_service_number: (number: string) => boolean;
229
231
 
230
232
  declare function cn(...inputs: ClassValue[]): string;
231
233
 
@@ -321,4 +323,4 @@ declare class SocketService {
321
323
  }
322
324
  declare const socketServiceInstance: SocketService;
323
325
 
324
- export { type EmailAttachment, type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterEventsDomain, callCenterGeoDomain, carsRegex, chartsRegex, checkUserPermissions, cleanNxSites, cloudwiseDomain, cn, collections, colorRegex, createAttachmentFromBlob, createAttachmentFromUrl, createSelectors, dataSocketDomain, dataSyncDomain, db, delete_document, devicesDomain, displayFormatPhoneNumber, durationToSeconds, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFileUrlFromStorage, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, get_international_phone_number, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, notificationsDomain, numbersOnlyRegex, numbersRegex, nxApiCall, parseMultiSelectInput, parsePermissions, parseSnapshotAsArray, parseSnapshotAsObject, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, secondsToDuration, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, socketServiceInstance, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, uploadFileToStorage, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateAndCast, validateUserStatusAndPermissions };
326
+ export { type EmailAttachment, type ValidationType, addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterEventsDomain, callCenterGeoDomain, carsRegex, chartsRegex, checkUserPermissions, cleanNxSites, cloudwiseDomain, cn, collections, colorRegex, createAttachmentFromBlob, createAttachmentFromUrl, createSelectors, dataSocketDomain, dataSyncDomain, db, delete_document, devicesDomain, displayFormatPhoneNumber, durationToSeconds, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFileUrlFromStorage, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, get_international_phone_number, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_fixed_or_service_number, is_iccid, is_msisdn, local_israel_phone_format, mode, multiStringFormat, notificationsDomain, numbersOnlyRegex, numbersRegex, nxApiCall, parseMultiSelectInput, parsePermissions, parseSnapshotAsArray, parseSnapshotAsObject, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, secondsToDuration, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, socketServiceInstance, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, uploadFileToStorage, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateAndCast, validateUserStatusAndPermissions };
@@ -516,9 +516,15 @@ __export(index_exports, {
516
516
  isNodeEnv: function() {
517
517
  return isNodeEnv;
518
518
  },
519
+ is_fixed_or_service_number: function() {
520
+ return is_fixed_or_service_number;
521
+ },
519
522
  is_iccid: function() {
520
523
  return is_iccid;
521
524
  },
525
+ is_msisdn: function() {
526
+ return is_msisdn;
527
+ },
522
528
  local_israel_phone_format: function() {
523
529
  return local_israel_phone_format;
524
530
  },
@@ -672,18 +678,30 @@ var international_israel_phone_format = function(phone) {
672
678
  return "+972".concat(validNumber);
673
679
  };
674
680
  var get_international_phone_number = function(phone) {
675
- if (!phone) return "+972";
681
+ if (!phone) return "-";
676
682
  return isInternational(phone) ? phone : international_israel_phone_format(phone);
677
683
  };
678
684
  var displayFormatPhoneNumber = function(phoneNumber, separator) {
679
- if (isInternational(phoneNumber)) {
680
- var phoneNumberObject = (0, import_libphonenumber_js.parsePhoneNumberFromString)(phoneNumber);
681
- if (!phoneNumberObject) {
682
- return phoneNumber;
685
+ if (!phoneNumber) return "";
686
+ var cleaned = phoneNumber.replace(/[\s\-]/g, "");
687
+ var sep = separator !== null && separator !== void 0 ? separator : "-";
688
+ if (isInternational(cleaned)) {
689
+ var phone_obj = (0, import_libphonenumber_js.parsePhoneNumberFromString)(cleaned);
690
+ if (!phone_obj) return cleaned;
691
+ return phone_obj.formatInternational().replace(/\s/g, sep);
692
+ }
693
+ if (is_fixed_or_service_number(cleaned)) {
694
+ if (/^(1700|1800|1900|1599)/.test(cleaned)) {
695
+ return cleaned.replace(/^(\d{4})(\d{3})(\d{3,4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
696
+ }
697
+ if (/^07[2-8]/.test(cleaned)) {
698
+ return cleaned.replace(/^(\d{3})(\d{3})(\d{4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
699
+ }
700
+ if (/^(02|03|04|08|09)/.test(cleaned)) {
701
+ return cleaned.replace(/^(\d{2})(\d{3})(\d{4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
683
702
  }
684
- return phoneNumberObject.formatInternational().replace(/\s/g, separator !== null && separator !== void 0 ? separator : "");
685
703
  }
686
- return phoneNumber.replace(/(\d{3})(\d{3})(\d{4})/, "$1-$2-$3");
704
+ return cleaned.replace(/^(\d{3})(\d{3})(\d{4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
687
705
  };
688
706
  var is_iccid = function(number) {
689
707
  if (number.length < 19 || number.length > 22) return false;
@@ -691,6 +709,47 @@ var is_iccid = function(number) {
691
709
  if (!number.startsWith("89")) return false;
692
710
  return true;
693
711
  };
712
+ var is_msisdn = function(number) {
713
+ if (number.length < 10 || number.length > 15) return false;
714
+ if (!/^\d+$/.test(number)) return false;
715
+ return true;
716
+ };
717
+ var is_fixed_or_service_number = function(number) {
718
+ if (!number) return false;
719
+ var cleaned = number.replace(/[\s\-]/g, "");
720
+ if (!/^\d+$/.test(cleaned)) return false;
721
+ if (cleaned.length < 7 || cleaned.length > 15) return false;
722
+ var landline_prefixes = [
723
+ "02",
724
+ "03",
725
+ "04",
726
+ "08",
727
+ "09"
728
+ ];
729
+ var voip_prefixes = [
730
+ "072",
731
+ "073",
732
+ "074",
733
+ "076",
734
+ "077",
735
+ "078"
736
+ ];
737
+ var service_prefixes = [
738
+ "1700",
739
+ "1800",
740
+ "1900",
741
+ "1599",
742
+ "1200",
743
+ "1212"
744
+ ];
745
+ return landline_prefixes.some(function(p) {
746
+ return cleaned.startsWith(p);
747
+ }) || voip_prefixes.some(function(p) {
748
+ return cleaned.startsWith(p);
749
+ }) || service_prefixes.some(function(p) {
750
+ return cleaned.startsWith(p);
751
+ });
752
+ };
694
753
  // src/helpers/permissions.ts
695
754
  var checkUserPermissions = function(userPermissions, entity, permissions, mode2) {
696
755
  var userValues = userPermissions[entity];
@@ -3061,7 +3120,9 @@ var socketServiceInstance = SocketService.getInstance();
3061
3120
  isInternationalIsraelPhone: isInternationalIsraelPhone,
3062
3121
  isLocal: isLocal,
3063
3122
  isNodeEnv: isNodeEnv,
3123
+ is_fixed_or_service_number: is_fixed_or_service_number,
3064
3124
  is_iccid: is_iccid,
3125
+ is_msisdn: is_msisdn,
3065
3126
  local_israel_phone_format: local_israel_phone_format,
3066
3127
  mode: mode,
3067
3128
  multiStringFormat: multiStringFormat,
@@ -292,18 +292,30 @@ var international_israel_phone_format = function(phone) {
292
292
  return "+972".concat(validNumber);
293
293
  };
294
294
  var get_international_phone_number = function(phone) {
295
- if (!phone) return "+972";
295
+ if (!phone) return "-";
296
296
  return isInternational(phone) ? phone : international_israel_phone_format(phone);
297
297
  };
298
298
  var displayFormatPhoneNumber = function(phoneNumber, separator) {
299
- if (isInternational(phoneNumber)) {
300
- var phoneNumberObject = parsePhoneNumberFromString(phoneNumber);
301
- if (!phoneNumberObject) {
302
- return phoneNumber;
299
+ if (!phoneNumber) return "";
300
+ var cleaned = phoneNumber.replace(/[\s\-]/g, "");
301
+ var sep = separator !== null && separator !== void 0 ? separator : "-";
302
+ if (isInternational(cleaned)) {
303
+ var phone_obj = parsePhoneNumberFromString(cleaned);
304
+ if (!phone_obj) return cleaned;
305
+ return phone_obj.formatInternational().replace(/\s/g, sep);
306
+ }
307
+ if (is_fixed_or_service_number(cleaned)) {
308
+ if (/^(1700|1800|1900|1599)/.test(cleaned)) {
309
+ return cleaned.replace(/^(\d{4})(\d{3})(\d{3,4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
310
+ }
311
+ if (/^07[2-8]/.test(cleaned)) {
312
+ return cleaned.replace(/^(\d{3})(\d{3})(\d{4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
313
+ }
314
+ if (/^(02|03|04|08|09)/.test(cleaned)) {
315
+ return cleaned.replace(/^(\d{2})(\d{3})(\d{4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
303
316
  }
304
- return phoneNumberObject.formatInternational().replace(/\s/g, separator !== null && separator !== void 0 ? separator : "");
305
317
  }
306
- return phoneNumber.replace(/(\d{3})(\d{3})(\d{4})/, "$1-$2-$3");
318
+ return cleaned.replace(/^(\d{3})(\d{3})(\d{4})$/, "$1".concat(sep, "$2").concat(sep, "$3"));
307
319
  };
308
320
  var is_iccid = function(number) {
309
321
  if (number.length < 19 || number.length > 22) return false;
@@ -311,6 +323,47 @@ var is_iccid = function(number) {
311
323
  if (!number.startsWith("89")) return false;
312
324
  return true;
313
325
  };
326
+ var is_msisdn = function(number) {
327
+ if (number.length < 10 || number.length > 15) return false;
328
+ if (!/^\d+$/.test(number)) return false;
329
+ return true;
330
+ };
331
+ var is_fixed_or_service_number = function(number) {
332
+ if (!number) return false;
333
+ var cleaned = number.replace(/[\s\-]/g, "");
334
+ if (!/^\d+$/.test(cleaned)) return false;
335
+ if (cleaned.length < 7 || cleaned.length > 15) return false;
336
+ var landline_prefixes = [
337
+ "02",
338
+ "03",
339
+ "04",
340
+ "08",
341
+ "09"
342
+ ];
343
+ var voip_prefixes = [
344
+ "072",
345
+ "073",
346
+ "074",
347
+ "076",
348
+ "077",
349
+ "078"
350
+ ];
351
+ var service_prefixes = [
352
+ "1700",
353
+ "1800",
354
+ "1900",
355
+ "1599",
356
+ "1200",
357
+ "1212"
358
+ ];
359
+ return landline_prefixes.some(function(p) {
360
+ return cleaned.startsWith(p);
361
+ }) || voip_prefixes.some(function(p) {
362
+ return cleaned.startsWith(p);
363
+ }) || service_prefixes.some(function(p) {
364
+ return cleaned.startsWith(p);
365
+ });
366
+ };
314
367
  // src/helpers/permissions.ts
315
368
  var checkUserPermissions = function(userPermissions, entity, permissions, mode2) {
316
369
  var userValues = userPermissions[entity];
@@ -2613,5 +2666,5 @@ var SocketService = /*#__PURE__*/ function() {
2613
2666
  return _SocketService;
2614
2667
  }();
2615
2668
  var socketServiceInstance = SocketService.getInstance();
2616
- export { addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterEventsDomain, callCenterGeoDomain, carsRegex, chartsRegex, checkUserPermissions, cleanNxSites, cloudwiseDomain, cn, collections, colorRegex, createAttachmentFromBlob, createAttachmentFromUrl, createSelectors, dataSocketDomain, dataSyncDomain, db, delete_document, devicesDomain, displayFormatPhoneNumber, durationToSeconds, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFileUrlFromStorage, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, get_international_phone_number, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_iccid, local_israel_phone_format, mode, multiStringFormat, notificationsDomain, numbersOnlyRegex, numbersRegex, nxApiCall, parseMultiSelectInput, parsePermissions, parseSnapshotAsArray, parseSnapshotAsObject, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, secondsToDuration, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, socketServiceInstance, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, uploadFileToStorage, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateAndCast, validateUserStatusAndPermissions };
2669
+ export { addAuditRecord, addLoginAudit, add_document, addressRegex, akeylessOnlineDomain, app, appCheck, auth, baseDomain, biDomain, calculateBearing, callCenterEventsDomain, callCenterGeoDomain, carsRegex, chartsRegex, checkUserPermissions, cleanNxSites, cloudwiseDomain, cn, collections, colorRegex, createAttachmentFromBlob, createAttachmentFromUrl, createSelectors, dataSocketDomain, dataSyncDomain, db, delete_document, devicesDomain, displayFormatPhoneNumber, durationToSeconds, emailRegex, extractAlertsData, extractBoardsData, extractCanbusData, extractCarsData, extractClientData, extractLocationData, extractSiteData, fire_base_TIME_TEMP, formatCarNumber, getAddressByGeo, getFileUrlFromStorage, getFixedNumber, getFormCheckboxValue, getFormElementValue, getLocationUrl, getUserByEmail, getUserByIdentifier, getUserByPhone, getUserCountryByIp, get_all_documents, get_document_by_id, get_international_phone_number, googleLoginProvider, handleChange, handleInvalid, handlePaste, initializeUserPermissions, international_israel_phone_format, isInternational, isInternationalIsraelPhone, isLocal, isNodeEnv, is_fixed_or_service_number, is_iccid, is_msisdn, local_israel_phone_format, mode, multiStringFormat, notificationsDomain, numbersOnlyRegex, numbersRegex, nxApiCall, parseMultiSelectInput, parsePermissions, parseSnapshotAsArray, parseSnapshotAsObject, priceRegex, propsAreEqual, query_document, query_document_by_conditions, query_documents, query_documents_by_conditions, renderOnce, secondsToDuration, setFormElementValue, setState, set_document, simpleExtractData, snapshot, snapshotDocument, socketServiceInstance, sort_by_timestamp, storage, textNumbersRegex, textRegex, timestamp_to_millis, timestamp_to_string, uploadFileToStorage, useLoginWithGoogle, useStoreValues, useValidation, userNameFormat, validateAndCast, validateUserStatusAndPermissions };
2617
2670
  //# sourceMappingURL=index.mjs.map
@@ -235,6 +235,7 @@ interface SelectWithSearchProps extends BaseElementProps {
235
235
  defaultValue?: SearchSelectOptions["value"];
236
236
  dropdownClassName?: string;
237
237
  dropdownOptionClassName?: string;
238
+ dropdownContainerClassName?: string;
238
239
  placeholder?: string;
239
240
  notFoundLabel?: string;
240
241
  searchPlaceholder?: string;
@@ -235,6 +235,7 @@ interface SelectWithSearchProps extends BaseElementProps {
235
235
  defaultValue?: SearchSelectOptions["value"];
236
236
  dropdownClassName?: string;
237
237
  dropdownOptionClassName?: string;
238
+ dropdownContainerClassName?: string;
238
239
  placeholder?: string;
239
240
  notFoundLabel?: string;
240
241
  searchPlaceholder?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-client-commons",
3
- "version": "1.1.71",
3
+ "version": "1.1.73",
4
4
  "scripts": {
5
5
  "build": "tsup",
6
6
  "deploy": "npm run build && npm version patch --no-git-tag-version && npm publish",