@zengrid/core 1.0.1

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 (252) hide show
  1. package/README.md +55 -0
  2. package/dist/README.md +55 -0
  3. package/dist/index.cjs.default.js +1 -0
  4. package/dist/index.cjs.js +9882 -0
  5. package/dist/index.cjs.mjs +2 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.esm.js +9847 -0
  8. package/dist/package.json +49 -0
  9. package/dist/src/a11y/aria-manager.d.ts +171 -0
  10. package/dist/src/a11y/aria-manager.d.ts.map +1 -0
  11. package/dist/src/a11y/focus-manager.d.ts +124 -0
  12. package/dist/src/a11y/focus-manager.d.ts.map +1 -0
  13. package/dist/src/a11y/index.d.ts +8 -0
  14. package/dist/src/a11y/index.d.ts.map +1 -0
  15. package/dist/src/data/data-accessor/array-accessor.d.ts +38 -0
  16. package/dist/src/data/data-accessor/array-accessor.d.ts.map +1 -0
  17. package/dist/src/data/data-accessor/column-store-accessor.d.ts +41 -0
  18. package/dist/src/data/data-accessor/column-store-accessor.d.ts.map +1 -0
  19. package/dist/src/data/data-accessor/data-accessor.interface.d.ts +41 -0
  20. package/dist/src/data/data-accessor/data-accessor.interface.d.ts.map +1 -0
  21. package/dist/src/data/data-accessor/index.d.ts +9 -0
  22. package/dist/src/data/data-accessor/index.d.ts.map +1 -0
  23. package/dist/src/data/data-accessor/sparse-matrix-accessor.d.ts +39 -0
  24. package/dist/src/data/data-accessor/sparse-matrix-accessor.d.ts.map +1 -0
  25. package/dist/src/data/data-manager.d.ts +161 -0
  26. package/dist/src/data/data-manager.d.ts.map +1 -0
  27. package/dist/src/data/data-source.interface.d.ts +82 -0
  28. package/dist/src/data/data-source.interface.d.ts.map +1 -0
  29. package/dist/src/data/grid-data-model.d.ts +102 -0
  30. package/dist/src/data/grid-data-model.d.ts.map +1 -0
  31. package/dist/src/data/index-map/index-map.d.ts +30 -0
  32. package/dist/src/data/index-map/index-map.d.ts.map +1 -0
  33. package/dist/src/data/index-map/index-map.interface.d.ts +49 -0
  34. package/dist/src/data/index-map/index-map.interface.d.ts.map +1 -0
  35. package/dist/src/data/index-map/index.d.ts +7 -0
  36. package/dist/src/data/index-map/index.d.ts.map +1 -0
  37. package/dist/src/data/index.d.ts +9 -0
  38. package/dist/src/data/index.d.ts.map +1 -0
  39. package/dist/src/editing/cell-editor.interface.d.ts +87 -0
  40. package/dist/src/editing/cell-editor.interface.d.ts.map +1 -0
  41. package/dist/src/editing/date-editor.d.ts +67 -0
  42. package/dist/src/editing/date-editor.d.ts.map +1 -0
  43. package/dist/src/editing/editor-manager.d.ts +141 -0
  44. package/dist/src/editing/editor-manager.d.ts.map +1 -0
  45. package/dist/src/editing/index.d.ts +15 -0
  46. package/dist/src/editing/index.d.ts.map +1 -0
  47. package/dist/src/editing/number-editor.d.ts +68 -0
  48. package/dist/src/editing/number-editor.d.ts.map +1 -0
  49. package/dist/src/editing/select-editor.d.ts +53 -0
  50. package/dist/src/editing/select-editor.d.ts.map +1 -0
  51. package/dist/src/editing/text-editor.d.ts +69 -0
  52. package/dist/src/editing/text-editor.d.ts.map +1 -0
  53. package/dist/src/events/event-emitter.d.ts +90 -0
  54. package/dist/src/events/event-emitter.d.ts.map +1 -0
  55. package/dist/src/events/grid-events.d.ts +277 -0
  56. package/dist/src/events/grid-events.d.ts.map +1 -0
  57. package/dist/src/events/index.d.ts +6 -0
  58. package/dist/src/events/index.d.ts.map +1 -0
  59. package/dist/src/features/autofill/autofill-manager.d.ts +103 -0
  60. package/dist/src/features/autofill/autofill-manager.d.ts.map +1 -0
  61. package/dist/src/features/autofill/index.d.ts +6 -0
  62. package/dist/src/features/autofill/index.d.ts.map +1 -0
  63. package/dist/src/features/column-resize/auto-fit-calculator.d.ts +52 -0
  64. package/dist/src/features/column-resize/auto-fit-calculator.d.ts.map +1 -0
  65. package/dist/src/features/column-resize/column-resize-manager.d.ts +114 -0
  66. package/dist/src/features/column-resize/column-resize-manager.d.ts.map +1 -0
  67. package/dist/src/features/column-resize/column-resize-manager.interface.d.ts +167 -0
  68. package/dist/src/features/column-resize/column-resize-manager.interface.d.ts.map +1 -0
  69. package/dist/src/features/column-resize/column-resize.styles.css +30 -0
  70. package/dist/src/features/column-resize/index.d.ts +15 -0
  71. package/dist/src/features/column-resize/index.d.ts.map +1 -0
  72. package/dist/src/features/column-resize/resize-constraint-manager.d.ts +52 -0
  73. package/dist/src/features/column-resize/resize-constraint-manager.d.ts.map +1 -0
  74. package/dist/src/features/column-resize/resize-handle-renderer.d.ts +41 -0
  75. package/dist/src/features/column-resize/resize-handle-renderer.d.ts.map +1 -0
  76. package/dist/src/features/column-resize/resize-preview.d.ts +32 -0
  77. package/dist/src/features/column-resize/resize-preview.d.ts.map +1 -0
  78. package/dist/src/features/column-resize/resize-state-manager.d.ts +75 -0
  79. package/dist/src/features/column-resize/resize-state-manager.d.ts.map +1 -0
  80. package/dist/src/features/column-resize/resize-strategies.d.ts +26 -0
  81. package/dist/src/features/column-resize/resize-strategies.d.ts.map +1 -0
  82. package/dist/src/features/column-resize/resize-test-helper.d.ts +71 -0
  83. package/dist/src/features/column-resize/resize-test-helper.d.ts.map +1 -0
  84. package/dist/src/features/column-resize/resize-zone-detector.d.ts +32 -0
  85. package/dist/src/features/column-resize/resize-zone-detector.d.ts.map +1 -0
  86. package/dist/src/features/copy-paste/clipboard-manager.d.ts +116 -0
  87. package/dist/src/features/copy-paste/clipboard-manager.d.ts.map +1 -0
  88. package/dist/src/features/copy-paste/index.d.ts +6 -0
  89. package/dist/src/features/copy-paste/index.d.ts.map +1 -0
  90. package/dist/src/features/filtering/adapters/adapter.interface.d.ts +100 -0
  91. package/dist/src/features/filtering/adapters/adapter.interface.d.ts.map +1 -0
  92. package/dist/src/features/filtering/adapters/graphql-adapter.d.ts +124 -0
  93. package/dist/src/features/filtering/adapters/graphql-adapter.d.ts.map +1 -0
  94. package/dist/src/features/filtering/adapters/index.d.ts +11 -0
  95. package/dist/src/features/filtering/adapters/index.d.ts.map +1 -0
  96. package/dist/src/features/filtering/adapters/rest-adapter.d.ts +108 -0
  97. package/dist/src/features/filtering/adapters/rest-adapter.d.ts.map +1 -0
  98. package/dist/src/features/filtering/adapters/sql-adapter.d.ts +123 -0
  99. package/dist/src/features/filtering/adapters/sql-adapter.d.ts.map +1 -0
  100. package/dist/src/features/filtering/adapters/types.d.ts +201 -0
  101. package/dist/src/features/filtering/adapters/types.d.ts.map +1 -0
  102. package/dist/src/features/filtering/column-filter.d.ts +117 -0
  103. package/dist/src/features/filtering/column-filter.d.ts.map +1 -0
  104. package/dist/src/features/filtering/filter-autocomplete.d.ts +78 -0
  105. package/dist/src/features/filtering/filter-autocomplete.d.ts.map +1 -0
  106. package/dist/src/features/filtering/filter-cache.d.ts +113 -0
  107. package/dist/src/features/filtering/filter-cache.d.ts.map +1 -0
  108. package/dist/src/features/filtering/filter-compiler.d.ts +66 -0
  109. package/dist/src/features/filtering/filter-compiler.d.ts.map +1 -0
  110. package/dist/src/features/filtering/filter-export-manager.d.ts +131 -0
  111. package/dist/src/features/filtering/filter-export-manager.d.ts.map +1 -0
  112. package/dist/src/features/filtering/filter-index-manager.d.ts +126 -0
  113. package/dist/src/features/filtering/filter-index-manager.d.ts.map +1 -0
  114. package/dist/src/features/filtering/filter-manager.d.ts +408 -0
  115. package/dist/src/features/filtering/filter-manager.d.ts.map +1 -0
  116. package/dist/src/features/filtering/filter-optimizer.d.ts +101 -0
  117. package/dist/src/features/filtering/filter-optimizer.d.ts.map +1 -0
  118. package/dist/src/features/filtering/filter-query-parser.d.ts +69 -0
  119. package/dist/src/features/filtering/filter-query-parser.d.ts.map +1 -0
  120. package/dist/src/features/filtering/index.d.ts +20 -0
  121. package/dist/src/features/filtering/index.d.ts.map +1 -0
  122. package/dist/src/features/filtering/range-filter-optimizer.d.ts +138 -0
  123. package/dist/src/features/filtering/range-filter-optimizer.d.ts.map +1 -0
  124. package/dist/src/features/filtering/substring-filter.d.ts +90 -0
  125. package/dist/src/features/filtering/substring-filter.d.ts.map +1 -0
  126. package/dist/src/features/filtering/types.d.ts +204 -0
  127. package/dist/src/features/filtering/types.d.ts.map +1 -0
  128. package/dist/src/features/formulas/formula-calculator.d.ts +151 -0
  129. package/dist/src/features/formulas/formula-calculator.d.ts.map +1 -0
  130. package/dist/src/features/formulas/index.d.ts +6 -0
  131. package/dist/src/features/formulas/index.d.ts.map +1 -0
  132. package/dist/src/features/hit-testing/index.d.ts +7 -0
  133. package/dist/src/features/hit-testing/index.d.ts.map +1 -0
  134. package/dist/src/features/hit-testing/spatial-hit-tester.d.ts +137 -0
  135. package/dist/src/features/hit-testing/spatial-hit-tester.d.ts.map +1 -0
  136. package/dist/src/features/loading/index.d.ts +5 -0
  137. package/dist/src/features/loading/index.d.ts.map +1 -0
  138. package/dist/src/features/loading/loading-indicator.d.ts +79 -0
  139. package/dist/src/features/loading/loading-indicator.d.ts.map +1 -0
  140. package/dist/src/features/loading/loading.styles.css +413 -0
  141. package/dist/src/features/pagination/index.d.ts +5 -0
  142. package/dist/src/features/pagination/index.d.ts.map +1 -0
  143. package/dist/src/features/pagination/pagination.styles.css +288 -0
  144. package/dist/src/features/pagination/paginator.d.ts +89 -0
  145. package/dist/src/features/pagination/paginator.d.ts.map +1 -0
  146. package/dist/src/features/selection/index.d.ts +7 -0
  147. package/dist/src/features/selection/index.d.ts.map +1 -0
  148. package/dist/src/features/selection/selection-manager.d.ts +167 -0
  149. package/dist/src/features/selection/selection-manager.d.ts.map +1 -0
  150. package/dist/src/features/sorting/index.d.ts +13 -0
  151. package/dist/src/features/sorting/index.d.ts.map +1 -0
  152. package/dist/src/features/sorting/row-sorter.interface.d.ts +63 -0
  153. package/dist/src/features/sorting/row-sorter.interface.d.ts.map +1 -0
  154. package/dist/src/features/sorting/single-column-sorter.d.ts +75 -0
  155. package/dist/src/features/sorting/single-column-sorter.d.ts.map +1 -0
  156. package/dist/src/features/sorting/sort-manager.d.ts +132 -0
  157. package/dist/src/features/sorting/sort-manager.d.ts.map +1 -0
  158. package/dist/src/features/undo-redo/index.d.ts +8 -0
  159. package/dist/src/features/undo-redo/index.d.ts.map +1 -0
  160. package/dist/src/features/undo-redo/undo-redo-manager.d.ts +215 -0
  161. package/dist/src/features/undo-redo/undo-redo-manager.d.ts.map +1 -0
  162. package/dist/src/grid.d.ts +412 -0
  163. package/dist/src/grid.d.ts.map +1 -0
  164. package/dist/src/i18n/index.d.ts +8 -0
  165. package/dist/src/i18n/index.d.ts.map +1 -0
  166. package/dist/src/i18n/locale-manager.d.ts +123 -0
  167. package/dist/src/i18n/locale-manager.d.ts.map +1 -0
  168. package/dist/src/i18n/rtl-support.d.ts +120 -0
  169. package/dist/src/i18n/rtl-support.d.ts.map +1 -0
  170. package/dist/src/index.d.ts +38 -0
  171. package/dist/src/index.d.ts.map +1 -0
  172. package/dist/src/keyboard/index.d.ts +6 -0
  173. package/dist/src/keyboard/index.d.ts.map +1 -0
  174. package/dist/src/keyboard/keyboard-navigator.d.ts +171 -0
  175. package/dist/src/keyboard/keyboard-navigator.d.ts.map +1 -0
  176. package/dist/src/rendering/cache/index.d.ts +3 -0
  177. package/dist/src/rendering/cache/index.d.ts.map +1 -0
  178. package/dist/src/rendering/cache/renderer-cache.d.ts +100 -0
  179. package/dist/src/rendering/cache/renderer-cache.d.ts.map +1 -0
  180. package/dist/src/rendering/cache/renderer-cache.interface.d.ts +89 -0
  181. package/dist/src/rendering/cache/renderer-cache.interface.d.ts.map +1 -0
  182. package/dist/src/rendering/cell-pool/cell-pool.d.ts +36 -0
  183. package/dist/src/rendering/cell-pool/cell-pool.d.ts.map +1 -0
  184. package/dist/src/rendering/cell-pool/cell-pool.interface.d.ts +76 -0
  185. package/dist/src/rendering/cell-pool/cell-pool.interface.d.ts.map +1 -0
  186. package/dist/src/rendering/cell-pool/index.d.ts +6 -0
  187. package/dist/src/rendering/cell-pool/index.d.ts.map +1 -0
  188. package/dist/src/rendering/cell-positioner/cell-positioner.d.ts +46 -0
  189. package/dist/src/rendering/cell-positioner/cell-positioner.d.ts.map +1 -0
  190. package/dist/src/rendering/cell-positioner/cell-positioner.interface.d.ts +86 -0
  191. package/dist/src/rendering/cell-positioner/cell-positioner.interface.d.ts.map +1 -0
  192. package/dist/src/rendering/cell-positioner/index.d.ts +6 -0
  193. package/dist/src/rendering/cell-positioner/index.d.ts.map +1 -0
  194. package/dist/src/rendering/height-provider/height-provider.interface.d.ts +62 -0
  195. package/dist/src/rendering/height-provider/height-provider.interface.d.ts.map +1 -0
  196. package/dist/src/rendering/height-provider/index.d.ts +7 -0
  197. package/dist/src/rendering/height-provider/index.d.ts.map +1 -0
  198. package/dist/src/rendering/height-provider/uniform-height-provider.d.ts +31 -0
  199. package/dist/src/rendering/height-provider/uniform-height-provider.d.ts.map +1 -0
  200. package/dist/src/rendering/height-provider/variable-height-provider.d.ts +33 -0
  201. package/dist/src/rendering/height-provider/variable-height-provider.d.ts.map +1 -0
  202. package/dist/src/rendering/renderers/advanced-cell-renderer.d.ts +105 -0
  203. package/dist/src/rendering/renderers/advanced-cell-renderer.d.ts.map +1 -0
  204. package/dist/src/rendering/renderers/image-renderer.d.ts +60 -0
  205. package/dist/src/rendering/renderers/image-renderer.d.ts.map +1 -0
  206. package/dist/src/rendering/renderers/index.d.ts +13 -0
  207. package/dist/src/rendering/renderers/index.d.ts.map +1 -0
  208. package/dist/src/rendering/renderers/number-renderer.d.ts +71 -0
  209. package/dist/src/rendering/renderers/number-renderer.d.ts.map +1 -0
  210. package/dist/src/rendering/renderers/renderer-registry.d.ts +55 -0
  211. package/dist/src/rendering/renderers/renderer-registry.d.ts.map +1 -0
  212. package/dist/src/rendering/renderers/renderer.interface.d.ts +79 -0
  213. package/dist/src/rendering/renderers/renderer.interface.d.ts.map +1 -0
  214. package/dist/src/rendering/renderers/text-renderer.d.ts +20 -0
  215. package/dist/src/rendering/renderers/text-renderer.d.ts.map +1 -0
  216. package/dist/src/rendering/spatial-hit-tester.d.ts +108 -0
  217. package/dist/src/rendering/spatial-hit-tester.d.ts.map +1 -0
  218. package/dist/src/rendering/virtual-scroller/index.d.ts +6 -0
  219. package/dist/src/rendering/virtual-scroller/index.d.ts.map +1 -0
  220. package/dist/src/rendering/virtual-scroller/virtual-scroller.d.ts +56 -0
  221. package/dist/src/rendering/virtual-scroller/virtual-scroller.d.ts.map +1 -0
  222. package/dist/src/rendering/virtual-scroller/virtual-scroller.interface.d.ts +170 -0
  223. package/dist/src/rendering/virtual-scroller/virtual-scroller.interface.d.ts.map +1 -0
  224. package/dist/src/rendering/width-provider/index.d.ts +7 -0
  225. package/dist/src/rendering/width-provider/index.d.ts.map +1 -0
  226. package/dist/src/rendering/width-provider/uniform-width-provider.d.ts +31 -0
  227. package/dist/src/rendering/width-provider/uniform-width-provider.d.ts.map +1 -0
  228. package/dist/src/rendering/width-provider/variable-width-provider.d.ts +33 -0
  229. package/dist/src/rendering/width-provider/variable-width-provider.d.ts.map +1 -0
  230. package/dist/src/rendering/width-provider/width-provider.interface.d.ts +62 -0
  231. package/dist/src/rendering/width-provider/width-provider.interface.d.ts.map +1 -0
  232. package/dist/src/selection/hit-tester.d.ts +168 -0
  233. package/dist/src/selection/hit-tester.d.ts.map +1 -0
  234. package/dist/src/selection/hit-tester.interface.d.ts +108 -0
  235. package/dist/src/selection/hit-tester.interface.d.ts.map +1 -0
  236. package/dist/src/selection/index.d.ts +9 -0
  237. package/dist/src/selection/index.d.ts.map +1 -0
  238. package/dist/src/selection/range-utils.d.ts +219 -0
  239. package/dist/src/selection/range-utils.d.ts.map +1 -0
  240. package/dist/src/selection/range-utils.interface.d.ts +51 -0
  241. package/dist/src/selection/range-utils.interface.d.ts.map +1 -0
  242. package/dist/src/styles/grid.css +356 -0
  243. package/dist/src/styles.css +273 -0
  244. package/dist/src/touch/index.d.ts +6 -0
  245. package/dist/src/touch/index.d.ts.map +1 -0
  246. package/dist/src/touch/touch-handler.d.ts +167 -0
  247. package/dist/src/touch/touch-handler.d.ts.map +1 -0
  248. package/dist/src/types/index.d.ts +133 -0
  249. package/dist/src/types/index.d.ts.map +1 -0
  250. package/dist/src/types.d.ts +559 -0
  251. package/dist/src/types.d.ts.map +1 -0
  252. package/package.json +47 -0
