@banyan_cloud/roots 1.0.121 → 1.0.122
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/cjs/index.js +317 -111
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +317 -112
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +317 -112
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -21735,59 +21735,50 @@ function aspnet(Prism) {
|
|
|
21735
21735
|
);
|
|
21736
21736
|
}
|
|
21737
21737
|
|
|
21738
|
-
var autohotkey_1;
|
|
21739
|
-
|
|
21740
|
-
|
|
21741
|
-
function
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
|
|
21745
|
-
|
|
21746
|
-
|
|
21747
|
-
|
|
21748
|
-
|
|
21749
|
-
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21755
|
-
|
|
21756
|
-
|
|
21757
|
-
|
|
21758
|
-
|
|
21759
|
-
|
|
21760
|
-
|
|
21761
|
-
|
|
21762
|
-
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21773
|
-
|
|
21774
|
-
|
|
21775
|
-
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
|
|
21779
|
-
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
important:
|
|
21783
|
-
/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,
|
|
21784
|
-
keyword:
|
|
21785
|
-
/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,
|
|
21786
|
-
function: /[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,
|
|
21787
|
-
punctuation: /[{}[\]():,]/
|
|
21788
|
-
};
|
|
21789
|
-
}
|
|
21790
|
-
return autohotkey_1;
|
|
21738
|
+
var autohotkey_1 = autohotkey;
|
|
21739
|
+
autohotkey.displayName = 'autohotkey';
|
|
21740
|
+
autohotkey.aliases = [];
|
|
21741
|
+
function autohotkey(Prism) {
|
|
21742
|
+
// NOTES - follows first-first highlight method, block is locked after highlight, different from SyntaxHl
|
|
21743
|
+
Prism.languages.autohotkey = {
|
|
21744
|
+
comment: [
|
|
21745
|
+
{
|
|
21746
|
+
pattern: /(^|\s);.*/,
|
|
21747
|
+
lookbehind: true
|
|
21748
|
+
},
|
|
21749
|
+
{
|
|
21750
|
+
pattern:
|
|
21751
|
+
/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,
|
|
21752
|
+
lookbehind: true,
|
|
21753
|
+
greedy: true
|
|
21754
|
+
}
|
|
21755
|
+
],
|
|
21756
|
+
tag: {
|
|
21757
|
+
// labels
|
|
21758
|
+
pattern: /^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,
|
|
21759
|
+
lookbehind: true
|
|
21760
|
+
},
|
|
21761
|
+
string: /"(?:[^"\n\r]|"")*"/,
|
|
21762
|
+
variable: /%\w+%/,
|
|
21763
|
+
number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
21764
|
+
operator:
|
|
21765
|
+
/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,
|
|
21766
|
+
boolean: /\b(?:false|true)\b/,
|
|
21767
|
+
selector:
|
|
21768
|
+
/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,
|
|
21769
|
+
constant:
|
|
21770
|
+
/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,
|
|
21771
|
+
builtin:
|
|
21772
|
+
/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,
|
|
21773
|
+
symbol:
|
|
21774
|
+
/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,
|
|
21775
|
+
important:
|
|
21776
|
+
/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,
|
|
21777
|
+
keyword:
|
|
21778
|
+
/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,
|
|
21779
|
+
function: /[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,
|
|
21780
|
+
punctuation: /[{}[\]():,]/
|
|
21781
|
+
};
|
|
21791
21782
|
}
|
|
21792
21783
|
|
|
21793
21784
|
var autoit_1 = autoit;
|
|
@@ -23049,62 +23040,71 @@ function cmake(Prism) {
|
|
|
23049
23040
|
};
|
|
23050
23041
|
}
|
|
23051
23042
|
|
|
23052
|
-
var cobol_1
|
|
23053
|
-
|
|
23054
|
-
|
|
23055
|
-
function
|
|
23056
|
-
|
|
23057
|
-
|
|
23058
|
-
|
|
23059
|
-
|
|
23060
|
-
|
|
23061
|
-
|
|
23062
|
-
|
|
23063
|
-
|
|
23064
|
-
|
|
23065
|
-
|
|
23066
|
-
|
|
23067
|
-
|
|
23068
|
-
|
|
23069
|
-
|
|
23070
|
-
|
|
23071
|
-
|
|
23072
|
-
|
|
23073
|
-
|
|
23074
|
-
|
|
23075
|
-
|
|
23076
|
-
|
|
23077
|
-
|
|
23078
|
-
|
|
23079
|
-
|
|
23080
|
-
|
|
23081
|
-
|
|
23082
|
-
|
|
23083
|
-
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
|
|
23087
|
-
|
|
23088
|
-
|
|
23089
|
-
|
|
23090
|
-
|
|
23091
|
-
|
|
23092
|
-
|
|
23093
|
-
|
|
23094
|
-
|
|
23095
|
-
|
|
23096
|
-
|
|
23097
|
-
|
|
23098
|
-
|
|
23099
|
-
|
|
23100
|
-
|
|
23101
|
-
|
|
23102
|
-
|
|
23103
|
-
|
|
23104
|
-
|
|
23105
|
-
|
|
23106
|
-
|
|
23107
|
-
|
|
23043
|
+
var cobol_1;
|
|
23044
|
+
var hasRequiredCobol;
|
|
23045
|
+
|
|
23046
|
+
function requireCobol () {
|
|
23047
|
+
if (hasRequiredCobol) return cobol_1;
|
|
23048
|
+
hasRequiredCobol = 1;
|
|
23049
|
+
|
|
23050
|
+
cobol_1 = cobol;
|
|
23051
|
+
cobol.displayName = 'cobol';
|
|
23052
|
+
cobol.aliases = [];
|
|
23053
|
+
function cobol(Prism) {
|
|
23054
|
+
Prism.languages.cobol = {
|
|
23055
|
+
comment: {
|
|
23056
|
+
pattern: /\*>.*|(^[ \t]*)\*.*/m,
|
|
23057
|
+
lookbehind: true,
|
|
23058
|
+
greedy: true
|
|
23059
|
+
},
|
|
23060
|
+
string: {
|
|
23061
|
+
pattern: /[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,
|
|
23062
|
+
greedy: true
|
|
23063
|
+
},
|
|
23064
|
+
level: {
|
|
23065
|
+
pattern: /(^[ \t]*)\d+\b/m,
|
|
23066
|
+
lookbehind: true,
|
|
23067
|
+
greedy: true,
|
|
23068
|
+
alias: 'number'
|
|
23069
|
+
},
|
|
23070
|
+
'class-name': {
|
|
23071
|
+
// https://github.com/antlr/grammars-v4/blob/42edd5b687d183b5fa679e858a82297bd27141e7/cobol85/Cobol85.g4#L1015
|
|
23072
|
+
pattern:
|
|
23073
|
+
/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,
|
|
23074
|
+
lookbehind: true,
|
|
23075
|
+
inside: {
|
|
23076
|
+
number: {
|
|
23077
|
+
pattern: /(\()\d+/,
|
|
23078
|
+
lookbehind: true
|
|
23079
|
+
},
|
|
23080
|
+
punctuation: /[()]/
|
|
23081
|
+
}
|
|
23082
|
+
},
|
|
23083
|
+
keyword: {
|
|
23084
|
+
pattern:
|
|
23085
|
+
/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,
|
|
23086
|
+
lookbehind: true
|
|
23087
|
+
},
|
|
23088
|
+
boolean: {
|
|
23089
|
+
pattern: /(^|[^\w-])(?:false|true)(?![\w-])/i,
|
|
23090
|
+
lookbehind: true
|
|
23091
|
+
},
|
|
23092
|
+
number: {
|
|
23093
|
+
pattern:
|
|
23094
|
+
/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,
|
|
23095
|
+
lookbehind: true
|
|
23096
|
+
},
|
|
23097
|
+
operator: [
|
|
23098
|
+
/<>|[<>]=?|[=+*/&]/,
|
|
23099
|
+
{
|
|
23100
|
+
pattern: /(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,
|
|
23101
|
+
lookbehind: true
|
|
23102
|
+
}
|
|
23103
|
+
],
|
|
23104
|
+
punctuation: /[.:,()]/
|
|
23105
|
+
};
|
|
23106
|
+
}
|
|
23107
|
+
return cobol_1;
|
|
23108
23108
|
}
|
|
23109
23109
|
|
|
23110
23110
|
var coffeescript_1;
|
|
@@ -43073,7 +43073,7 @@ refractor.register(asciidoc_1);
|
|
|
43073
43073
|
refractor.register(asm6502_1);
|
|
43074
43074
|
refractor.register(asmatmel_1);
|
|
43075
43075
|
refractor.register(aspnet_1);
|
|
43076
|
-
refractor.register(
|
|
43076
|
+
refractor.register(autohotkey_1);
|
|
43077
43077
|
refractor.register(autoit_1);
|
|
43078
43078
|
refractor.register(avisynth_1);
|
|
43079
43079
|
refractor.register(avroIdl_1);
|
|
@@ -43095,7 +43095,7 @@ refractor.register(chaiscript_1);
|
|
|
43095
43095
|
refractor.register(cil_1);
|
|
43096
43096
|
refractor.register(clojure_1);
|
|
43097
43097
|
refractor.register(cmake_1);
|
|
43098
|
-
refractor.register(
|
|
43098
|
+
refractor.register(requireCobol());
|
|
43099
43099
|
refractor.register(requireCoffeescript());
|
|
43100
43100
|
refractor.register(requireConcurnas());
|
|
43101
43101
|
refractor.register(requireCoq());
|
|
@@ -49029,6 +49029,211 @@ TableFilters.defaultProps = {
|
|
|
49029
49029
|
theme: 'light'
|
|
49030
49030
|
};
|
|
49031
49031
|
|
|
49032
|
+
var useTableSearch = function useTableSearch() {
|
|
49033
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
49034
|
+
_ref$filters = _ref.filters,
|
|
49035
|
+
filters = _ref$filters === void 0 ? [] : _ref$filters,
|
|
49036
|
+
onApply = _ref.onApply;
|
|
49037
|
+
var _useState = React.useState([]),
|
|
49038
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
49039
|
+
selectedFilters = _useState2[0],
|
|
49040
|
+
setSelectedFilters = _useState2[1];
|
|
49041
|
+
var _useState3 = React.useState(false),
|
|
49042
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
49043
|
+
autocompleteOpen = _useState4[0],
|
|
49044
|
+
setAutocompleteOpen = _useState4[1];
|
|
49045
|
+
var _useState5 = React.useState(''),
|
|
49046
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
49047
|
+
value = _useState6[0],
|
|
49048
|
+
setValue = _useState6[1];
|
|
49049
|
+
var onChange = function onChange(event, newValue) {
|
|
49050
|
+
setValue(newValue);
|
|
49051
|
+
};
|
|
49052
|
+
var setFieldValue = function setFieldValue(fieldValue, type) {
|
|
49053
|
+
var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
49054
|
+
var lock = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
49055
|
+
if ((selectedFilters === null || selectedFilters === void 0 ? void 0 : selectedFilters.length) > 0) {
|
|
49056
|
+
var _clonedFilters$length;
|
|
49057
|
+
var clonedFilters = _toConsumableArray$1(selectedFilters);
|
|
49058
|
+
var current = clonedFilters === null || clonedFilters === void 0 ? void 0 : clonedFilters[((_clonedFilters$length = clonedFilters === null || clonedFilters === void 0 ? void 0 : clonedFilters.length) !== null && _clonedFilters$length !== void 0 ? _clonedFilters$length : 0) - 1];
|
|
49059
|
+
current[type] = fieldValue;
|
|
49060
|
+
current["".concat(type, "Search")] = !lock;
|
|
49061
|
+
current["".concat(type, "Id")] = id;
|
|
49062
|
+
if (type === 'label') {
|
|
49063
|
+
var _filters$find$icon, _filters$find;
|
|
49064
|
+
current.icon = (_filters$find$icon = (_filters$find = filters.find(function (fil) {
|
|
49065
|
+
return fil.id === id;
|
|
49066
|
+
})) === null || _filters$find === void 0 ? void 0 : _filters$find.icon) !== null && _filters$find$icon !== void 0 ? _filters$find$icon : null;
|
|
49067
|
+
}
|
|
49068
|
+
// the chip is about to be locked
|
|
49069
|
+
if (lock && type === 'value') {
|
|
49070
|
+
onApply === null || onApply === void 0 ? void 0 : onApply(clonedFilters);
|
|
49071
|
+
current.temp = true;
|
|
49072
|
+
}
|
|
49073
|
+
setSelectedFilters(clonedFilters);
|
|
49074
|
+
}
|
|
49075
|
+
};
|
|
49076
|
+
|
|
49077
|
+
// onSearch will be fired on change of chip input
|
|
49078
|
+
function onSearch(event) {
|
|
49079
|
+
var _inputHelper = inputHelper(event),
|
|
49080
|
+
fieldValue = _inputHelper.fieldValue,
|
|
49081
|
+
dataset = _inputHelper.dataset;
|
|
49082
|
+
var search = dataset.search;
|
|
49083
|
+
if (search === 'label') {
|
|
49084
|
+
setFieldValue(fieldValue, 'label');
|
|
49085
|
+
} else if (search === 'value') {
|
|
49086
|
+
setFieldValue(fieldValue, 'value');
|
|
49087
|
+
}
|
|
49088
|
+
}
|
|
49089
|
+
var onRemove = function onRemove(chip, index) {
|
|
49090
|
+
var clonedFilters = _toConsumableArray$1(selectedFilters);
|
|
49091
|
+
clonedFilters.splice(index, 1);
|
|
49092
|
+
setSelectedFilters(clonedFilters);
|
|
49093
|
+
};
|
|
49094
|
+
var onLock = function onLock(event, index) {
|
|
49095
|
+
if (event.keyCode === 13) {
|
|
49096
|
+
var _current$value;
|
|
49097
|
+
var current = selectedFilters === null || selectedFilters === void 0 ? void 0 : selectedFilters[index];
|
|
49098
|
+
if (current && (current === null || current === void 0 ? void 0 : (_current$value = current.value) === null || _current$value === void 0 ? void 0 : _current$value.length) > 0) {
|
|
49099
|
+
setFieldValue(current.value, 'value', current.value, true);
|
|
49100
|
+
}
|
|
49101
|
+
}
|
|
49102
|
+
};
|
|
49103
|
+
|
|
49104
|
+
// on selecting searchbar option we will add an empty chip
|
|
49105
|
+
// that chip will have dropdown options from all filters provided through options
|
|
49106
|
+
var onAdd = function onAdd(fil) {
|
|
49107
|
+
var clonedFilters = _toConsumableArray$1(selectedFilters);
|
|
49108
|
+
var newChip = new TableChip({
|
|
49109
|
+
labelSearch: false,
|
|
49110
|
+
label: fil.title,
|
|
49111
|
+
labelId: fil.id,
|
|
49112
|
+
icon: fil.icon,
|
|
49113
|
+
valueSearch: true,
|
|
49114
|
+
autocompleteOptions: {
|
|
49115
|
+
middlewareOptions: {
|
|
49116
|
+
offset: {
|
|
49117
|
+
mainAxis: 10
|
|
49118
|
+
}
|
|
49119
|
+
},
|
|
49120
|
+
predicate: function predicate() {
|
|
49121
|
+
return true;
|
|
49122
|
+
},
|
|
49123
|
+
placement: 'bottom-start'
|
|
49124
|
+
}
|
|
49125
|
+
});
|
|
49126
|
+
clonedFilters.push(newChip);
|
|
49127
|
+
setSelectedFilters(clonedFilters);
|
|
49128
|
+
setValue('');
|
|
49129
|
+
};
|
|
49130
|
+
|
|
49131
|
+
// onBlur will remove the incomplete chip
|
|
49132
|
+
var onBlur = function onBlur() {
|
|
49133
|
+
if ((selectedFilters === null || selectedFilters === void 0 ? void 0 : selectedFilters.length) > 0) {
|
|
49134
|
+
var _clonedFilters$at, _clonedFilters$at2;
|
|
49135
|
+
var clonedFilters = _toConsumableArray$1(selectedFilters);
|
|
49136
|
+
if (clonedFilters !== null && clonedFilters !== void 0 && (_clonedFilters$at = clonedFilters.at(-1)) !== null && _clonedFilters$at !== void 0 && _clonedFilters$at.labelSearch && clonedFilters !== null && clonedFilters !== void 0 && (_clonedFilters$at2 = clonedFilters.at(-1)) !== null && _clonedFilters$at2 !== void 0 && _clonedFilters$at2.valueSearch) {
|
|
49137
|
+
clonedFilters === null || clonedFilters === void 0 ? void 0 : clonedFilters.pop();
|
|
49138
|
+
}
|
|
49139
|
+
setSelectedFilters(clonedFilters);
|
|
49140
|
+
}
|
|
49141
|
+
};
|
|
49142
|
+
|
|
49143
|
+
// the autocomplete options which get rendered for table searchbar
|
|
49144
|
+
// call the onAdd method on selection of an option
|
|
49145
|
+
var renderAutocomplete = function renderAutocomplete(_ref2) {
|
|
49146
|
+
var _filters$filter;
|
|
49147
|
+
var inputValue = _ref2.value;
|
|
49148
|
+
return filters === null || filters === void 0 ? void 0 : (_filters$filter = filters.filter(function (fil) {
|
|
49149
|
+
var _fil$title$toLowerCas;
|
|
49150
|
+
return (fil === null || fil === void 0 ? void 0 : (_fil$title$toLowerCas = fil.title.toLowerCase()) === null || _fil$title$toLowerCas === void 0 ? void 0 : _fil$title$toLowerCas.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) !== -1;
|
|
49151
|
+
})) === null || _filters$filter === void 0 ? void 0 : _filters$filter.map(function (fil) {
|
|
49152
|
+
var _fil$deps, _fil$deps$every;
|
|
49153
|
+
var disabled = ((_fil$deps = fil.deps) === null || _fil$deps === void 0 ? void 0 : (_fil$deps$every = _fil$deps.every) === null || _fil$deps$every === void 0 ? void 0 : _fil$deps$every.call(_fil$deps, function (dep) {
|
|
49154
|
+
return (selectedFilters === null || selectedFilters === void 0 ? void 0 : selectedFilters.find(function (sFil) {
|
|
49155
|
+
return (sFil === null || sFil === void 0 ? void 0 : sFil.labelId) === dep && sFil.temp;
|
|
49156
|
+
})) != null;
|
|
49157
|
+
})) === false;
|
|
49158
|
+
return /*#__PURE__*/jsxRuntime.jsx(DropdownItem, {
|
|
49159
|
+
value: fil.id,
|
|
49160
|
+
title: fil.title,
|
|
49161
|
+
disabled: disabled,
|
|
49162
|
+
onClick: function onClick() {
|
|
49163
|
+
if (!disabled) {
|
|
49164
|
+
onAdd(fil);
|
|
49165
|
+
setAutocompleteOpen(false);
|
|
49166
|
+
}
|
|
49167
|
+
}
|
|
49168
|
+
}, fil.id);
|
|
49169
|
+
});
|
|
49170
|
+
};
|
|
49171
|
+
|
|
49172
|
+
// the autocomplete options which get rendered for a chip
|
|
49173
|
+
// and set the state on selection
|
|
49174
|
+
var renderChipAutocomplete = function renderChipAutocomplete(_ref3) {
|
|
49175
|
+
var name = _ref3.name,
|
|
49176
|
+
inputValue = _ref3.value;
|
|
49177
|
+
var filtersDOM = [];
|
|
49178
|
+
if (name === 'label') {
|
|
49179
|
+
var _filters$filter2;
|
|
49180
|
+
filtersDOM = filters === null || filters === void 0 ? void 0 : (_filters$filter2 = filters.filter(function (fil) {
|
|
49181
|
+
var _fil$title$toLowerCas2;
|
|
49182
|
+
return (fil === null || fil === void 0 ? void 0 : (_fil$title$toLowerCas2 = fil.title.toLowerCase()) === null || _fil$title$toLowerCas2 === void 0 ? void 0 : _fil$title$toLowerCas2.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) !== -1;
|
|
49183
|
+
})) === null || _filters$filter2 === void 0 ? void 0 : _filters$filter2.map(function (fil) {
|
|
49184
|
+
return /*#__PURE__*/jsxRuntime.jsx(DropdownItem, {
|
|
49185
|
+
value: fil.id,
|
|
49186
|
+
title: fil.title,
|
|
49187
|
+
onClick: function onClick() {
|
|
49188
|
+
setFieldValue(fil.title, 'label', fil.id, true);
|
|
49189
|
+
}
|
|
49190
|
+
}, fil.id);
|
|
49191
|
+
});
|
|
49192
|
+
}
|
|
49193
|
+
if (name === 'value') {
|
|
49194
|
+
var _selectedFilters$at, _filters$find2, _filters$find2$option, _filters$find2$option2;
|
|
49195
|
+
var currentFilter = selectedFilters === null || selectedFilters === void 0 ? void 0 : (_selectedFilters$at = selectedFilters.at(-1)) === null || _selectedFilters$at === void 0 ? void 0 : _selectedFilters$at.labelId;
|
|
49196
|
+
filtersDOM = filters === null || filters === void 0 ? void 0 : (_filters$find2 = filters.find(function (fil) {
|
|
49197
|
+
return fil.id === currentFilter;
|
|
49198
|
+
})) === null || _filters$find2 === void 0 ? void 0 : (_filters$find2$option = _filters$find2.options) === null || _filters$find2$option === void 0 ? void 0 : (_filters$find2$option2 = _filters$find2$option.filter(function (option) {
|
|
49199
|
+
var _option$toLowerCase;
|
|
49200
|
+
return (option === null || option === void 0 ? void 0 : (_option$toLowerCase = option.toLowerCase()) === null || _option$toLowerCase === void 0 ? void 0 : _option$toLowerCase.indexOf(inputValue === null || inputValue === void 0 ? void 0 : inputValue.toLowerCase())) !== -1;
|
|
49201
|
+
})) === null || _filters$find2$option2 === void 0 ? void 0 : _filters$find2$option2.map(function (option) {
|
|
49202
|
+
return /*#__PURE__*/jsxRuntime.jsx(DropdownItem, {
|
|
49203
|
+
value: option,
|
|
49204
|
+
title: option,
|
|
49205
|
+
onClick: function onClick() {
|
|
49206
|
+
setFieldValue(option, 'value', option, true);
|
|
49207
|
+
}
|
|
49208
|
+
}, option);
|
|
49209
|
+
});
|
|
49210
|
+
}
|
|
49211
|
+
return filtersDOM;
|
|
49212
|
+
};
|
|
49213
|
+
return {
|
|
49214
|
+
onAdd: onAdd,
|
|
49215
|
+
onBlur: onBlur,
|
|
49216
|
+
onSearch: onSearch,
|
|
49217
|
+
onRemove: onRemove,
|
|
49218
|
+
onLock: onLock,
|
|
49219
|
+
searchbarOptions: {
|
|
49220
|
+
value: value,
|
|
49221
|
+
onChange: onChange,
|
|
49222
|
+
autocomplete: true,
|
|
49223
|
+
autocompleteOptions: {
|
|
49224
|
+
open: autocompleteOpen,
|
|
49225
|
+
setOpen: setAutocompleteOpen,
|
|
49226
|
+
render: renderAutocomplete,
|
|
49227
|
+
predicate: function predicate() {
|
|
49228
|
+
return true;
|
|
49229
|
+
}
|
|
49230
|
+
}
|
|
49231
|
+
},
|
|
49232
|
+
renderChipAutocomplete: renderChipAutocomplete,
|
|
49233
|
+
selectedFilters: selectedFilters
|
|
49234
|
+
};
|
|
49235
|
+
};
|
|
49236
|
+
|
|
49032
49237
|
var css$j = ".Table_module_root__b07b1753 {\n position: relative;\n border-style: solid;\n border-color: var(--grey4);\n border-width: 1px 1px 0px 1px;\n border-radius: 0.25rem;\n width: 100%;\n max-width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.Table_module_root__b07b1753 .Table_module_table__b07b1753 {\n height: calc(100% - 6rem);\n padding-bottom: 3.5rem;\n}\n.Table_module_root__b07b1753 .Table_module_pagination__b07b1753 {\n position: absolute;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n}\n.Table_module_root__b07b1753 .Table_module_pagination__b07b1753.Table_module_floating__b07b1753 {\n bottom: 1rem;\n}\n.Table_module_root__b07b1753 .Table_module_chips__b07b1753,\n.Table_module_root__b07b1753 .Table_module_filters__b07b1753,\n.Table_module_root__b07b1753 .Table_module_table__b07b1753 > [data-elem=table-header] {\n position: sticky;\n z-index: 1;\n top: 0;\n}";
|
|
49033
49238
|
var modules_2e8406c7 = {"root":"Table_module_root__b07b1753","table":"Table_module_table__b07b1753","pagination":"Table_module_pagination__b07b1753","floating":"Table_module_floating__b07b1753","chips":"Table_module_chips__b07b1753","filters":"Table_module_filters__b07b1753"};
|
|
49034
49239
|
n(css$j,{});
|
|
@@ -113699,4 +113904,5 @@ exports.useOutsideClickListener = useOutsideClickListener;
|
|
|
113699
113904
|
exports.usePagination = usePagination;
|
|
113700
113905
|
exports.useResize = useResize;
|
|
113701
113906
|
exports.useRowFilter = useRowFilter;
|
|
113907
|
+
exports.useTableSearch = useTableSearch;
|
|
113702
113908
|
//# sourceMappingURL=index.js.map
|