@sme.up/ketchup 11.0.0-SNAPSHOT-20241017130107 → 11.0.0-SNAPSHOT-20241018090121

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 (30) hide show
  1. package/dist/cjs/kup-activity-timeline.cjs.entry.js +1 -1
  2. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +6 -6
  3. package/dist/cjs/kup-autocomplete_27.cjs.entry.js.map +1 -1
  4. package/dist/cjs/kup-box.cjs.entry.js +1 -1
  5. package/dist/cjs/{kup-data-table-helper-cf31cb4e.js → kup-data-table-helper-52444d44.js} +2 -2
  6. package/dist/cjs/{kup-data-table-helper-cf31cb4e.js.map → kup-data-table-helper-52444d44.js.map} +1 -1
  7. package/dist/collection/components/kup-tree/kup-tree-declarations.js +1 -1
  8. package/dist/collection/components/kup-tree/kup-tree-declarations.js.map +1 -1
  9. package/dist/collection/components/kup-tree/kup-tree.js +5 -5
  10. package/dist/collection/components/kup-tree/kup-tree.js.map +1 -1
  11. package/dist/components/kup-autocomplete2.js +6 -6
  12. package/dist/components/kup-autocomplete2.js.map +1 -1
  13. package/dist/esm/kup-activity-timeline.entry.js +1 -1
  14. package/dist/esm/kup-autocomplete_27.entry.js +6 -6
  15. package/dist/esm/kup-autocomplete_27.entry.js.map +1 -1
  16. package/dist/esm/kup-box.entry.js +1 -1
  17. package/dist/esm/{kup-data-table-helper-6b828446.js → kup-data-table-helper-74b29c0e.js} +2 -2
  18. package/dist/esm/{kup-data-table-helper-6b828446.js.map → kup-data-table-helper-74b29c0e.js.map} +1 -1
  19. package/dist/ketchup/ketchup.esm.js +1 -1
  20. package/dist/ketchup/{p-556618b0.entry.js → p-1b4dda8d.entry.js} +2 -2
  21. package/dist/ketchup/{p-f57c4edf.entry.js → p-40b3c165.entry.js} +3 -3
  22. package/dist/ketchup/{p-f57c4edf.entry.js.map → p-40b3c165.entry.js.map} +1 -1
  23. package/dist/ketchup/{p-35802f68.entry.js → p-6f138b8c.entry.js} +2 -2
  24. package/dist/ketchup/{p-454b6065.js → p-e9aaa7d5.js} +2 -2
  25. package/dist/ketchup/p-e9aaa7d5.js.map +1 -0
  26. package/dist/types/components/kup-tree/kup-tree-declarations.d.ts +3 -3
  27. package/package.json +1 -1
  28. package/dist/ketchup/p-454b6065.js.map +0 -1
  29. /package/dist/ketchup/{p-556618b0.entry.js.map → p-1b4dda8d.entry.js.map} +0 -0
  30. /package/dist/ketchup/{p-35802f68.entry.js.map → p-6f138b8c.entry.js.map} +0 -0
@@ -17,8 +17,8 @@ export var KupTreeProps;
17
17
  KupTreeProps["globalFilter"] = "When set to true it activates the global filter.";
18
18
  KupTreeProps["globalFilterValue"] = "The value of the global filter.";
19
19
  KupTreeProps["globalFilterMode"] = "The mode of the global filter.";
20
- KupTreeProps["removableColumns"] = "Sets the possibility to remove the selected column.";
21
20
  KupTreeProps["preventXScroll"] = "Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells. It works only on cells of the main column.";
21
+ KupTreeProps["removableColumns"] = "Sets the possibility to remove the selected column.";
22
22
  KupTreeProps["ripple"] = "When enabled displays Material's ripple effect on nodes (only when no columns are displayed).";
23
23
  KupTreeProps["scrollOnHover"] = "Activates the scroll on hover function.";
24
24
  KupTreeProps["showColumns"] = "Shows the tree data as a table.";
