igniteui-grid-lite 0.9.0 → 0.11.0

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 (108) hide show
  1. package/components/cell.d.ts +11 -15
  2. package/components/cell.js +14 -3
  3. package/components/cell.js.map +1 -1
  4. package/components/column.d.ts +2 -2
  5. package/components/column.js.map +1 -1
  6. package/components/filter-row.d.ts +5 -3
  7. package/components/filter-row.js +97 -67
  8. package/components/filter-row.js.map +1 -1
  9. package/components/grid.d.ts +49 -8
  10. package/components/grid.js +116 -79
  11. package/components/grid.js.map +1 -1
  12. package/components/header-row.d.ts +1 -2
  13. package/components/header-row.js +6 -8
  14. package/components/header-row.js.map +1 -1
  15. package/components/header.d.ts +9 -0
  16. package/components/header.js +37 -28
  17. package/components/header.js.map +1 -1
  18. package/components/row.d.ts +4 -4
  19. package/components/row.js +15 -4
  20. package/components/row.js.map +1 -1
  21. package/controllers/data-operation.d.ts +1 -7
  22. package/controllers/data-operation.js +7 -24
  23. package/controllers/data-operation.js.map +1 -1
  24. package/controllers/dom.d.ts +16 -9
  25. package/controllers/dom.js +71 -20
  26. package/controllers/dom.js.map +1 -1
  27. package/controllers/filter.d.ts +17 -13
  28. package/controllers/filter.js +51 -61
  29. package/controllers/filter.js.map +1 -1
  30. package/controllers/navigation.d.ts +13 -18
  31. package/controllers/navigation.js +71 -76
  32. package/controllers/navigation.js.map +1 -1
  33. package/controllers/resize.d.ts +11 -17
  34. package/controllers/resize.js +20 -16
  35. package/controllers/resize.js.map +1 -1
  36. package/controllers/sort.d.ts +13 -6
  37. package/controllers/sort.js +39 -41
  38. package/controllers/sort.js.map +1 -1
  39. package/controllers/state.d.ts +18 -19
  40. package/controllers/state.js +31 -35
  41. package/controllers/state.js.map +1 -1
  42. package/custom-elements.json +970 -488
  43. package/docs/igniteui-grid-lite.json +1293 -782
  44. package/index.d.ts +1 -1
  45. package/index.js.map +1 -1
  46. package/internal/a11y.d.ts +26 -0
  47. package/internal/a11y.js +24 -0
  48. package/internal/a11y.js.map +1 -0
  49. package/internal/body-focus.d.ts +6 -0
  50. package/internal/body-focus.js +46 -0
  51. package/internal/body-focus.js.map +1 -0
  52. package/internal/constants.d.ts +6 -2
  53. package/internal/constants.js +3 -4
  54. package/internal/constants.js.map +1 -1
  55. package/internal/element-from-event-path.d.ts +1 -1
  56. package/internal/element-from-event-path.js +2 -9
  57. package/internal/element-from-event-path.js.map +1 -1
  58. package/internal/normalize-case.d.ts +5 -1
  59. package/internal/normalize-case.js +2 -1
  60. package/internal/normalize-case.js.map +1 -1
  61. package/internal/part-map.js +9 -17
  62. package/internal/part-map.js.map +1 -1
  63. package/internal/tags.d.ts +1 -2
  64. package/internal/tags.js +1 -2
  65. package/internal/tags.js.map +1 -1
  66. package/internal/types.d.ts +19 -8
  67. package/internal/types.js.map +1 -1
  68. package/internal/utils.d.ts +7 -8
  69. package/internal/utils.js +22 -5
  70. package/internal/utils.js.map +1 -1
  71. package/internal/watch.js +8 -9
  72. package/internal/watch.js.map +1 -1
  73. package/operations/base.js +3 -2
  74. package/operations/base.js.map +1 -1
  75. package/operations/filter/state.d.ts +0 -1
  76. package/operations/filter/state.js +2 -8
  77. package/operations/filter/state.js.map +1 -1
  78. package/operations/filter/tree.d.ts +1 -2
  79. package/operations/filter/tree.js +2 -7
  80. package/operations/filter/tree.js.map +1 -1
  81. package/operations/filter/types.d.ts +1 -1
  82. package/operations/filter/types.js.map +1 -1
  83. package/operations/filter.js +16 -3
  84. package/operations/filter.js.map +1 -1
  85. package/operations/sort/types.d.ts +1 -1
  86. package/operations/sort/types.js.map +1 -1
  87. package/operations/sort.d.ts +0 -1
  88. package/operations/sort.js +12 -10
  89. package/operations/sort.js.map +1 -1
  90. package/package.json +2 -3
  91. package/styles/header-cell/header-cell.css.js +1 -1
  92. package/styles/header-cell/header-cell.css.js.map +1 -1
  93. package/styles/themes/filtering-row-themes.js +2 -30
  94. package/styles/themes/filtering-row-themes.js.map +1 -1
  95. package/styles/themes/grid-header-themes.js +2 -20
  96. package/styles/themes/grid-header-themes.js.map +1 -1
  97. package/styles/themes/grid-themes.js +10 -31
  98. package/styles/themes/grid-themes.js.map +1 -1
  99. package/styles/themes/grid.base.css.js +1 -1
  100. package/styles/themes/grid.base.css.js.map +1 -1
  101. package/styles/themes/shared/grid.common.css.js +1 -1
  102. package/styles/themes/shared/grid.common.css.js.map +1 -1
  103. package/components/virtualizer.d.ts +0 -12
  104. package/components/virtualizer.js +0 -20
  105. package/components/virtualizer.js.map +0 -1
  106. package/internal/virt-flow-layout.d.ts +0 -4
  107. package/internal/virt-flow-layout.js +0 -15
  108. package/internal/virt-flow-layout.js.map +0 -1
