@iobroker/gui-components 10.0.1 → 10.0.3

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.
Files changed (43) hide show
  1. package/README.md +6 -2
  2. package/build/Components/FileBrowser.js +18 -13
  3. package/build/Components/FileBrowser.js.map +1 -1
  4. package/build/Components/{ObjectBrowser.d.ts → ObjectBrowser/ObjectBrowserClass.d.ts} +142 -77
  5. package/build/Components/ObjectBrowser/ObjectBrowserClass.js +2462 -0
  6. package/build/Components/ObjectBrowser/ObjectBrowserClass.js.map +1 -0
  7. package/build/Components/ObjectBrowser/constants.d.ts +50 -0
  8. package/build/Components/ObjectBrowser/constants.js +138 -0
  9. package/build/Components/ObjectBrowser/constants.js.map +1 -0
  10. package/build/Components/ObjectBrowser/contextMenu.d.ts +13 -0
  11. package/build/Components/ObjectBrowser/contextMenu.js +354 -0
  12. package/build/Components/ObjectBrowser/contextMenu.js.map +1 -0
  13. package/build/Components/ObjectBrowser/dialogs.d.ts +31 -0
  14. package/build/Components/ObjectBrowser/dialogs.js +421 -0
  15. package/build/Components/ObjectBrowser/dialogs.js.map +1 -0
  16. package/build/Components/ObjectBrowser/index.d.ts +20 -0
  17. package/build/Components/ObjectBrowser/index.js +20 -0
  18. package/build/Components/ObjectBrowser/index.js.map +1 -0
  19. package/build/Components/ObjectBrowser/renderLeaf.d.ts +41 -0
  20. package/build/Components/ObjectBrowser/renderLeaf.js +1077 -0
  21. package/build/Components/ObjectBrowser/renderLeaf.js.map +1 -0
  22. package/build/Components/ObjectBrowser/styles.d.ts +7 -0
  23. package/build/Components/ObjectBrowser/styles.js +662 -0
  24. package/build/Components/ObjectBrowser/styles.js.map +1 -0
  25. package/build/Components/ObjectBrowser/toolbar.d.ts +26 -0
  26. package/build/Components/ObjectBrowser/toolbar.js +327 -0
  27. package/build/Components/ObjectBrowser/toolbar.js.map +1 -0
  28. package/build/Components/{objectBrowser.types.d.ts → ObjectBrowser/types.d.ts} +15 -10
  29. package/build/Components/{objectBrowserUtils.d.ts → ObjectBrowser/utils.d.ts} +22 -2
  30. package/build/Components/{objectBrowserUtils.js → ObjectBrowser/utils.js} +46 -2
  31. package/build/Components/ObjectBrowser/utils.js.map +1 -0
  32. package/build/Components/TreeTable.d.ts +2 -2
  33. package/build/Components/TreeTable.js.map +1 -1
  34. package/build/Dialogs/SelectID.d.ts +4 -4
  35. package/build/Dialogs/SelectID.js +2 -2
  36. package/build/Dialogs/SelectID.js.map +1 -1
  37. package/build/index.d.ts +2 -2
  38. package/build/index.js +1 -1
  39. package/build/index.js.map +1 -1
  40. package/package.json +5 -5
  41. package/build/Components/ObjectBrowser.js +0 -5162
  42. package/build/Components/ObjectBrowser.js.map +0 -1
  43. package/build/Components/objectBrowserUtils.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"./src/","sources":["Components/ObjectBrowser/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC","sourcesContent":["/**\n * Copyright 2020-2026, Denis Haev <dogafox@gmail.com>\n *\n * MIT License\n *\n * Public API of the object browser. The implementation is split into:\n * - `ObjectBrowserClass.tsx` - the component itself (state, subscriptions, tree, rendering)\n * - `dialogs.tsx` - all modal dialogs of the browser\n * - `toolbar.tsx` - toolbar, filter fields and the table header\n * - `renderLeaf.tsx` - rendering of one row of the table\n * - `contextMenu.tsx` - the context menu of a row\n * - `styles.ts` - styles of the component\n * - `constants.tsx` - constants and the icons of the object types\n * - `utils.tsx` - pure helper functions and small helper components\n * - `types.d.ts` - types of the component\n */\nexport { ObjectBrowserClass, ObjectBrowser } from './ObjectBrowserClass';\nexport { ITEM_IMAGES } from './constants';\nexport { getSelectIdIconFromObjects, pattern2RegEx } from './utils';\n\nexport type {\n TreeItemData,\n TreeItem,\n ObjectBrowserFilter,\n ObjectBrowserCustomFilter,\n ObjectBrowserColumn,\n ObjectBrowserProps,\n ObjectBrowserNavigation,\n} from './types';\n"]}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright 2020-2026, Denis Haev <dogafox@gmail.com>
3
+ *
4
+ * MIT License
5
+ *
6
+ * Part of the object browser, see ./ObjectBrowserClass.tsx
7
+ */
8
+ import { type JSX } from 'react';
9
+ import { type AdapterColumn, type TreeItem } from './types';
10
+ import type { ObjectBrowserClass } from './ObjectBrowserClass';
11
+ export declare function renderTooltipAccessControl(that: ObjectBrowserClass, acl: ioBroker.StateACL): null | JSX.Element;
12
+ export declare function renderColumnButtons(that: ObjectBrowserClass, id: string, item: TreeItem): (JSX.Element | null)[] | JSX.Element | null;
13
+ /**
14
+ * This function renders the value in different forms in the table
15
+ *
16
+ * @param that the object browser instance
17
+ * @param id state ID
18
+ * @param item Item
19
+ * @param narrowStyleWithDetails if use mobile view
20
+ */
21
+ export declare function renderColumnValue(that: ObjectBrowserClass, id: string, item: TreeItem, narrowStyleWithDetails?: boolean): JSX.Element | null;
22
+ /**
23
+ * Renders a custom value.
24
+ */
25
+ export declare function renderCustomValue(that: ObjectBrowserClass, obj: ioBroker.Object, it: AdapterColumn, item: TreeItem): JSX.Element | null;
26
+ export declare function renderAliasLink(that: ObjectBrowserClass, id: string, index?: number, customStyle?: Record<string, any>): JSX.Element | null;
27
+ /**
28
+ * Renders a leaf.
29
+ */
30
+ export declare function renderLeaf(that: ObjectBrowserClass, item: TreeItem, isExpanded: boolean | undefined, counter: {
31
+ count: number;
32
+ }): {
33
+ row: JSX.Element;
34
+ details: JSX.Element | null;
35
+ };
36
+ /**
37
+ * Renders an item.
38
+ */
39
+ export declare function renderItem(that: ObjectBrowserClass, root: TreeItem, isExpanded: boolean | undefined, counter?: {
40
+ count: number;
41
+ }): (JSX.Element | null)[];