@@ -1 +1 @@
1
- {"version":3,"file":"kup-tree-declarations.js","sourceRoot":"","sources":["../../../src/components/kup-tree/kup-tree-declarations.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,MAAM,CAAN,IAAY,YA2BX;AA3BD,WAAY,YAAY;IACpB,4GAA4F,CAAA;IAC5F,sFAAsE,CAAA;IACtE,8DAA8C,CAAA;IAC9C,4GAA4F,CAAA;IAC5F,mHAAmG,CAAA;IACnG,0oBAA0nB,CAAA;IAC1nB,oEAAoD,CAAA;IACpD,yIAAyH,CAAA;IACzH,6KAA6J,CAAA;IAC7J,4DAA4C,CAAA;IAC5C,iFAAiE,CAAA;IACjE,qEAAqD,CAAA;IACrD,mEAAmD,CAAA;IACnD,wFAAwE,CAAA;IACxE,mOAAmN,CAAA;IACnN,wHAAwG,CAAA;IACxG,yEAAyD,CAAA;IACzD,+DAA+C,CAAA;IAC/C,4EAA4D,CAAA;IAC5D,iEAAiD,CAAA;IACjD,wGAAwF,CAAA;IACxF,2DAA2C,CAAA;IAC3C,4BAAY,CAAA;IACZ,0BAAU,CAAA;IACV,8DAA8C,CAAA;IAC9C,kWAAkV,CAAA;AACtV,CAAC,EA3BW,YAAY,KAAZ,YAAY,QA2BvB;AAWD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAiBhD,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACjB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B","sourcesContent":["import {\n KupDataCell,\n KupDataColumn,\n KupDataNode,\n KupDataRow,\n} from '../../managers/kup-data/kup-data-declarations';\nimport type { PointerEvent } from '@interactjs/types/index';\nimport { GenericMap, KupEventPayload } from '../../types/GenericTypes';\nimport { KupCardEventPayload } from '../kup-card/kup-card-declarations';\n/**\n * Props of the kup-tree component.\n * Used to export every prop in an object.\n */\nexport enum KupTreeProps {\n asAccordion = 'When enabled, the first level of depth will give an accordion look to nodes.',\n columns = 'The columns of the tree when tree visualization is active.',\n customStyle = 'Custom style of the component.',\n data = 'The json data used to populate the tree view: the basic, always visible tree nodes.',\n density = \"The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.\",\n dynamicExpansionCallback = 'Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.',\n enableExtraColumns = 'Enables adding extra columns.',\n expanded = 'Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded.',\n expansionMode = \"Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node.\",\n filters = 'List of filters set by the user.',\n globalFilter = 'When set to true it activates the global filter.',\n globalFilterValue = 'The value of the global filter.',\n globalFilterMode = 'The mode of the global filter.',\n removableColumns = 'Sets the possibility to remove the selected column.',\n preventXScroll = 'Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells. It works only on cells of the main column.',\n ripple = \"When enabled displays Material's ripple effect on nodes (only when no columns are displayed).\",\n scrollOnHover = 'Activates the scroll on hover function.',\n showColumns = 'Shows the tree data as a table.',\n showFilters = 'When set to true enables the column filters.',\n showFooter = 'When set to true shows the footer.',\n showHeader = 'Flag: shows the header of the tree when the tree is displayed as a table.',\n showIcons = 'Shows the icons of the nodes.',\n stateId = '',\n store = '',\n totals = 'Defines the current totals options.',\n useDynamicExpansion = 'When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server.',\n}\n\nexport interface KupTreeNode extends KupDataNode {\n expandable?: boolean;\n iconColor?: string;\n style?: GenericMap;\n visible?: boolean;\n}\n\nexport type TreeNodePath = number[];\n\n/**\n * The name of the constant used by the tree component to identify the main tree in column menu\n * @constant\n */\nexport const treeMainColumnName = 'TREE_COLUMN';\n\n/**\n * Contains all the data of an event.\n */\nexport interface KupTreeEventHandlerDetails {\n area: string;\n cell: KupDataCell;\n column: KupDataColumn;\n filterRemove: HTMLSpanElement;\n originalEvent: PointerEvent;\n row: KupDataRow;\n td: HTMLElement;\n th: HTMLElement;\n tr: HTMLElement;\n}\n\nexport enum KupTreeExpansionMode {\n DROPDOWN = 'dropdown',\n NODE = 'node',\n}\n\nexport interface KupTreeNodeCollapseEventPayload extends KupEventPayload {\n treeNodePath: TreeNodePath;\n treeNode: KupDataNode;\n}\n\nexport interface KupTreeNodeExpandEventPayload\n extends KupTreeNodeCollapseEventPayload {\n usesDynamicExpansion?: boolean;\n dynamicExpansionRequireChildren?: boolean;\n}\n\nexport interface KupTreeNodeSelectedEventPayload\n extends KupTreeNodeCollapseEventPayload {\n columnName: string;\n}\n\nexport interface KupTreeNodeButtonClickEventPayload\n extends KupTreeNodeCollapseEventPayload {\n column: KupDataColumn;\n columnName: string;\n}\n\nexport interface KupTreeContextMenuEventPayload extends KupEventPayload {\n details: KupTreeEventHandlerDetails;\n}\n\nexport interface KupTreeColumnMenuEventPayload extends KupEventPayload {\n card: HTMLKupCardElement;\n event: CustomEvent<KupCardEventPayload | KupEventPayload>;\n open: boolean;\n}\n\nexport interface KupTreeDynamicMassExpansionEventPayload\n extends KupEventPayload {\n treeNodePath?: TreeNodePath;\n treeNode?: KupDataNode;\n expandAll?: boolean;\n}\n\nexport interface KupTreeColumnRemoveEventPayload extends KupEventPayload {\n column: KupDataColumn;\n}\n"]}
1
+ {"version":3,"file":"kup-tree-declarations.js","sourceRoot":"","sources":["../../../src/components/kup-tree/kup-tree-declarations.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,MAAM,CAAN,IAAY,YA2BX;AA3BD,WAAY,YAAY;IACpB,4GAA4F,CAAA;IAC5F,sFAAsE,CAAA;IACtE,8DAA8C,CAAA;IAC9C,4GAA4F,CAAA;IAC5F,mHAAmG,CAAA;IACnG,0oBAA0nB,CAAA;IAC1nB,oEAAoD,CAAA;IACpD,yIAAyH,CAAA;IACzH,6KAA6J,CAAA;IAC7J,4DAA4C,CAAA;IAC5C,iFAAiE,CAAA;IACjE,qEAAqD,CAAA;IACrD,mEAAmD,CAAA;IACnD,mOAAmN,CAAA;IACnN,wFAAwE,CAAA;IACxE,wHAAwG,CAAA;IACxG,yEAAyD,CAAA;IACzD,+DAA+C,CAAA;IAC/C,4EAA4D,CAAA;IAC5D,iEAAiD,CAAA;IACjD,wGAAwF,CAAA;IACxF,2DAA2C,CAAA;IAC3C,4BAAY,CAAA;IACZ,0BAAU,CAAA;IACV,8DAA8C,CAAA;IAC9C,kWAAkV,CAAA;AACtV,CAAC,EA3BW,YAAY,KAAZ,YAAY,QA2BvB;AAWD;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAiBhD,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,qCAAa,CAAA;AACjB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B","sourcesContent":["import {\n KupDataCell,\n KupDataColumn,\n KupDataNode,\n} from '../../managers/kup-data/kup-data-declarations';\nimport type { PointerEvent } from '@interactjs/types/index';\nimport { GenericMap, KupEventPayload } from '../../types/GenericTypes';\nimport { KupCardEventPayload } from '../kup-card/kup-card-declarations';\n/**\n * Props of the kup-tree component.\n * Used to export every prop in an object.\n */\nexport enum KupTreeProps {\n asAccordion = 'When enabled, the first level of depth will give an accordion look to nodes.',\n columns = 'The columns of the tree when tree visualization is active.',\n customStyle = 'Custom style of the component.',\n data = 'The json data used to populate the tree view: the basic, always visible tree nodes.',\n density = \"The density of the rows, defaults at 'medium' and can also be set to 'dense' or 'wide'.\",\n dynamicExpansionCallback = 'Function that gets invoked when a new set of nodes must be loaded as children of a node. When useDynamicExpansion is set, the tree component will have two different behaviors depending on the value of this prop. If this prop is set to null, no callback to download data is available: the component will emit an event requiring the parent to load the children of the given node. If this prop is set to have a callback, then the component will automatically make requests to load children of a given node. After the load has been completed, a different event will be fired to alert the parent of the change.',\n enableExtraColumns = 'Enables adding extra columns.',\n expanded = 'Flag: the nodes of the whole tree must be already expanded upon loading. Disabled nodes do NOT get expanded.',\n expansionMode = \"Behavior of nodes' expansion: it can be chosen between expanding a node by clicking on the dropdown icon, or by clicking on the whole node.\",\n filters = 'List of filters set by the user.',\n globalFilter = 'When set to true it activates the global filter.',\n globalFilterValue = 'The value of the global filter.',\n globalFilterMode = 'The mode of the global filter.',\n preventXScroll = 'Experimental feature: when active, the tree will try to prevent horizontal overflowing elements by setting a width on the content of the table cells. It works only on cells of the main column.',\n removableColumns = 'Sets the possibility to remove the selected column.',\n ripple = \"When enabled displays Material's ripple effect on nodes (only when no columns are displayed).\",\n scrollOnHover = 'Activates the scroll on hover function.',\n showColumns = 'Shows the tree data as a table.',\n showFilters = 'When set to true enables the column filters.',\n showFooter = 'When set to true shows the footer.',\n showHeader = 'Flag: shows the header of the tree when the tree is displayed as a table.',\n showIcons = 'Shows the icons of the nodes.',\n stateId = '',\n store = '',\n totals = 'Defines the current totals options.',\n useDynamicExpansion = 'When the component must use the dynamic expansion feature to open its nodes, it means that not all the nodes of the tree have been passed inside the data property. Therefore, when expanding a node, the tree must emit an event (or run a given callback) and wait for the child nodes to be downloaded from the server.',\n}\n\nexport interface KupTreeNode extends KupDataNode {\n expandable?: boolean;\n iconColor?: string;\n style?: GenericMap;\n visible?: boolean;\n}\n\nexport type TreeNodePath = number[];\n\n/**\n * The name of the constant used by the tree component to identify the main tree in column menu\n * @constant\n */\nexport const treeMainColumnName = 'TREE_COLUMN';\n\n/**\n * Contains all the data of an event.\n */\nexport interface KupTreeEventHandlerDetails {\n area: string;\n cell: KupDataCell;\n column: KupDataColumn;\n filterRemove: HTMLSpanElement;\n originalEvent: PointerEvent;\n row: KupTreeNode;\n td: HTMLElement;\n th: HTMLElement;\n tr: HTMLElement;\n}\n\nexport enum KupTreeExpansionMode {\n DROPDOWN = 'dropdown',\n NODE = 'node',\n}\n\nexport interface KupTreeNodeCollapseEventPayload extends KupEventPayload {\n treeNodePath: TreeNodePath;\n treeNode: KupDataNode;\n}\n\nexport interface KupTreeNodeExpandEventPayload\n extends KupTreeNodeCollapseEventPayload {\n usesDynamicExpansion?: boolean;\n dynamicExpansionRequireChildren?: boolean;\n}\n\nexport interface KupTreeNodeSelectedEventPayload\n extends KupTreeNodeCollapseEventPayload {\n columnName: string;\n}\n\nexport interface KupTreeNodeButtonClickEventPayload\n extends KupTreeNodeCollapseEventPayload {\n column: KupDataColumn;\n columnName: string;\n}\n\nexport interface KupTreeContextMenuEventPayload extends KupEventPayload {\n details: KupTreeEventHandlerDetails;\n}\n\nexport interface KupTreeColumnMenuEventPayload extends KupEventPayload {\n card: HTMLKupCardElement;\n event: CustomEvent<KupCardEventPayload | KupEventPayload>;\n open: boolean;\n}\n\nexport interface KupTreeDynamicMassExpansionEventPayload\n extends KupEventPayload {\n treeNodePath?: TreeNodePath;\n treeNode?: KupDataNode;\n expandAll?: boolean;\n}\n\nexport interface KupTreeColumnRemoveEventPayload extends KupEventPayload {\n column: KupDataColumn;\n}\n"]}
@@ -1362,17 +1362,17 @@ export class KupTree {
1362
1362
  this.data &&
1363
1363
  this.data.length &&
1364
1364
  this.data.length > 0) {
1365
- filterField = (h("div", { key: '1a040469e8b8ab1d4bc5b5e4b226a535325dc24f', id: "global-filter" }, h("kup-text-field", { key: '7148a47e255b1a770789cb183f7fed25679dd37c', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1365
+ filterField = (h("div", { key: '845f0a6bef83bfaaa76aad5845ee5af6768a1a09', id: "global-filter" }, h("kup-text-field", { key: 'c5aaaa7c98e5dfce92c2e6c11f75747fd69f550e', fullWidth: true, label: __classPrivateFieldGet(this, _KupTree_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), icon: KupThemeIconValues.SEARCH, initialValue: this.globalFilterValue, "onkup-textfield-input": (event) => {
1366
1366
  window.clearTimeout(this.globalFilterTimeout);
1367
1367
  this.globalFilterTimeout = window.setTimeout(() => this.onGlobalFilterChange(event), 600);
1368
1368
  } })));
1369
1369
  }
1370
- return (h(Host, { key: '34e0a50971a38b166ee0494d0dbafaa9bbdf8a30' }, h("style", { key: '18f72b5fed3e02b7a006a04c40d4ffa1486ab7b5' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '05d4d483d0691985e420a3aadb6d3dfd5969e218', id: componentWrapperId, class: wrapperClass }, filterField, h("div", { key: 'b25b9a90d126b281395a6a10f0d72efa40a9adda', class: "wrapper", ref: (el) => (this.treeWrapperRef =
1371
- el) }, h("table", { key: '036ed9303dc7363e7809aade72e81b4617157602', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
1370
+ return (h(Host, { key: 'c41109b7db78f7cde7dc4ba9cec7263e4d31786f' }, h("style", { key: '0a4bfe1f6335c08087476992a330ef8c26fc2efc' }, __classPrivateFieldGet(this, _KupTree_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '2353e8b40be7585ef6313a9c06fff87b17a9d6d4', id: componentWrapperId, class: wrapperClass }, filterField, h("div", { key: '7799575e8dd9ff74c412449340f7e3fbf9ecd8f9', class: "wrapper", ref: (el) => (this.treeWrapperRef =
1371
+ el) }, h("table", { key: 'a499a4bc1b3e66e91c6dd108bc75277823036d84', class: "kup-tree", "data-show-columns": this.showColumns, onContextMenu: (e) => {
1372
1372
  e.preventDefault();
1373
- } }, h("thead", { key: 'a746e447516e4c88feece9b0edcad3b81e943462', class: {
1373
+ } }, h("thead", { key: '17ec2f81534c1159aedeb3417e6410a0a518d0ed', class: {
1374
1374
  'header--is-visible': visibleHeader,
1375
- } }, h("tr", { key: 'ef02dc4aab182d0bd97cad1bfda8e30d438ec43e' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: '5ed242816054886aa86178a3b22106bf7761137e' }, treeNodes), (this.showFooter || this.hasTotals()) &&
1375
+ } }, h("tr", { key: 'b3211ca1c1faf601cf9d7dcb083ef47b78f39b66' }, visibleHeader ? this.renderHeader() : null)), h("tbody", { key: 'c71420599b7f63a288e20564ceb0c73ca0f704ce' }, treeNodes), (this.showFooter || this.hasTotals()) &&
1376
1376
  this.columns
1377
1377
  ? this.renderFooter()
1378
1378
  : null)))));