@@ -1,15 +0,0 @@
1
- import { FlowLayout } from '@lit-labs/virtualizer/layouts/flow.js';
2
- function measureItemWithScaleAdjust(element) {
3
- let { width, height } = element.getBoundingClientRect();
4
- const offsetHeight = element.offsetHeight;
5
- if (Math.abs(offsetHeight - height) > 1) {
6
- height = offsetHeight;
7
- }
8
- return { width, height };
9
- }
10
- export class IgcFlowLayout extends FlowLayout {
11
- get measureChildren() {
12
- return measureItemWithScaleAdjust;
13
- }
14
- }
15
- //# sourceMappingURL=virt-flow-layout.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"virt-flow-layout.js","sourceRoot":"","sources":["../../src/internal/virt-flow-layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAQnE,SAAS,0BAA0B,CAAC,OAAoB;IACtD,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;IACxD,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,IAAI,CAAC,GAAG,CAAC,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;QAGxC,MAAM,GAAG,YAAY,CAAC;IACxB,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,OAAO,aAAc,SAAQ,UAAU;IAC3C,IAAoB,eAAe;QAEjC,OAAO,0BAA0B,CAAC;IACpC,CAAC;CACF","sourcesContent":["import { FlowLayout } from '@lit-labs/virtualizer/layouts/flow.js';\n\n/**\n * Override for the [built-in item measure function](https://github.com/lit/lit/blob/f243134b226735320b61466cebdaf0c1e574bfa7/packages/labs/virtualizer/src/Virtualizer.ts#L519-L524)\n * @see {@link https://github.com/IgniteUI/igniteui-grid-lite/issues/20 #20} for more.\n * @remarks\n * Note: Unlike the built-in, this does _not_ measure margins and will not work with such.\n */\nfunction measureItemWithScaleAdjust(element: HTMLElement) {\n let { width, height } = element.getBoundingClientRect();\n const offsetHeight = element.offsetHeight;\n if (Math.abs(offsetHeight - height) > 1) {\n // likely scaling, prefer the offsetHeight\n // should check if its on rows vs virtualizer, but oh well\n height = offsetHeight;\n }\n return { width, height };\n}\n\nexport class IgcFlowLayout extends FlowLayout {\n public override get measureChildren(): boolean {\n // @ts-expect-error - Base class types this as boolean, but runtime accepts a function override\n return measureItemWithScaleAdjust;\n }\n}\n"]}