@kosdev-code/base-ui-components 0.1.0-dev.5200 → 0.1.0-dev.5264
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/components/atoms/icon/common/types.d.ts +1 -1
- package/components/atoms/icon/common/types.d.ts.map +1 -1
- package/components/molecules/filter-panel/filter-panel.d.ts +58 -0
- package/components/molecules/filter-panel/filter-panel.d.ts.map +1 -0
- package/components/molecules/filter-panel/index.d.ts +3 -0
- package/components/molecules/filter-panel/index.d.ts.map +1 -0
- package/components/molecules/form/components/form-input.d.ts +2 -0
- package/components/molecules/form/components/form-input.d.ts.map +1 -1
- package/components/molecules/index.d.ts +1 -0
- package/components/molecules/index.d.ts.map +1 -1
- package/components/molecules/list/common/data-providers/async-tree-data-provider.d.ts +178 -0
- package/components/molecules/list/common/data-providers/async-tree-data-provider.d.ts.map +1 -0
- package/components/molecules/list/common/data-providers/base-async-tree-data-provider.d.ts +177 -0
- package/components/molecules/list/common/data-providers/base-async-tree-data-provider.d.ts.map +1 -0
- package/components/molecules/list/common/data-providers/base-observable-data-provider.d.ts +4 -2
- package/components/molecules/list/common/data-providers/base-observable-data-provider.d.ts.map +1 -1
- package/components/molecules/list/common/data-providers/index.d.ts +2 -0
- package/components/molecules/list/common/data-providers/index.d.ts.map +1 -1
- package/components/molecules/list/common/samples/data-providers/async-tree-example.d.ts +153 -0
- package/components/molecules/list/common/samples/data-providers/async-tree-example.d.ts.map +1 -0
- package/components/molecules/list/common/templates/group/named-collapsible-group.d.ts.map +1 -1
- package/components/molecules/list/common/types.d.ts +1 -0
- package/components/molecules/list/common/types.d.ts.map +1 -1
- package/components/molecules/list/tree-list/async-tree-list.d.ts +183 -0
- package/components/molecules/list/tree-list/async-tree-list.d.ts.map +1 -0
- package/components/molecules/list/tree-list/index.d.ts +2 -0
- package/components/molecules/list/tree-list/index.d.ts.map +1 -1
- package/components/molecules/list/tree-list/select-async-tree-list.d.ts +19 -0
- package/components/molecules/list/tree-list/select-async-tree-list.d.ts.map +1 -0
- package/components/molecules/list/tree-list/templates/named-collapsible-branch.d.ts.map +1 -1
- package/hooks/use-drag-drop.d.ts +3 -1
- package/hooks/use-drag-drop.d.ts.map +1 -1
- package/index.cjs +727 -598
- package/index.cjs.map +1 -1
- package/index.js +4400 -3631
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/styles/tokens/component-tokens/index.d.ts +10 -0
- package/styles/tokens/component-tokens/index.d.ts.map +1 -1
- package/styles/tokens/component-tokens/named-collapsable-branch/index.d.ts +13 -0
- package/styles/tokens/component-tokens/named-collapsable-branch/index.d.ts.map +1 -0
- package/styles/tokens/index.d.ts +11 -1
- package/styles/tokens/index.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLProps } from 'react';
|
|
2
2
|
|
|
3
|
-
export type IconIds = "AccountBook" | "Aim" | "Alert" | "AlignCenter" | "AlignLeft" | "AlignRight" | "Android" | "Apartment" | "Api" | "Apple" | "Appstore" | "AppstoreAdd" | "AreaChart" | "ArrowDown" | "ArrowLeft" | "ArrowLineDown" | "ArrowRight" | "ArrowsAlt" | "ArrowUp" | "Artifact" | "ArtifactBrowser" | "ArtifactBrowserTool" | "ArtifactLocal" | "ArtifactManagerTool" | "ArtifactMarket" | "ArtifactMgmt" | "ArtifactOrg" | "ArtifactStoresTool" | "Audio" | "AudioMuted" | "Audit" | "Backward" | "Bank" | "BarChart" | "Barcode" | "Bars" | "Bell" | "BgColors" | "Block" | "Bold" | "Book" | "Border" | "BorderBottom" | "BorderHorizontal" | "BorderInner" | "BorderLeft" | "BorderlessTable" | "BorderOuter" | "BorderRight" | "BorderTop" | "BorderVerticle" | "BoxPlot" | "Branches" | "Bug" | "Build" | "Bulb" | "BulbFilled" | "Calculator" | "Calendar" | "Camera" | "CaretDown" | "CaretLeft" | "CaretRight" | "CaretUp" | "CarryOut" | "Check" | "CheckCircle" | "CheckSmall" | "CheckSquare" | "Ci" | "Clear" | "ClockCircle" | "Close" | "CloseCircle" | "CloseSquare" | "Cloud" | "CloudCrossedOut" | "CloudDownload" | "CloudServer" | "CloudSync" | "CloudUpload" | "Cluster" | "Code" | "Codepen" | "Coffee" | "ColumnHeightOutlined" | "ColumnWidthOutlined" | "Comment" | "Compass" | "Compress" | "ConsoleSql" | "Contacts" | "Container" | "Control" | "Copy" | "CopyFilled" | "CopyPlus" | "Copyright" | "CopyrightCircle" | "CreditCard" | "Crown" | "CustomerService" | "Dash" | "Dashboard" | "Database" | "DeleteColumn" | "DeleteOutlined" | "DeleteRow" | "DeliveredProcedure" | "DeploymentUnit" | "Desktop" | "Diagnostics" | "Diff" | "Disconnect" | "Dislike" | "Dollar" | "DollarCircle" | "Dot" | "DotChart" | "DoubleDown" | "DoubleLeft" | "DoubleRight" | "Down" | "DownCircle" | "Download" | "DownSquare" | "Drag" | "Edit" | "Ellipsis" | "Enter" | "Environment" | "Euro" | "EuroCircle" | "Exception" | "Exclamation" | "ExclamationCircle" | "Expand" | "ExpandAlt" | "Experiment" | "Export" | "Eye" | "EyeInvisible" | "Facebook" | "Fall" | "FastBackward" | "FastForward" | "FieldBinary" | "FieldNumber" | "FieldString" | "FieldTime" | "File" | "FileAdd" | "FileDone" | "FileExcel" | "FileExclamation" | "FileImage" | "FileJpg" | "FileMarkdown" | "FilePdf" | "FilePpt" | "FileProtect" | "FileSearch" | "FileSync" | "FileText" | "FileUnknown" | "FileWord" | "FileZip" | "Filter" | "Fire" | "Flag" | "Fold" | "Folder" | "FolderAdd" | "FolderOpen" | "FolderView" | "FontColors" | "FontSize" | "Fork" | "Form" | "FormatPainter" | "Forward" | "Frown" | "Fullscreen" | "FullscreenExit" | "Function" | "Fund" | "FundProjectionScreen" | "FundView" | "FunnelPlotOutlined" | "FutureTracerEventEnd" | "FutureTracerEventEndFilled" | "FutureTracerEventStart" | "FutureTracerEventStartFilled" | "FutureTracerTool" | "Gateway" | "Gif" | "Gift" | "Github" | "Global" | "Gold" | "Group" | "HardwareProfileManagement" | "Hdd" | "Heart" | "HeatMap" | "Highlight" | "History" | "Home" | "HomeFilled" | "Hourglass" | "Idcard" | "Import" | "Inbox" | "Info" | "InfoCircle" | "Inherited" | "InsertRowAbove" | "InsertRowBelow" | "InsertRowLeft" | "InsertRowRight" | "Instagram" | "Insurance" | "Interaction" | "IssuesClose" | "Italic" | "KabViewer" | "Key" | "KeySet" | "NodeDiscovery" | "Laptop" | "Layer" | "Layout" | "Left" | "LeftCircle" | "LeftSquare" | "Like" | "Line" | "LineChart" | "LineHeight" | "Link" | "Linkedin" | "Loading" | "Loading3Quarters" | "Lock" | "Login" | "LogoLight" | "Logout" | "MacCommand" | "Mail" | "Man" | "MedicineBox" | "Meh" | "MergeCells" | "Minus" | "MinusCircle" | "MinusSquare" | "Mobile" | "MoneyCollect" | "Monitor" | "More" | "NodeCollapse" | "NodeExpand" | "NodeIndex" | "Notification" | "Number" | "OneToOne" | "OrderedList" | "PaperClip" | "Partition" | "Pause" | "PauseCircle" | "PayCircle" | "Percentage" | "Phone" | "PicCenter" | "PicLeft" | "PicRight" | "Picture" | "PieChart" | "PlayCircle" | "PlaySquare" | "Plus" | "PlusCircle" | "PlusSquare" | "Pound" | "PoundCircle" | "Poweroff" | "Printer" | "Profile" | "Project" | "PropertySafety" | "PullRequest" | "Pushpin" | "Qrcode" | "Question" | "QuestionCircle" | "RadarChart" | "RadiusBottomleft" | "RadiusBottomright" | "RadiusSettingOutlined" | "RadiusUpleft" | "RadiusUpright" | "Read" | "Reconciliation" | "RedEnvelope" | "Redo" | "Reload" | "Rest" | "Retweet" | "Right" | "RightCircle" | "RightSquare" | "RightSquareFilled" | "Rise" | "Robot" | "Rocket" | "Rollback" | "RotateLeft" | "RotateRight" | "Safety" | "SafetyCertificate" | "Save" | "Scan" | "Schedule" | "Scissor" | "Search" | "SecurityScan" | "Select" | "Send" | "Setting" | "Shake" | "ShareAlt" | "Shop" | "Shopping" | "ShoppingCart" | "Shrink" | "Sisternode" | "Skin" | "SlackSquare" | "SlidersOutlined" | "SmallDash" | "Smile" | "Snippets" | "Solution" | "Sort" | "SortAscending" | "SortDescending" | "Sound" | "SplitCells" | "Star" | "StarFilled" | "StepBackward" | "StepForward" | "Stock" | "Stop" | "StoreMgmt" | "Strikethrough" | "Subnode" | "Swap" | "SwapLeft" | "SwapRight" | "Switcher" | "Sync" | "Table" | "Tablet" | "Tag" | "Tags" | "Team" | "TeamShortcut" | "TeamShortcutsTool" | "Thunderbolt" | "Tool" | "TopBadge" | "ToTop" | "Trademark" | "Transaction" | "Translation" | "Trophy" | "Twitter" | "Underline" | "Undo" | "Unfold" | "Shrink" | "Ungroup" | "Unlock" | "UnorderedList" | "Up" | "UpCircle" | "Upload" | "UpSquare" | "Usb" | "User" | "UserAdd" | "UserDelete" | "UsergroupAdd" | "UsergroupDelete" | "UserSwitch" | "VerticalAlignBottom" | "VerticalAlignMiddle" | "VerticalAlignTop" | "VerticalLeft" | "VerticalRight" | "Wallet" | "Warning" | "WebsocketMonitorTool" | "Wifi" | "Windows" | "Youtube" | "ZoomIn" | "IngredientAssignment" | "BeverageAvailabilityGraph" | "LogViewer" | "ConfigurationEditor" | "ManifestViewer" | "AccountSettings" | "ProjectsManagement" | "SSHKeys" | "UserManagement" | "APIKeys" | "APIBrowser" | "PerfMonitor" | "AuthenticateArtifactStores" | "MarketplaceTool" | "Messages" | "MyImagesTool" | "ZoomOut" | "BringToFront";
|
|
3
|
+
export type IconIds = "AccountBook" | "Aim" | "Alert" | "AlignCenter" | "AlignLeft" | "AlignRight" | "Android" | "Apartment" | "Api" | "Apple" | "Appstore" | "AppstoreAdd" | "AreaChart" | "ArrowDown" | "ArrowLeft" | "ArrowLineDown" | "ArrowRight" | "ArrowsAlt" | "ArrowUp" | "Artifact" | "ArtifactBrowser" | "ArtifactBrowserTool" | "ArtifactLocal" | "ArtifactManagerTool" | "ArtifactMarket" | "ArtifactMgmt" | "ArtifactOrg" | "ArtifactStoresTool" | "Audio" | "AudioMuted" | "Audit" | "Backward" | "Bank" | "BarChart" | "Barcode" | "Bars" | "Bell" | "BgColors" | "Block" | "Bold" | "Book" | "Border" | "BorderBottom" | "BorderHorizontal" | "BorderInner" | "BorderLeft" | "BorderlessTable" | "BorderOuter" | "BorderRight" | "BorderTop" | "BorderVerticle" | "BoxPlot" | "Branches" | "Bug" | "Build" | "Bulb" | "BulbFilled" | "Calculator" | "Calendar" | "Camera" | "CaretDown" | "CaretLeft" | "CaretRight" | "CaretUp" | "CarryOut" | "Check" | "CheckCircle" | "CheckSmall" | "CheckSquare" | "Ci" | "Clear" | "ClockCircle" | "Close" | "CloseCircle" | "CloseSquare" | "Cloud" | "CloudCrossedOut" | "CloudDownload" | "CloudServer" | "CloudSync" | "CloudUpload" | "Cluster" | "Code" | "Codepen" | "Coffee" | "ColumnHeightOutlined" | "ColumnWidthOutlined" | "Comment" | "Compass" | "Compress" | "ConsoleSql" | "Contacts" | "Container" | "Control" | "Copy" | "CopyFilled" | "CopyPlus" | "Copyright" | "CopyrightCircle" | "CreditCard" | "Crown" | "CustomerService" | "Dash" | "Dashboard" | "Database" | "DeleteColumn" | "DeleteOutlined" | "DeleteRow" | "DeliveredProcedure" | "DeploymentUnit" | "Desktop" | "Diagnostics" | "Diff" | "Disconnect" | "Dislike" | "Dollar" | "DollarCircle" | "Dot" | "DotChart" | "DoubleDown" | "DoubleLeft" | "DoubleRight" | "Down" | "DownCircle" | "Download" | "DownSquare" | "Drag" | "Edit" | "Ellipsis" | "Enter" | "Environment" | "Euro" | "EuroCircle" | "Exception" | "Exclamation" | "ExclamationCircle" | "Expand" | "ExpandAlt" | "Experiment" | "Export" | "ExternalLink" | "Eye" | "EyeInvisible" | "Facebook" | "Fall" | "FastBackward" | "FastForward" | "FieldBinary" | "FieldNumber" | "FieldString" | "FieldTime" | "File" | "FileAdd" | "FileDone" | "FileExcel" | "FileExclamation" | "FileImage" | "FileJpg" | "FileMarkdown" | "FilePdf" | "FilePpt" | "FileProtect" | "FileSearch" | "FileSync" | "FileText" | "FileUnknown" | "FileWord" | "FileZip" | "Filter" | "Fire" | "Flag" | "Fold" | "Folder" | "FolderAdd" | "FolderOpen" | "FolderView" | "FontColors" | "FontSize" | "Fork" | "Form" | "FormatPainter" | "Forward" | "Frown" | "Fullscreen" | "FullscreenExit" | "Function" | "Fund" | "FundProjectionScreen" | "FundView" | "FunnelPlotOutlined" | "FutureTracerEventEnd" | "FutureTracerEventEndFilled" | "FutureTracerEventStart" | "FutureTracerEventStartFilled" | "FutureTracerTool" | "Gateway" | "Gif" | "Gift" | "Github" | "Global" | "Gold" | "Group" | "HardwareProfileManagement" | "Hdd" | "Heart" | "HeatMap" | "Highlight" | "History" | "Home" | "HomeFilled" | "Hourglass" | "Idcard" | "Import" | "Inbox" | "Info" | "InfoCircle" | "Inherited" | "InsertRowAbove" | "InsertRowBelow" | "InsertRowLeft" | "InsertRowRight" | "Instagram" | "Insurance" | "Interaction" | "IssuesClose" | "Italic" | "KabViewer" | "Key" | "KeySet" | "NodeDiscovery" | "Laptop" | "Layer" | "Layout" | "Left" | "LeftCircle" | "LeftSquare" | "Like" | "Line" | "LineChart" | "LineHeight" | "Link" | "Linkedin" | "Loading" | "Loading3Quarters" | "Lock" | "Login" | "LogoLight" | "Logout" | "MacCommand" | "Mail" | "Man" | "MedicineBox" | "Meh" | "MergeCells" | "Minus" | "MinusCircle" | "MinusSquare" | "Mobile" | "MoneyCollect" | "Monitor" | "More" | "NodeCollapse" | "NodeExpand" | "NodeIndex" | "Notification" | "Number" | "OneToOne" | "OrderedList" | "PaperClip" | "Partition" | "Pause" | "PauseCircle" | "PayCircle" | "Percentage" | "Phone" | "PicCenter" | "PicLeft" | "PicRight" | "Picture" | "PieChart" | "PlayCircle" | "PlaySquare" | "Plus" | "PlusCircle" | "PlusSquare" | "Pound" | "PoundCircle" | "Poweroff" | "Printer" | "Profile" | "Project" | "PropertySafety" | "PullRequest" | "Pushpin" | "Qrcode" | "Question" | "QuestionCircle" | "RadarChart" | "RadiusBottomleft" | "RadiusBottomright" | "RadiusSettingOutlined" | "RadiusUpleft" | "RadiusUpright" | "Read" | "Reconciliation" | "RedEnvelope" | "Redo" | "Reload" | "Rest" | "Retweet" | "Right" | "RightCircle" | "RightSquare" | "RightSquareFilled" | "Rise" | "Robot" | "Rocket" | "Rollback" | "RotateLeft" | "RotateRight" | "Safety" | "SafetyCertificate" | "Save" | "Scan" | "Schedule" | "Scissor" | "Search" | "SecurityScan" | "Select" | "Send" | "Setting" | "Shake" | "ShareAlt" | "Shop" | "Shopping" | "ShoppingCart" | "Shrink" | "Sisternode" | "Skin" | "SlackSquare" | "SlidersOutlined" | "SmallDash" | "Smile" | "Snippets" | "Solution" | "Sort" | "SortAscending" | "SortDescending" | "Sound" | "SplitCells" | "Star" | "StarFilled" | "StepBackward" | "StepForward" | "Stock" | "Stop" | "StoreMgmt" | "Strikethrough" | "Subnode" | "Swap" | "SwapLeft" | "SwapRight" | "Switcher" | "Sync" | "Table" | "Tablet" | "Tag" | "Tags" | "Team" | "TeamShortcut" | "TeamShortcutsTool" | "Thunderbolt" | "Tool" | "TopBadge" | "ToTop" | "Trademark" | "Transaction" | "Translation" | "Trophy" | "Twitter" | "Underline" | "Undo" | "Unfold" | "Shrink" | "Ungroup" | "Unlock" | "UnorderedList" | "Up" | "UpCircle" | "Upload" | "UpSquare" | "Usb" | "User" | "UserAdd" | "UserDelete" | "UsergroupAdd" | "UsergroupDelete" | "UserSwitch" | "VerticalAlignBottom" | "VerticalAlignMiddle" | "VerticalAlignTop" | "VerticalLeft" | "VerticalRight" | "Wallet" | "Warning" | "WebsocketMonitorTool" | "Wifi" | "Windows" | "Youtube" | "ZoomIn" | "IngredientAssignment" | "BeverageAvailabilityGraph" | "LogViewer" | "ConfigurationEditor" | "ManifestViewer" | "AccountSettings" | "ProjectsManagement" | "ReleaseTemplates" | "SSHKeys" | "UserManagement" | "APIKeys" | "APIBrowser" | "PerfMonitor" | "AuthenticateArtifactStores" | "MarketplaceTool" | "Messages" | "MyImagesTool" | "ZoomOut" | "BringToFront";
|
|
4
4
|
export declare const iconColors: readonly ["black", "blue", "green", "grey", "orange", "purple", "red", "white", "yellow"];
|
|
5
5
|
export type IconColors = (typeof iconColors)[number];
|
|
6
6
|
export declare const iconSizes: readonly ["xxsm", "xsm", "sm", "med", "lrg", "xlrg", "xxlrg"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/icon/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,OAAO,GACf,aAAa,GACb,KAAK,GACL,OAAO,GACP,aAAa,GACb,WAAW,GACX,YAAY,GACZ,SAAS,GACT,WAAW,GACX,KAAK,GACL,OAAO,GACP,UAAU,GACV,aAAa,GACb,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,YAAY,GACZ,WAAW,GACX,SAAS,GACT,UAAU,GACV,iBAAiB,GACjB,qBAAqB,GACrB,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,OAAO,GACP,YAAY,GACZ,OAAO,GACP,UAAU,GACV,MAAM,GACN,UAAU,GACV,SAAS,GACT,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,cAAc,GACd,kBAAkB,GAClB,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,aAAa,GACb,aAAa,GACb,WAAW,GACX,gBAAgB,GAChB,SAAS,GACT,UAAU,GACV,KAAK,GACL,OAAO,GACP,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,WAAW,GACX,WAAW,GACX,YAAY,GACZ,SAAS,GACT,UAAU,GACV,OAAO,GACP,aAAa,GACb,YAAY,GACZ,aAAa,GACb,IAAI,GACJ,OAAO,GACP,aAAa,GACb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c,GACd,iBAAiB,GACjB,YAAY,GACZ,qBAAqB,GACrB,qBAAqB,GACrB,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,QAAQ,GACR,SAAS,GACT,sBAAsB,GACtB,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,sBAAsB,GACtB,2BAA2B,GAC3B,WAAW,GACX,qBAAqB,GACrB,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,SAAS,GACT,gBAAgB,GAChB,SAAS,GACT,YAAY,GACZ,aAAa,GACb,4BAA4B,GAC5B,iBAAiB,GACjB,UAAU,GACV,cAAc,GACd,SAAS,GACT,cAAc,CAAC;AAEnB,eAAO,MAAM,UAAU,2FAUb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,SAAS,+DAQZ,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACrD,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/atoms/icon/common/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,OAAO,GACf,aAAa,GACb,KAAK,GACL,OAAO,GACP,aAAa,GACb,WAAW,GACX,YAAY,GACZ,SAAS,GACT,WAAW,GACX,KAAK,GACL,OAAO,GACP,UAAU,GACV,aAAa,GACb,WAAW,GACX,WAAW,GACX,WAAW,GACX,eAAe,GACf,YAAY,GAC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AEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IACrD,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/react';
|
|
2
|
+
|
|
3
|
+
export interface FilterOption {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface FilterGroup {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
options: FilterOption[];
|
|
11
|
+
}
|
|
12
|
+
export interface FilterSelections {
|
|
13
|
+
[groupId: string]: Set<string>;
|
|
14
|
+
}
|
|
15
|
+
export interface FilterPanelProps {
|
|
16
|
+
/**
|
|
17
|
+
* Array of filter groups with their options
|
|
18
|
+
*/
|
|
19
|
+
groups: FilterGroup[];
|
|
20
|
+
/**
|
|
21
|
+
* Callback when selections change
|
|
22
|
+
*/
|
|
23
|
+
onSelectionChange: (selections: FilterSelections) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Controlled mode: current selections
|
|
26
|
+
*/
|
|
27
|
+
value?: FilterSelections;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to show "Select all" button for each group
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
showSelectAll?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to show "Clear all" button in header
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
showClearAll?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Placement of the filter panel relative to the button
|
|
40
|
+
* @default "bottom-end"
|
|
41
|
+
*/
|
|
42
|
+
placement?: Placement;
|
|
43
|
+
/**
|
|
44
|
+
* Optional className for styling
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Custom button content (defaults to filter icon)
|
|
49
|
+
*/
|
|
50
|
+
buttonContent?: React.ReactNode;
|
|
51
|
+
/**
|
|
52
|
+
* Disabled state
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare const FilterPanel: ({ groups, onSelectionChange, value: controlledValue, showSelectAll, showClearAll, placement, className, buttonContent, disabled, }: FilterPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
|
+
//# sourceMappingURL=filter-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-panel.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/filter-panel/filter-panel.tsx"],"names":[],"mappings":";AACA,OAAO,EAYL,KAAK,SAAS,EACf,MAAM,oBAAoB,CAAC;AAM5B,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,EAAE,WAAW,EAAE,CAAC;IAEtB;;OAEG;IACH,iBAAiB,EAAE,CAAC,UAAU,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAE1D;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEhC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,uIAUrB,gBAAgB,qDAsLlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/libraries/base-ui-components/src/components/molecules/filter-panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EACV,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
|
|
@@ -4,8 +4,10 @@ import { FieldPath, FieldValues } from 'react-hook-form';
|
|
|
4
4
|
|
|
5
5
|
export type FormInputProps<T extends FieldValues = FieldValues, N extends FieldPath<T> = FieldPath<T>> = BaseFormFieldProps<T, N> & Pick<InputProps, "type" | "className" | "placeholder" | "prefixIconId" | "prefixIconColor" | "suffixIconColor" | "suffixIconId" | "autoFocus"> & {
|
|
6
6
|
autoTrim?: boolean;
|
|
7
|
+
bold?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare const FormInput: <T extends FieldValues = FieldValues, N extends FieldPath<T> = FieldPath<T>>(props: BaseFormFieldProps<T, N> & Pick<InputProps, "autoFocus" | "className" | "placeholder" | "type" | "prefixIconId" | "prefixIconColor" | "suffixIconColor" | "suffixIconId"> & {
|
|
9
10
|
autoTrim?: boolean | undefined;
|
|
11
|
+
bold?: boolean | undefined;
|
|
10
12
|
} & import('react').RefAttributes<HTMLInputElement>) => import('react').ReactNode;
|
|
11
13
|
//# sourceMappingURL=form-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-input.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/form/components/form-input.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"form-input.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/form/components/form-input.tsx"],"names":[],"mappings":";AAKA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAMxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,MAAM,cAAc,CACxB,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,IACnC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,IAAI,CACF,UAAU,EACR,MAAM,GACN,WAAW,GACX,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,WAAW,CACd,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA8F7C,eAAO,MAAM,SAAS;;;iFAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/libraries/base-ui-components/src/components/molecules/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/libraries/base-ui-components/src/components/molecules/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { DataProviderContext, ListItem } from '../types';
|
|
2
|
+
import { IObservableArray } from 'mobx';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Loading state for a tree branch during async child loading.
|
|
6
|
+
*
|
|
7
|
+
* @category Data Providers
|
|
8
|
+
*/
|
|
9
|
+
export interface BranchLoadingState {
|
|
10
|
+
/** Current loading status */
|
|
11
|
+
status: "idle" | "loading" | "loaded" | "error";
|
|
12
|
+
/** Error object if status is 'error' */
|
|
13
|
+
error?: Error;
|
|
14
|
+
/** Timestamp of when this state was set */
|
|
15
|
+
timestamp?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Extended tree branch that includes async loading state.
|
|
19
|
+
* Combines the base ListItem with tree-specific properties.
|
|
20
|
+
*
|
|
21
|
+
* @category Data Providers
|
|
22
|
+
* @typeParam T - The ListItem type for this branch
|
|
23
|
+
*/
|
|
24
|
+
export type AsyncTreeBranch<T extends ListItem> = T & {
|
|
25
|
+
/** Child branches (may be empty if not yet loaded) */
|
|
26
|
+
branches: AsyncTreeBranch<T>[];
|
|
27
|
+
/** Current loading state for this branch's children */
|
|
28
|
+
loadingState: BranchLoadingState;
|
|
29
|
+
/** Whether this branch has children (can be 'unknown' before first load attempt) */
|
|
30
|
+
hasChildren: boolean | "unknown";
|
|
31
|
+
/** Whether this is a leaf node (no children) */
|
|
32
|
+
isLeaf: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Interface for async tree data providers that support lazy loading of tree branches.
|
|
36
|
+
*
|
|
37
|
+
* REACTIVITY MODEL:
|
|
38
|
+
* - Root items: Observable array - changes trigger root-level recomputation only
|
|
39
|
+
* - Loaded children: Observable map - changes trigger specific branch recomputation only
|
|
40
|
+
* - Loading states: Observable map - changes trigger specific branch UI updates only
|
|
41
|
+
*
|
|
42
|
+
* PERFORMANCE:
|
|
43
|
+
* - Fine-grained tracking ensures only affected branches recompute
|
|
44
|
+
* - Object identity preservation minimizes React re-renders
|
|
45
|
+
* - Lazy loading reduces initial computation cost
|
|
46
|
+
*
|
|
47
|
+
* DATA PIPELINE:
|
|
48
|
+
* Raw Items (I[])
|
|
49
|
+
* → filterByInputItem (ingress filter on I)
|
|
50
|
+
* → sortByInputItem (ingress sort on I)
|
|
51
|
+
* → itemMap (transform I → T)
|
|
52
|
+
* → filterItem (egress filter on T)
|
|
53
|
+
* → sortItem (egress sort on T)
|
|
54
|
+
* → Build branches recursively
|
|
55
|
+
*
|
|
56
|
+
* @category Data Providers
|
|
57
|
+
* @typeParam I - Raw input item type from the data source
|
|
58
|
+
* @typeParam T - Transformed ListItem type for display
|
|
59
|
+
* @typeParam C - Context data type for filtering and sorting
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```typescript
|
|
63
|
+
* class MyTreeProvider extends BaseAsyncTreeDataProvider<Model, RawItem, TreeItem> {
|
|
64
|
+
* constructor(model: Model) {
|
|
65
|
+
* super(
|
|
66
|
+
* model,
|
|
67
|
+
* async function() { return await this.getRoots(); },
|
|
68
|
+
* async function(item) { return await this.getChildren(item.id); },
|
|
69
|
+
* (item) => ({ id: item.id, name: item.name })
|
|
70
|
+
* );
|
|
71
|
+
* }
|
|
72
|
+
*
|
|
73
|
+
* hasChildren(item: RawItem) { return item.type === 'folder'; }
|
|
74
|
+
* getItemId(item: RawItem) { return item.id; }
|
|
75
|
+
* }
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @see {@link BaseAsyncTreeDataProvider} for the base implementation
|
|
79
|
+
* @see {@link AsyncTreeList} for the React component that consumes this provider
|
|
80
|
+
*/
|
|
81
|
+
export interface AsyncTreeDataProvider<I extends Record<string, any>, T extends ListItem, C extends Record<string, any> = Record<string, any>> {
|
|
82
|
+
/**
|
|
83
|
+
* Get root items for the tree.
|
|
84
|
+
* Async to support model activation and async data fetching.
|
|
85
|
+
*/
|
|
86
|
+
getRootItems(): Promise<I[]>;
|
|
87
|
+
/**
|
|
88
|
+
* Get children for a specific item.
|
|
89
|
+
* Called lazily when a branch is expanded.
|
|
90
|
+
*
|
|
91
|
+
* @param item - The raw item to get children for
|
|
92
|
+
* @param context - Optional data provider context
|
|
93
|
+
*/
|
|
94
|
+
getChildren(item: I, context?: DataProviderContext<C>): Promise<I[]>;
|
|
95
|
+
/**
|
|
96
|
+
* Check if an item has children without loading them.
|
|
97
|
+
* Returns 'unknown' if it cannot be determined without loading.
|
|
98
|
+
* Used to show expand indicators before children are loaded.
|
|
99
|
+
*
|
|
100
|
+
* @param item - The raw item to check
|
|
101
|
+
*/
|
|
102
|
+
hasChildren?(item: I): boolean | "unknown";
|
|
103
|
+
/**
|
|
104
|
+
* Transform a raw item into a ListItem for display.
|
|
105
|
+
*
|
|
106
|
+
* @param item - The raw item to transform
|
|
107
|
+
* @param context - Data provider context
|
|
108
|
+
*/
|
|
109
|
+
itemMap(item: I, context: DataProviderContext<C>): T;
|
|
110
|
+
/**
|
|
111
|
+
* Get unique identifier for an item.
|
|
112
|
+
* Used for caching and identity preservation.
|
|
113
|
+
*
|
|
114
|
+
* @param item - The raw item to get ID for
|
|
115
|
+
*/
|
|
116
|
+
getItemId(item: I): string;
|
|
117
|
+
/**
|
|
118
|
+
* Observable map of loading states for each branch.
|
|
119
|
+
* Key: item ID, Value: loading state
|
|
120
|
+
*/
|
|
121
|
+
readonly loadingStates: Map<string, BranchLoadingState>;
|
|
122
|
+
/**
|
|
123
|
+
* Observable map of loaded children for each branch.
|
|
124
|
+
* Key: item ID, Value: array of child items
|
|
125
|
+
*/
|
|
126
|
+
readonly loadedChildren: Map<string, I[]>;
|
|
127
|
+
/**
|
|
128
|
+
* Observable array of root items.
|
|
129
|
+
*/
|
|
130
|
+
readonly rootItems: I[] | IObservableArray<I>;
|
|
131
|
+
/**
|
|
132
|
+
* Computed tree structure with loading states.
|
|
133
|
+
* Rebuilds only affected branches when data changes.
|
|
134
|
+
*/
|
|
135
|
+
readonly tree: AsyncTreeBranch<T>[];
|
|
136
|
+
/**
|
|
137
|
+
* Expand a branch and load its children if not already loaded.
|
|
138
|
+
* Updates observable state to trigger UI updates.
|
|
139
|
+
*
|
|
140
|
+
* @param itemId - ID of the item to expand
|
|
141
|
+
* @param item - The raw item being expanded
|
|
142
|
+
*/
|
|
143
|
+
expandBranch(itemId: string, item: I): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Collapse a branch.
|
|
146
|
+
* Optionally clears loaded children to free memory.
|
|
147
|
+
*
|
|
148
|
+
* @param itemId - ID of the item to collapse
|
|
149
|
+
*/
|
|
150
|
+
collapseBranch(itemId: string): void;
|
|
151
|
+
/**
|
|
152
|
+
* Clear cached children for a branch or all branches.
|
|
153
|
+
* Useful for freeing memory or forcing refresh.
|
|
154
|
+
*
|
|
155
|
+
* @param itemId - Optional ID of specific branch to clear. If not provided, clears all.
|
|
156
|
+
*/
|
|
157
|
+
clearCache(itemId?: string): void;
|
|
158
|
+
/**
|
|
159
|
+
* Initialize the data provider.
|
|
160
|
+
* Loads root items and sets up reactivity.
|
|
161
|
+
*/
|
|
162
|
+
init(): Promise<void>;
|
|
163
|
+
/**
|
|
164
|
+
* Dispose of the data provider.
|
|
165
|
+
* Cleans up reactions and clears caches.
|
|
166
|
+
*/
|
|
167
|
+
dispose(): void;
|
|
168
|
+
/**
|
|
169
|
+
* Promise that resolves when the provider is initialized.
|
|
170
|
+
*/
|
|
171
|
+
whenReady(): Promise<void>;
|
|
172
|
+
/**
|
|
173
|
+
* Manually refresh the tree.
|
|
174
|
+
* Triggers recomputation of all branches.
|
|
175
|
+
*/
|
|
176
|
+
refresh(): void;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=async-tree-data-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-tree-data-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/list/common/data-providers/async-tree-data-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE9D;;;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;;;;OAKG;IACH,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAExD;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,CAAC,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAE9C;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAEpC;;;;;;OAMG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErD;;;;;OAKG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;;;OAKG;IACH,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;OAGG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtB;;;OAGG;IACH,OAAO,IAAI,IAAI,CAAC;IAEhB;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3B;;;OAGG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { AsyncTreeBranch, AsyncTreeDataProvider, BranchLoadingState } from './async-tree-data-provider';
|
|
2
|
+
import { InputFilterAware, InputSortAware, ListItem, OutputFilterAware, OutputSortAware, DataProviderContext, DataProviderContextAware, ItemMap } from '../types';
|
|
3
|
+
import { IObservableArray } from 'mobx';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Base implementation of async tree data provider with fine-grained reactivity.
|
|
7
|
+
*
|
|
8
|
+
* REACTIVITY MODEL:
|
|
9
|
+
* - Root items: Observable array - changes trigger root-level recomputation only
|
|
10
|
+
* - Loaded children: Observable map - changes trigger specific branch recomputation only
|
|
11
|
+
* - Loading states: Observable map - changes trigger specific branch UI updates only
|
|
12
|
+
*
|
|
13
|
+
* PERFORMANCE:
|
|
14
|
+
* - Fine-grained MobX tracking ensures only affected branches recompute
|
|
15
|
+
* - Object identity preservation minimizes React re-renders
|
|
16
|
+
* - Lazy loading reduces initial computation cost
|
|
17
|
+
* - Branch cache maintains object references across recomputations
|
|
18
|
+
*
|
|
19
|
+
* DATA PIPELINE:
|
|
20
|
+
* Raw Items (I[])
|
|
21
|
+
* → filterByInputItem (ingress filter on I)
|
|
22
|
+
* → sortByInputItem (ingress sort on I)
|
|
23
|
+
* → itemMap (transform I → T)
|
|
24
|
+
* → filterItem (egress filter on T)
|
|
25
|
+
* → sortItem (egress sort on T)
|
|
26
|
+
* → Build branches recursively
|
|
27
|
+
*
|
|
28
|
+
* @category Data Providers
|
|
29
|
+
* @typeParam P - Parent model type that provides data
|
|
30
|
+
* @typeParam I - Raw input item type from the data source
|
|
31
|
+
* @typeParam T - Transformed ListItem type for display
|
|
32
|
+
* @typeParam C - Context data type for filtering and sorting
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* class MyTreeProvider extends BaseAsyncTreeDataProvider<Model, RawItem, TreeItem> {
|
|
37
|
+
* constructor(model: Model) {
|
|
38
|
+
* super(
|
|
39
|
+
* model,
|
|
40
|
+
* async function() { return await this.getRoots(); },
|
|
41
|
+
* async function(item) { return await this.getChildren(item.id); },
|
|
42
|
+
* (item) => ({ id: item.id, name: item.name })
|
|
43
|
+
* );
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* hasChildren(item: RawItem) { return item.type === 'folder'; }
|
|
47
|
+
* getItemId(item: RawItem) { return item.id; }
|
|
48
|
+
* }
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @see {@link AsyncTreeDataProvider} for the interface this implements
|
|
52
|
+
* @see {@link AsyncTreeList} for the React component that uses this provider
|
|
53
|
+
*
|
|
54
|
+
* @author TBD
|
|
55
|
+
* @version 2.1.1
|
|
56
|
+
*/
|
|
57
|
+
export declare abstract class BaseAsyncTreeDataProvider<P extends Record<string, any>, I extends Record<string, any>, T extends ListItem = ListItem, C extends Record<string, any> = Record<string, any>> implements AsyncTreeDataProvider<I, T, C>, InputSortAware<I>, InputFilterAware<I, C>, OutputSortAware<T>, OutputFilterAware<T, C>, DataProviderContextAware<C> {
|
|
58
|
+
protected parent: P;
|
|
59
|
+
private _itemMap;
|
|
60
|
+
private rootResolver;
|
|
61
|
+
private childResolver;
|
|
62
|
+
private rootDisposer?;
|
|
63
|
+
private childDisposers;
|
|
64
|
+
loadingStates: Map<string, BranchLoadingState>;
|
|
65
|
+
loadedChildren: Map<string, I[]>;
|
|
66
|
+
rootItems: IObservableArray<I>;
|
|
67
|
+
context: DataProviderContext<C>;
|
|
68
|
+
private _itemCache;
|
|
69
|
+
private _branchCache;
|
|
70
|
+
private _originalItems;
|
|
71
|
+
version: number;
|
|
72
|
+
initialized: boolean;
|
|
73
|
+
constructor(parent: P, rootResolver: (this: P, context?: DataProviderContext<C>) => Promise<I[]>, childResolver: (this: P, item: I, context?: DataProviderContext<C>) => Promise<I[]>, itemMap: ItemMap<I, T, C>, contextData?: C);
|
|
74
|
+
/**
|
|
75
|
+
* Abstract method to check if an item has children.
|
|
76
|
+
* Must be implemented by subclasses.
|
|
77
|
+
*/
|
|
78
|
+
abstract hasChildren(item: I): boolean | "unknown";
|
|
79
|
+
/**
|
|
80
|
+
* Abstract method to get unique ID for an item.
|
|
81
|
+
* Must be implemented by subclasses.
|
|
82
|
+
*/
|
|
83
|
+
abstract getItemId(item: I): string;
|
|
84
|
+
/**
|
|
85
|
+
* INGRESS: Filter on raw input type I (before itemMap).
|
|
86
|
+
* Override to implement custom filtering on raw model data.
|
|
87
|
+
*/
|
|
88
|
+
filterByInputItem(_item: I, _context?: DataProviderContext<C>): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* INGRESS: Sort on raw input type I (before itemMap).
|
|
91
|
+
* Override to implement custom sorting on raw model data.
|
|
92
|
+
*/
|
|
93
|
+
sortByInputItem(_a: I, _b: I): number;
|
|
94
|
+
/**
|
|
95
|
+
* EGRESS: Filter on transformed output type T (after itemMap).
|
|
96
|
+
* Override to implement custom filtering on transformed items.
|
|
97
|
+
*/
|
|
98
|
+
filterItem(_item: T, _context?: DataProviderContext<C>): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* EGRESS: Sort on transformed output type T (after itemMap).
|
|
101
|
+
* Override to implement custom sorting on transformed items.
|
|
102
|
+
*/
|
|
103
|
+
sortItem(_a: T, _b: T): number;
|
|
104
|
+
/**
|
|
105
|
+
* Get root items for the tree.
|
|
106
|
+
*/
|
|
107
|
+
getRootItems(): Promise<I[]>;
|
|
108
|
+
/**
|
|
109
|
+
* Get children for a specific item.
|
|
110
|
+
*/
|
|
111
|
+
getChildren(item: I, context?: DataProviderContext<C>): Promise<I[]>;
|
|
112
|
+
/**
|
|
113
|
+
* Get transformed item map function.
|
|
114
|
+
*/
|
|
115
|
+
itemMap(item: I, context: DataProviderContext<C>): T;
|
|
116
|
+
/**
|
|
117
|
+
* Manually refresh the tree.
|
|
118
|
+
* Triggers recomputation of all branches.
|
|
119
|
+
*/
|
|
120
|
+
refresh(): void;
|
|
121
|
+
/**
|
|
122
|
+
* Update a context value and refresh.
|
|
123
|
+
*/
|
|
124
|
+
updateContextValue(key: keyof C, value: C[keyof C]): void;
|
|
125
|
+
/**
|
|
126
|
+
* Remove a context value and refresh.
|
|
127
|
+
*/
|
|
128
|
+
removeContextValue(key: keyof C): void;
|
|
129
|
+
/**
|
|
130
|
+
* Computed tree structure with loading states.
|
|
131
|
+
* Fine-grained reactivity: Only affected branches recompute when data changes.
|
|
132
|
+
*/
|
|
133
|
+
get tree(): AsyncTreeBranch<T>[];
|
|
134
|
+
/**
|
|
135
|
+
* Computed getter for original items map.
|
|
136
|
+
* Provides observable access to original items for components while maintaining encapsulation.
|
|
137
|
+
*
|
|
138
|
+
* @returns Read-only map of item IDs to original items
|
|
139
|
+
*/
|
|
140
|
+
get originalItems(): ReadonlyMap<string, I>;
|
|
141
|
+
/**
|
|
142
|
+
* Build async tree recursively with fine-grained reactivity.
|
|
143
|
+
* MobX tracks individual map entries, so only affected branches recompute.
|
|
144
|
+
*/
|
|
145
|
+
private buildAsyncTree;
|
|
146
|
+
/**
|
|
147
|
+
* Expand a branch and load its children if not already loaded.
|
|
148
|
+
* Sets up reactive tracking so child data changes trigger targeted branch updates.
|
|
149
|
+
* Observable updates trigger targeted UI recomputation.
|
|
150
|
+
*/
|
|
151
|
+
expandBranch(itemId: string, item: I): Promise<void>;
|
|
152
|
+
/**
|
|
153
|
+
* Collapse a branch.
|
|
154
|
+
* Disposes child reaction and optionally clears loaded children to free memory.
|
|
155
|
+
*/
|
|
156
|
+
collapseBranch(itemId: string): void;
|
|
157
|
+
/**
|
|
158
|
+
* Clear cached children for a branch or all branches.
|
|
159
|
+
* Disposes child reactions for cleared branches.
|
|
160
|
+
*/
|
|
161
|
+
clearCache(itemId?: string): void;
|
|
162
|
+
/**
|
|
163
|
+
* Initialize the data provider.
|
|
164
|
+
* Loads root items and sets up reactivity.
|
|
165
|
+
*/
|
|
166
|
+
init(): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* Wait for the provider to be initialized.
|
|
169
|
+
*/
|
|
170
|
+
whenReady(): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Dispose of the data provider.
|
|
173
|
+
* Cleans up all reactions, caches, and resets state.
|
|
174
|
+
*/
|
|
175
|
+
dispose(): void;
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=base-async-tree-data-provider.d.ts.map
|
package/components/molecules/list/common/data-providers/base-async-tree-data-provider.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-async-tree-data-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/list/common/data-providers/base-async-tree-data-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,OAAO,EAGL,gBAAgB,EAIjB,MAAM,MAAM,CAAC;AACd,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EACb,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,8BAAsB,yBAAyB,CAC7C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACnD,YACE,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAC9B,cAAc,CAAC,CAAC,CAAC,EACjB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,eAAe,CAAC,CAAC,CAAC,EAClB,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EACvB,wBAAwB,CAAC,CAAC,CAAC;IAE7B,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;IACpB,OAAO,CAAC,QAAQ,CAAmB;IACnC,OAAO,CAAC,YAAY,CAGF;IAClB,OAAO,CAAC,aAAa,CAIH;IAClB,OAAO,CAAC,YAAY,CAAC,CAAa;IAClC,OAAO,CAAC,cAAc,CAA0B;IAGhD,aAAa,EAAE,GA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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputFilterAware, InputSortAware, ListDataProvider, ListItem, DataProviderContext, DataProviderContextAware, ItemMap } from '../types';
|
|
1
|
+
import { InputFilterAware, InputSortAware, ListDataProvider, ListItem, OutputFilterAware, OutputSortAware, DataProviderContext, DataProviderContextAware, ItemMap } from '../types';
|
|
2
2
|
|
|
3
|
-
export declare abstract class BaseObservableDataProvider<P extends Record<string, any>, I extends Record<string, any>, T extends ListItem = ListItem, C extends Record<string, any> = Record<string, any>> implements ListDataProvider<T>, InputSortAware<I>, InputFilterAware<I, C>, DataProviderContextAware<C> {
|
|
3
|
+
export declare abstract class BaseObservableDataProvider<P extends Record<string, any>, I extends Record<string, any>, T extends ListItem = ListItem, C extends Record<string, any> = Record<string, any>> implements ListDataProvider<T>, InputSortAware<I>, InputFilterAware<I, C>, DataProviderContextAware<C>, OutputSortAware<T>, OutputFilterAware<T, C> {
|
|
4
4
|
protected parent: P;
|
|
5
5
|
private _itemMap;
|
|
6
6
|
private disposer?;
|
|
@@ -14,6 +14,8 @@ export declare abstract class BaseObservableDataProvider<P extends Record<string
|
|
|
14
14
|
constructor(parent: P, resolver: (this: P, context?: DataProviderContext<C>) => I[], itemMap: ItemMap<I, T, C>, contextData?: C);
|
|
15
15
|
filterByInputItem(item: I, _context?: DataProviderContext<C>): boolean;
|
|
16
16
|
sortByInputItem(a: I, b: I): any;
|
|
17
|
+
filterItem(_item: T, _context?: DataProviderContext<C>): boolean;
|
|
18
|
+
sortItem(_a: T, _b: T): number;
|
|
17
19
|
refresh(): void;
|
|
18
20
|
get items(): T[];
|
|
19
21
|
init(): Promise<void>;
|
package/components/molecules/list/common/data-providers/base-observable-data-provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-observable-data-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/list/common/data-providers/base-observable-data-provider.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EACb,MAAM,UAAU,CAAC;AAclB,8BAAsB,0BAA0B,CAC9C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACnD,YACE,gBAAgB,CAAC,CAAC,CAAC,EACnB,cAAc,CAAC,CAAC,CAAC,EACjB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,wBAAwB,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"base-observable-data-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/list/common/data-providers/base-observable-data-provider.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,OAAO,EACb,MAAM,UAAU,CAAC;AAclB,8BAAsB,0BAA0B,CAC9C,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACnD,YACE,gBAAgB,CAAC,CAAC,CAAC,EACnB,cAAc,CAAC,CAAC,CAAC,EACjB,gBAAgB,CAAC,CAAC,E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EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IAOlD,kBAAkB,CAAC,GAAG,EAAE,MAAM,CAAC;IAK/B,OAAO;CAQR"}
|
|
@@ -2,4 +2,6 @@ export * from './base-observable-data-provider';
|
|
|
2
2
|
export * from '../../group-list/grouped-observable-data-provider';
|
|
3
3
|
export * from './observable-data-provider';
|
|
4
4
|
export * from './property-data-provider';
|
|
5
|
+
export * from './async-tree-data-provider';
|
|
6
|
+
export * from './base-async-tree-data-provider';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/list/common/data-providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,mDAAmD,CAAC;AAClE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/libraries/base-ui-components/src/components/molecules/list/common/data-providers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,mDAAmD,CAAC;AAClE,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC"}
|