@@ -0,0 +1,413 @@
1
+ /**
2
+ * Loading Indicator Styles
3
+ *
4
+ * Provides styles for 4 loading templates with animations:
5
+ * 1. Simple - Basic text
6
+ * 2. Animated - Rotating dots
7
+ * 3. Modern - Circular loader
8
+ * 4. Skeleton - Shimmer screen
9
+ */
10
+
11
+ /* ========================================
12
+ Base Loading Styles
13
+ ======================================== */
14
+
15
+ .zg-loading {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ width: 100%;
20
+ height: 100%;
21
+ z-index: 1000;
22
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
23
+ font-size: 14px;
24
+ color: #333;
25
+ user-select: none;
26
+ pointer-events: all;
27
+ opacity: 0;
28
+ transition: opacity 0.2s ease-in-out;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ }
33
+
34
+ .zg-loading-active {
35
+ opacity: 1;
36
+ }
37
+
38
+ .zg-loading-hiding {
39
+ opacity: 0;
40
+ }
41
+
42
+ /* Add backdrop to non-skeleton templates */
43
+ .zg-loading:not(.zg-loading-skeleton)::before {
44
+ content: '';
45
+ position: absolute;
46
+ top: 0;
47
+ left: 0;
48
+ right: 0;
49
+ bottom: 0;
50
+ background: rgba(255, 255, 255, 0.85);
51
+ backdrop-filter: blur(3px);
52
+ z-index: -1;
53
+ }
54
+
55
+ /* Position variants */
56
+ .zg-loading-top {
57
+ align-items: flex-start;
58
+ padding-top: 20px;
59
+ }
60
+
61
+ .zg-loading-center {
62
+ align-items: center;
63
+ }
64
+
65
+ .zg-loading-bottom {
66
+ align-items: flex-end;
67
+ padding-bottom: 20px;
68
+ }
69
+
70
+ .zg-loading-message {
71
+ margin-top: 12px;
72
+ text-align: center;
73
+ font-size: 14px;
74
+ color: #666;
75
+ }
76
+
77
+ /* Dark mode support */
78
+ @media (prefers-color-scheme: dark) {
79
+ .zg-loading {
80
+ color: #e0e0e0;
81
+ }
82
+
83
+ .zg-loading-message {
84
+ color: #aaa;
85
+ }
86
+ }
87
+
88
+ /* ========================================
89
+ Template 1: Simple
90
+ ======================================== */
91
+
92
+ .zg-loading-simple {
93
+ display: flex;
94
+ flex-direction: column;
95
+ align-items: center;
96
+ padding: 20px 32px;
97
+ background: rgba(255, 255, 255, 0.95);
98
+ border-radius: 8px;
99
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
100
+ backdrop-filter: blur(4px);
101
+ }
102
+
103
+ .zg-loading-simple .zg-loading-message {
104
+ margin: 0;
105
+ font-size: 14px;
106
+ font-weight: 500;
107
+ }
108
+
109
+ @media (prefers-color-scheme: dark) {
110
+ .zg-loading-simple {
111
+ background: rgba(42, 42, 42, 0.95);
112
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
113
+ }
114
+ }
115
+
116
+ /* ========================================
117
+ Template 2: Animated - Rotating Dots
118
+ ======================================== */
119
+
120
+ .zg-loading-animated {
121
+ display: flex;
122
+ flex-direction: column;
123
+ align-items: center;
124
+ padding: 24px 32px;
125
+ background: rgba(255, 255, 255, 0.95);
126
+ border-radius: 8px;
127
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
128
+ backdrop-filter: blur(4px);
129
+ }
130
+
131
+ .zg-loading-spinner {
132
+ display: flex;
133
+ gap: 8px;
134
+ align-items: center;
135
+ justify-content: center;
136
+ }
137
+
138
+ .zg-loading-dot {
139
+ width: 12px;
140
+ height: 12px;
141
+ background: #2196f3;
142
+ border-radius: 50%;
143
+ animation: zg-dot-bounce 1.4s infinite ease-in-out both;
144
+ }
145
+
146
+ .zg-loading-dot:nth-child(1) {
147
+ animation-delay: -0.32s;
148
+ }
149
+
150
+ .zg-loading-dot:nth-child(2) {
151
+ animation-delay: -0.16s;
152
+ }
153
+
154
+ .zg-loading-dot:nth-child(3) {
155
+ animation-delay: 0s;
156
+ }
157
+
158
+ @keyframes zg-dot-bounce {
159
+ 0%, 80%, 100% {
160
+ transform: scale(0.6);
161
+ opacity: 0.5;
162
+ }
163
+ 40% {
164
+ transform: scale(1);
165
+ opacity: 1;
166
+ }
167
+ }
168
+
169
+ @media (prefers-color-scheme: dark) {
170
+ .zg-loading-animated {
171
+ background: rgba(42, 42, 42, 0.95);
172
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
173
+ }
174
+
175
+ .zg-loading-dot {
176
+ background: #64b5f6;
177
+ }
178
+ }
179
+
180
+ /* ========================================
181
+ Template 3: Modern - Circular Loader
182
+ ======================================== */
183
+
184
+ .zg-loading-modern {
185
+ display: flex;
186
+ flex-direction: column;
187
+ align-items: center;
188
+ padding: 24px 32px;
189
+ background: rgba(255, 255, 255, 0.95);
190
+ border-radius: 8px;
191
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
192
+ backdrop-filter: blur(4px);
193
+ }
194
+
195
+ .zg-loading-spinner-circle {
196
+ width: 48px;
197
+ height: 48px;
198
+ }
199
+
200
+ .zg-loading-svg {
201
+ width: 100%;
202
+ height: 100%;
203
+ animation: zg-rotate 2s linear infinite;
204
+ }
205
+
206
+ .zg-loading-circle-path {
207
+ stroke: #2196f3;
208
+ stroke-width: 3;
209
+ stroke-linecap: round;
210
+ stroke-dasharray: 90, 150;
211
+ stroke-dashoffset: 0;
212
+ animation: zg-dash 1.5s ease-in-out infinite;
213
+ }
214
+
215
+ @keyframes zg-rotate {
216
+ 100% {
217
+ transform: rotate(360deg);
218
+ }
219
+ }
220
+
221
+ @keyframes zg-dash {
222
+ 0% {
223
+ stroke-dasharray: 1, 150;
224
+ stroke-dashoffset: 0;
225
+ }
226
+ 50% {
227
+ stroke-dasharray: 90, 150;
228
+ stroke-dashoffset: -35;
229
+ }
230
+ 100% {
231
+ stroke-dasharray: 90, 150;
232
+ stroke-dashoffset: -124;
233
+ }
234
+ }
235
+
236
+ @media (prefers-color-scheme: dark) {
237
+ .zg-loading-modern {
238
+ background: rgba(42, 42, 42, 0.95);
239
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
240
+ }
241
+
242
+ .zg-loading-circle-path {
243
+ stroke: #64b5f6;
244
+ }
245
+ }
246
+
247
+ /* ========================================
248
+ Template 4: Skeleton - Shimmer Screen
249
+ ======================================== */
250
+
251
+ .zg-loading-skeleton {
252
+ width: 100%;
253
+ height: 100%;
254
+ display: flex;
255
+ flex-direction: column;
256
+ align-items: center;
257
+ justify-content: center;
258
+ background: rgba(248, 248, 248, 0.98);
259
+ padding: 0;
260
+ box-shadow: none;
261
+ }
262
+
263
+ .zg-loading-skeleton-grid {
264
+ width: 100%;
265
+ height: 100%;
266
+ display: flex;
267
+ flex-direction: column;
268
+ overflow: hidden;
269
+ }
270
+
271
+ .zg-loading-skeleton-row {
272
+ display: flex;
273
+ height: 32px;
274
+ border-bottom: 1px solid #e0e0e0;
275
+ }
276
+
277
+ .zg-loading-skeleton-cell {
278
+ flex: 1;
279
+ min-width: 100px;
280
+ background: #f5f5f5;
281
+ border-right: 1px solid #e0e0e0;
282
+ overflow: hidden;
283
+ position: relative;
284
+ padding: 8px;
285
+ }
286
+
287
+ .zg-loading-skeleton-cell::before {
288
+ content: '';
289
+ display: block;
290
+ height: 12px;
291
+ background: #e0e0e0;
292
+ border-radius: 2px;
293
+ width: 80%;
294
+ }
295
+
296
+ .zg-loading-skeleton-shimmer {
297
+ position: absolute;
298
+ top: 0;
299
+ left: -100%;
300
+ width: 100%;
301
+ height: 100%;
302
+ background: linear-gradient(
303
+ 90deg,
304
+ transparent 0%,
305
+ rgba(255, 255, 255, 0.8) 50%,
306
+ transparent 100%
307
+ );
308
+ animation: zg-shimmer 1.5s infinite;
309
+ }
310
+
311
+ @keyframes zg-shimmer {
312
+ 0% {
313
+ left: -100%;
314
+ }
315
+ 100% {
316
+ left: 100%;
317
+ }
318
+ }
319
+
320
+ @media (prefers-color-scheme: dark) {
321
+ .zg-loading:not(.zg-loading-skeleton)::before {
322
+ background: rgba(30, 30, 30, 0.85);
323
+ }
324
+
325
+ .zg-loading-skeleton {
326
+ background: #1e1e1e;
327
+ }
328
+
329
+ .zg-loading-skeleton-row {
330
+ border-bottom-color: #404040;
331
+ }
332
+
333
+ .zg-loading-skeleton-cell {
334
+ background: #2a2a2a;
335
+ border-right-color: #404040;
336
+ }
337
+
338
+ .zg-loading-skeleton-cell::before {
339
+ background: #404040;
340
+ }
341
+
342
+ .zg-loading-skeleton-shimmer {
343
+ background: linear-gradient(
344
+ 90deg,
345
+ transparent 0%,
346
+ rgba(255, 255, 255, 0.05) 50%,
347
+ transparent 100%
348
+ );
349
+ }
350
+ }
351
+
352
+ /* ========================================
353
+ Responsive Design
354
+ ======================================== */
355
+
356
+ @media (max-width: 768px) {
357
+ .zg-loading-animated,
358
+ .zg-loading-modern,
359
+ .zg-loading-simple {
360
+ padding: 16px;
361
+ }
362
+
363
+ .zg-loading-message {
364
+ font-size: 13px;
365
+ }
366
+
367
+ .zg-loading-skeleton-grid {
368
+ padding: 12px;
369
+ }
370
+
371
+ .zg-loading-skeleton-row {
372
+ gap: 8px;
373
+ }
374
+
375
+ .zg-loading-skeleton-cell {
376
+ height: 32px;
377
+ }
378
+ }
379
+
380
+ /* ========================================
381
+ Accessibility
382
+ ======================================== */
383
+
384
+ /* Screen reader only text */
385
+ .zg-loading[aria-live="polite"]::before {
386
+ content: attr(aria-label);
387
+ position: absolute;
388
+ width: 1px;
389
+ height: 1px;
390
+ padding: 0;
391
+ margin: -1px;
392
+ overflow: hidden;
393
+ clip: rect(0, 0, 0, 0);
394
+ white-space: nowrap;
395
+ border-width: 0;
396
+ }
397
+
398
+ /* Reduced motion support */
399
+ @media (prefers-reduced-motion: reduce) {
400
+ .zg-loading,
401
+ .zg-loading-dot,
402
+ .zg-loading-svg,
403
+ .zg-loading-circle-path,
404
+ .zg-loading-skeleton-shimmer,
405
+ .zg-loading-progress-fill {
406
+ animation: none !important;
407
+ transition: none !important;
408
+ }
409
+
410
+ .zg-loading-spinner-circle {
411
+ opacity: 0.7;
412
+ }
413
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Pagination feature for ZenGrid
3
+ */
4
+ export { Paginator } from './paginator';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/src/features/pagination/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,288 @@
1
+ /**
2
+ * ZenGrid Pagination Styles
3
+ * Styles for 5 built-in pagination templates
4
+ */
5
+
6
+ /* Base Pagination Styles */
7
+ .zg-pagination {
8
+ display: flex;
9
+ align-items: center;
10
+ gap: 8px;
11
+ padding: 12px 16px;
12
+ background: #fff;
13
+ border-top: 1px solid #e0e0e0;
14
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
15
+ font-size: 14px;
16
+ user-select: none;
17
+ }
18
+
19
+ /* Button Styles */
20
+ .zg-pagination-btn {
21
+ min-width: 32px;
22
+ height: 32px;
23
+ padding: 4px 8px;
24
+ border: 1px solid #d0d0d0;
25
+ background: #fff;
26
+ color: #333;
27
+ font-size: 14px;
28
+ cursor: pointer;
29
+ border-radius: 4px;
30
+ transition: all 0.2s;
31
+ }
32
+
33
+ .zg-pagination-btn:hover:not(:disabled) {
34
+ background: #f5f5f5;
35
+ border-color: #999;
36
+ }
37
+
38
+ .zg-pagination-btn:active:not(:disabled) {
39
+ transform: scale(0.95);
40
+ }
41
+
42
+ .zg-pagination-btn-disabled {
43
+ opacity: 0.4;
44
+ cursor: not-allowed;
45
+ }
46
+
47
+ .zg-pagination-btn-active {
48
+ background: #2196f3;
49
+ color: white;
50
+ border-color: #2196f3;
51
+ }
52
+
53
+ .zg-pagination-btn-icon {
54
+ font-size: 18px;
55
+ padding: 4px;
56
+ min-width: 28px;
57
+ }
58
+
59
+ /* Select Styles */
60
+ .zg-pagination-select {
61
+ padding: 4px 24px 4px 8px;
62
+ border: 1px solid #d0d0d0;
63
+ border-radius: 4px;
64
+ background: #fff;
65
+ font-size: 14px;
66
+ cursor: pointer;
67
+ height: 32px;
68
+ }
69
+
70
+ .zg-pagination-select:hover {
71
+ border-color: #999;
72
+ }
73
+
74
+ /* Label Styles */
75
+ .zg-pagination-label {
76
+ color: #666;
77
+ margin: 0 4px;
78
+ }
79
+
80
+ /* Info Styles */
81
+ .zg-pagination-info {
82
+ color: #666;
83
+ margin-right: 8px;
84
+ }
85
+
86
+ /* Ellipsis */
87
+ .zg-pagination-ellipsis {
88
+ padding: 0 4px;
89
+ color: #999;
90
+ }
91
+
92
+ /* Input Styles */
93
+ .zg-pagination-input {
94
+ width: 50px;
95
+ height: 32px;
96
+ padding: 4px 8px;
97
+ border: 1px solid #d0d0d0;
98
+ border-radius: 4px;
99
+ text-align: center;
100
+ font-size: 14px;
101
+ margin: 0 8px;
102
+ }
103
+
104
+ .zg-pagination-input:focus {
105
+ outline: none;
106
+ border-color: #2196f3;
107
+ }
108
+
109
+ /* Template 1: Simple */
110
+ .zg-pagination-simple {
111
+ justify-content: center;
112
+ }
113
+
114
+ /* Template 2: Material */
115
+ .zg-pagination-material {
116
+ justify-content: flex-end;
117
+ }
118
+
119
+ .zg-pagination-size-selector {
120
+ display: flex;
121
+ align-items: center;
122
+ gap: 8px;
123
+ margin-right: 24px;
124
+ }
125
+
126
+ .zg-pagination-nav {
127
+ display: flex;
128
+ gap: 4px;
129
+ }
130
+
131
+ /* Template 3: Bootstrap */
132
+ .zg-pagination-bootstrap {
133
+ justify-content: center;
134
+ }
135
+
136
+ .zg-pagination-list {
137
+ display: flex;
138
+ list-style: none;
139
+ margin: 0;
140
+ padding: 0;
141
+ gap: 4px;
142
+ }
143
+
144
+ .zg-pagination-item {
145
+ display: flex;
146
+ }
147
+
148
+ .zg-pagination-link {
149
+ min-width: 36px;
150
+ height: 36px;
151
+ padding: 8px 12px;
152
+ border: 1px solid #dee2e6;
153
+ background: #fff;
154
+ color: #0d6efd;
155
+ font-size: 14px;
156
+ cursor: pointer;
157
+ border-radius: 4px;
158
+ transition: all 0.2s;
159
+ display: flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ }
163
+
164
+ .zg-pagination-link:hover:not(:disabled) {
165
+ background: #e9ecef;
166
+ border-color: #0d6efd;
167
+ }
168
+
169
+ .zg-pagination-item-active .zg-pagination-link {
170
+ background: #0d6efd;
171
+ color: white;
172
+ border-color: #0d6efd;
173
+ }
174
+
175
+ .zg-pagination-link:disabled {
176
+ opacity: 0.5;
177
+ cursor: not-allowed;
178
+ color: #6c757d;
179
+ }
180
+
181
+ /* Template 4: Compact */
182
+ .zg-pagination-compact {
183
+ justify-content: space-between;
184
+ }
185
+
186
+ .zg-pagination-page-input {
187
+ display: flex;
188
+ align-items: center;
189
+ gap: 8px;
190
+ }
191
+
192
+ /* Template 5: Full */
193
+ .zg-pagination-full {
194
+ justify-content: space-between;
195
+ }
196
+
197
+ .zg-pagination-section-left,
198
+ .zg-pagination-section-center,
199
+ .zg-pagination-section-right {
200
+ display: flex;
201
+ align-items: center;
202
+ gap: 8px;
203
+ }
204
+
205
+ .zg-pagination-section-center {
206
+ gap: 4px;
207
+ }
208
+
209
+ .zg-pagination-counter {
210
+ color: #666;
211
+ font-weight: 500;
212
+ }
213
+
214
+ /* Dark Mode Support */
215
+ @media (prefers-color-scheme: dark) {
216
+ .zg-pagination {
217
+ background: #1e1e1e;
218
+ border-color: #404040;
219
+ }
220
+
221
+ .zg-pagination-btn,
222
+ .zg-pagination-select,
223
+ .zg-pagination-input,
224
+ .zg-pagination-link {
225
+ background: #2d2d2d;
226
+ border-color: #404040;
227
+ color: #e0e0e0;
228
+ }
229
+
230
+ .zg-pagination-btn:hover:not(:disabled),
231
+ .zg-pagination-select:hover,
232
+ .zg-pagination-link:hover:not(:disabled) {
233
+ background: #3d3d3d;
234
+ border-color: #606060;
235
+ }
236
+
237
+ .zg-pagination-btn-active {
238
+ background: #1976d2;
239
+ border-color: #1976d2;
240
+ }
241
+
242
+ .zg-pagination-item-active .zg-pagination-link {
243
+ background: #1976d2;
244
+ border-color: #1976d2;
245
+ }
246
+
247
+ .zg-pagination-label,
248
+ .zg-pagination-info,
249
+ .zg-pagination-counter {
250
+ color: #b0b0b0;
251
+ }
252
+
253
+ .zg-pagination-ellipsis {
254
+ color: #707070;
255
+ }
256
+ }
257
+
258
+ /* Responsive Styles */
259
+ @media (max-width: 768px) {
260
+ .zg-pagination {
261
+ flex-wrap: wrap;
262
+ gap: 8px;
263
+ }
264
+
265
+ .zg-pagination-full {
266
+ flex-direction: column;
267
+ gap: 12px;
268
+ }
269
+
270
+ .zg-pagination-section-left,
271
+ .zg-pagination-section-center,
272
+ .zg-pagination-section-right {
273
+ width: 100%;
274
+ justify-content: center;
275
+ }
276
+
277
+ .zg-pagination-info {
278
+ font-size: 12px;
279
+ }
280
+
281
+ .zg-pagination-btn,
282
+ .zg-pagination-link {
283
+ min-width: 28px;
284
+ height: 28px;
285
+ padding: 4px 6px;
286
+ font-size: 12px;
287
+ }
288
+ }