@keenthemes/ktui 1.1.0 → 1.1.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 (222) hide show
  1. package/README.md +0 -27
  2. package/dist/ktui.js +6790 -14063
  3. package/dist/ktui.min.js +1 -1
  4. package/dist/ktui.min.js.map +1 -1
  5. package/dist/styles.css +1132 -2705
  6. package/lib/cjs/components/datatable/__tests__/pagination-reset.test.js +596 -0
  7. package/lib/cjs/components/datatable/__tests__/pagination-reset.test.js.map +1 -0
  8. package/lib/cjs/components/datatable/__tests__/race-conditions.test.js +548 -0
  9. package/lib/cjs/components/datatable/__tests__/race-conditions.test.js.map +1 -0
  10. package/lib/cjs/components/datatable/__tests__/setup.js +63 -0
  11. package/lib/cjs/components/datatable/__tests__/setup.js.map +1 -0
  12. package/lib/cjs/components/datatable/datatable.js +92 -30
  13. package/lib/cjs/components/datatable/datatable.js.map +1 -1
  14. package/lib/cjs/index.js +1 -10
  15. package/lib/cjs/index.js.map +1 -1
  16. package/lib/esm/components/datatable/__tests__/pagination-reset.test.js +594 -0
  17. package/lib/esm/components/datatable/__tests__/pagination-reset.test.js.map +1 -0
  18. package/lib/esm/components/datatable/__tests__/race-conditions.test.js +546 -0
  19. package/lib/esm/components/datatable/__tests__/race-conditions.test.js.map +1 -0
  20. package/lib/esm/components/datatable/__tests__/setup.js +58 -0
  21. package/lib/esm/components/datatable/__tests__/setup.js.map +1 -0
  22. package/lib/esm/components/datatable/datatable.js +92 -30
  23. package/lib/esm/components/datatable/datatable.js.map +1 -1
  24. package/lib/esm/index.js +0 -7
  25. package/lib/esm/index.js.map +1 -1
  26. package/package.json +7 -9
  27. package/src/components/alert/alert.css +188 -429
  28. package/src/components/datatable/__tests__/pagination-reset.test.ts +657 -0
  29. package/src/components/datatable/__tests__/race-conditions.test.ts +455 -0
  30. package/src/components/datatable/__tests__/setup.ts +67 -0
  31. package/src/components/datatable/datatable.ts +66 -11
  32. package/src/components/input/input.css +0 -1
  33. package/src/components/select/select.css +0 -1
  34. package/src/components/select/variants.css +4 -0
  35. package/src/components/textarea/textarea.css +0 -1
  36. package/src/index.ts +0 -10
  37. package/styles.css +0 -1
  38. package/lib/cjs/components/alert/alert.js +0 -1025
  39. package/lib/cjs/components/alert/alert.js.map +0 -1
  40. package/lib/cjs/components/alert/index.js +0 -20
  41. package/lib/cjs/components/alert/index.js.map +0 -1
  42. package/lib/cjs/components/alert/templates.js +0 -120
  43. package/lib/cjs/components/alert/templates.js.map +0 -1
  44. package/lib/cjs/components/alert/types.js +0 -7
  45. package/lib/cjs/components/alert/types.js.map +0 -1
  46. package/lib/cjs/components/datepicker/config/config.js +0 -42
  47. package/lib/cjs/components/datepicker/config/config.js.map +0 -1
  48. package/lib/cjs/components/datepicker/config/index.js +0 -24
  49. package/lib/cjs/components/datepicker/config/index.js.map +0 -1
  50. package/lib/cjs/components/datepicker/config/interfaces.js +0 -7
  51. package/lib/cjs/components/datepicker/config/interfaces.js.map +0 -1
  52. package/lib/cjs/components/datepicker/config/types.js +0 -7
  53. package/lib/cjs/components/datepicker/config/types.js.map +0 -1
  54. package/lib/cjs/components/datepicker/core/event-manager.js +0 -135
  55. package/lib/cjs/components/datepicker/core/event-manager.js.map +0 -1
  56. package/lib/cjs/components/datepicker/core/focus-manager.js +0 -167
  57. package/lib/cjs/components/datepicker/core/focus-manager.js.map +0 -1
  58. package/lib/cjs/components/datepicker/core/helpers.js +0 -219
  59. package/lib/cjs/components/datepicker/core/helpers.js.map +0 -1
  60. package/lib/cjs/components/datepicker/core/index.js +0 -25
  61. package/lib/cjs/components/datepicker/core/index.js.map +0 -1
  62. package/lib/cjs/components/datepicker/core/unified-state-manager.js +0 -394
  63. package/lib/cjs/components/datepicker/core/unified-state-manager.js.map +0 -1
  64. package/lib/cjs/components/datepicker/datepicker.js +0 -2252
  65. package/lib/cjs/components/datepicker/datepicker.js.map +0 -1
  66. package/lib/cjs/components/datepicker/index.js +0 -24
  67. package/lib/cjs/components/datepicker/index.js.map +0 -1
  68. package/lib/cjs/components/datepicker/ui/index.js +0 -23
  69. package/lib/cjs/components/datepicker/ui/index.js.map +0 -1
  70. package/lib/cjs/components/datepicker/ui/input/dropdown.js +0 -489
  71. package/lib/cjs/components/datepicker/ui/input/dropdown.js.map +0 -1
  72. package/lib/cjs/components/datepicker/ui/input/index.js +0 -23
  73. package/lib/cjs/components/datepicker/ui/input/index.js.map +0 -1
  74. package/lib/cjs/components/datepicker/ui/input/segmented-input.js +0 -640
  75. package/lib/cjs/components/datepicker/ui/input/segmented-input.js.map +0 -1
  76. package/lib/cjs/components/datepicker/ui/renderers/calendar.js +0 -446
  77. package/lib/cjs/components/datepicker/ui/renderers/calendar.js.map +0 -1
  78. package/lib/cjs/components/datepicker/ui/renderers/footer.js +0 -42
  79. package/lib/cjs/components/datepicker/ui/renderers/footer.js.map +0 -1
  80. package/lib/cjs/components/datepicker/ui/renderers/header.js +0 -32
  81. package/lib/cjs/components/datepicker/ui/renderers/header.js.map +0 -1
  82. package/lib/cjs/components/datepicker/ui/renderers/index.js +0 -25
  83. package/lib/cjs/components/datepicker/ui/renderers/index.js.map +0 -1
  84. package/lib/cjs/components/datepicker/ui/renderers/time-picker.js +0 -384
  85. package/lib/cjs/components/datepicker/ui/renderers/time-picker.js.map +0 -1
  86. package/lib/cjs/components/datepicker/ui/templates/index.js +0 -22
  87. package/lib/cjs/components/datepicker/ui/templates/index.js.map +0 -1
  88. package/lib/cjs/components/datepicker/ui/templates/templates.js +0 -253
  89. package/lib/cjs/components/datepicker/ui/templates/templates.js.map +0 -1
  90. package/lib/cjs/components/datepicker/utils/date-formatters.js +0 -88
  91. package/lib/cjs/components/datepicker/utils/date-formatters.js.map +0 -1
  92. package/lib/cjs/components/datepicker/utils/date-utils.js +0 -194
  93. package/lib/cjs/components/datepicker/utils/date-utils.js.map +0 -1
  94. package/lib/cjs/components/datepicker/utils/index.js +0 -24
  95. package/lib/cjs/components/datepicker/utils/index.js.map +0 -1
  96. package/lib/cjs/components/datepicker/utils/time-utils.js +0 -213
  97. package/lib/cjs/components/datepicker/utils/time-utils.js.map +0 -1
  98. package/lib/esm/components/alert/alert.js +0 -1022
  99. package/lib/esm/components/alert/alert.js.map +0 -1
  100. package/lib/esm/components/alert/index.js +0 -4
  101. package/lib/esm/components/alert/index.js.map +0 -1
  102. package/lib/esm/components/alert/templates.js +0 -112
  103. package/lib/esm/components/alert/templates.js.map +0 -1
  104. package/lib/esm/components/alert/types.js +0 -6
  105. package/lib/esm/components/alert/types.js.map +0 -1
  106. package/lib/esm/components/datepicker/config/config.js +0 -39
  107. package/lib/esm/components/datepicker/config/config.js.map +0 -1
  108. package/lib/esm/components/datepicker/config/index.js +0 -8
  109. package/lib/esm/components/datepicker/config/index.js.map +0 -1
  110. package/lib/esm/components/datepicker/config/interfaces.js +0 -6
  111. package/lib/esm/components/datepicker/config/interfaces.js.map +0 -1
  112. package/lib/esm/components/datepicker/config/types.js +0 -6
  113. package/lib/esm/components/datepicker/config/types.js.map +0 -1
  114. package/lib/esm/components/datepicker/core/event-manager.js +0 -133
  115. package/lib/esm/components/datepicker/core/event-manager.js.map +0 -1
  116. package/lib/esm/components/datepicker/core/focus-manager.js +0 -164
  117. package/lib/esm/components/datepicker/core/focus-manager.js.map +0 -1
  118. package/lib/esm/components/datepicker/core/helpers.js +0 -211
  119. package/lib/esm/components/datepicker/core/helpers.js.map +0 -1
  120. package/lib/esm/components/datepicker/core/index.js +0 -9
  121. package/lib/esm/components/datepicker/core/index.js.map +0 -1
  122. package/lib/esm/components/datepicker/core/unified-state-manager.js +0 -391
  123. package/lib/esm/components/datepicker/core/unified-state-manager.js.map +0 -1
  124. package/lib/esm/components/datepicker/datepicker.js +0 -2248
  125. package/lib/esm/components/datepicker/datepicker.js.map +0 -1
  126. package/lib/esm/components/datepicker/index.js +0 -7
  127. package/lib/esm/components/datepicker/index.js.map +0 -1
  128. package/lib/esm/components/datepicker/ui/index.js +0 -7
  129. package/lib/esm/components/datepicker/ui/index.js.map +0 -1
  130. package/lib/esm/components/datepicker/ui/input/dropdown.js +0 -486
  131. package/lib/esm/components/datepicker/ui/input/dropdown.js.map +0 -1
  132. package/lib/esm/components/datepicker/ui/input/index.js +0 -7
  133. package/lib/esm/components/datepicker/ui/input/index.js.map +0 -1
  134. package/lib/esm/components/datepicker/ui/input/segmented-input.js +0 -637
  135. package/lib/esm/components/datepicker/ui/input/segmented-input.js.map +0 -1
  136. package/lib/esm/components/datepicker/ui/renderers/calendar.js +0 -443
  137. package/lib/esm/components/datepicker/ui/renderers/calendar.js.map +0 -1
  138. package/lib/esm/components/datepicker/ui/renderers/footer.js +0 -39
  139. package/lib/esm/components/datepicker/ui/renderers/footer.js.map +0 -1
  140. package/lib/esm/components/datepicker/ui/renderers/header.js +0 -29
  141. package/lib/esm/components/datepicker/ui/renderers/header.js.map +0 -1
  142. package/lib/esm/components/datepicker/ui/renderers/index.js +0 -9
  143. package/lib/esm/components/datepicker/ui/renderers/index.js.map +0 -1
  144. package/lib/esm/components/datepicker/ui/renderers/time-picker.js +0 -381
  145. package/lib/esm/components/datepicker/ui/renderers/time-picker.js.map +0 -1
  146. package/lib/esm/components/datepicker/ui/templates/index.js +0 -6
  147. package/lib/esm/components/datepicker/ui/templates/index.js.map +0 -1
  148. package/lib/esm/components/datepicker/ui/templates/templates.js +0 -242
  149. package/lib/esm/components/datepicker/ui/templates/templates.js.map +0 -1
  150. package/lib/esm/components/datepicker/utils/date-formatters.js +0 -83
  151. package/lib/esm/components/datepicker/utils/date-formatters.js.map +0 -1
  152. package/lib/esm/components/datepicker/utils/date-utils.js +0 -184
  153. package/lib/esm/components/datepicker/utils/date-utils.js.map +0 -1
  154. package/lib/esm/components/datepicker/utils/index.js +0 -8
  155. package/lib/esm/components/datepicker/utils/index.js.map +0 -1
  156. package/lib/esm/components/datepicker/utils/time-utils.js +0 -201
  157. package/lib/esm/components/datepicker/utils/time-utils.js.map +0 -1
  158. package/src/components/alert/alert.ts +0 -990
  159. package/src/components/alert/index.ts +0 -4
  160. package/src/components/alert/templates.ts +0 -110
  161. package/src/components/alert/tests/accessibility/aria-roles.test.ts +0 -19
  162. package/src/components/alert/tests/accessibility/focus-management.test.ts +0 -19
  163. package/src/components/alert/tests/accessibility/keyboard-nav.test.ts +0 -22
  164. package/src/components/alert/tests/actions/confirm-cancel.test.ts +0 -122
  165. package/src/components/alert/tests/actions/input-field.test.ts +0 -180
  166. package/src/components/alert/tests/alert.basic.test.ts +0 -126
  167. package/src/components/alert/tests/alert.config.test.ts +0 -75
  168. package/src/components/alert/tests/alert.templates.test.ts +0 -17
  169. package/src/components/alert/tests/config/attribute-config.test.ts +0 -94
  170. package/src/components/alert/tests/config/json-config.test.ts +0 -119
  171. package/src/components/alert/tests/config/merging.test.ts +0 -89
  172. package/src/components/alert/tests/dismissal/auto-dismiss.test.ts +0 -96
  173. package/src/components/alert/tests/dismissal/escape-key-dismiss.test.ts +0 -105
  174. package/src/components/alert/tests/dismissal/manual-dismiss.test.ts +0 -90
  175. package/src/components/alert/tests/dismissal/outside-click-dismiss.test.ts +0 -91
  176. package/src/components/alert/tests/edge-cases/invalid-config.test.ts +0 -19
  177. package/src/components/alert/tests/edge-cases/multiple-alerts.test.ts +0 -19
  178. package/src/components/alert/tests/rendering/custom-content.test.ts +0 -81
  179. package/src/components/alert/tests/rendering/info-alert.test.ts +0 -84
  180. package/src/components/alert/tests/rendering/success-alert.test.ts +0 -100
  181. package/src/components/alert/tests/templates/default-templates.test.ts +0 -16
  182. package/src/components/alert/tests/templates/user-templates.test.ts +0 -16
  183. package/src/components/alert/types.ts +0 -145
  184. package/src/components/datepicker/__tests__/datepicker-events.test.ts +0 -356
  185. package/src/components/datepicker/__tests__/datepicker-init.test.ts +0 -343
  186. package/src/components/datepicker/__tests__/datepicker-integration.test.ts +0 -435
  187. package/src/components/datepicker/__tests__/datepicker-timezone.test.ts +0 -220
  188. package/src/components/datepicker/__tests__/segmented-input-focus.test.ts +0 -380
  189. package/src/components/datepicker/__tests__/selective-state-updates.test.ts +0 -400
  190. package/src/components/datepicker/__tests__/state-manager.test.ts +0 -421
  191. package/src/components/datepicker/__tests__/time-preservation.test.ts +0 -387
  192. package/src/components/datepicker/config/config.ts +0 -40
  193. package/src/components/datepicker/config/index.ts +0 -8
  194. package/src/components/datepicker/config/interfaces.ts +0 -82
  195. package/src/components/datepicker/config/types.ts +0 -188
  196. package/src/components/datepicker/core/event-manager.ts +0 -159
  197. package/src/components/datepicker/core/focus-manager.ts +0 -201
  198. package/src/components/datepicker/core/helpers.ts +0 -231
  199. package/src/components/datepicker/core/index.ts +0 -9
  200. package/src/components/datepicker/core/unified-state-manager.ts +0 -459
  201. package/src/components/datepicker/datepicker.css +0 -435
  202. package/src/components/datepicker/datepicker.ts +0 -2548
  203. package/src/components/datepicker/index.ts +0 -8
  204. package/src/components/datepicker/ui/index.ts +0 -7
  205. package/src/components/datepicker/ui/input/dropdown.ts +0 -552
  206. package/src/components/datepicker/ui/input/index.ts +0 -7
  207. package/src/components/datepicker/ui/input/segmented-input.ts +0 -638
  208. package/src/components/datepicker/ui/renderers/__tests__/calendar-optimizations.test.ts +0 -611
  209. package/src/components/datepicker/ui/renderers/calendar.ts +0 -530
  210. package/src/components/datepicker/ui/renderers/footer.ts +0 -43
  211. package/src/components/datepicker/ui/renderers/header.ts +0 -33
  212. package/src/components/datepicker/ui/renderers/index.ts +0 -9
  213. package/src/components/datepicker/ui/renderers/time-picker.ts +0 -438
  214. package/src/components/datepicker/ui/templates/index.ts +0 -6
  215. package/src/components/datepicker/ui/templates/templates.ts +0 -306
  216. package/src/components/datepicker/utils/__tests__/date-formatters.test.ts +0 -160
  217. package/src/components/datepicker/utils/__tests__/date-utils-keys.test.ts +0 -86
  218. package/src/components/datepicker/utils/__tests__/date-utils-timezone.test.ts +0 -215
  219. package/src/components/datepicker/utils/date-formatters.ts +0 -85
  220. package/src/components/datepicker/utils/date-utils.ts +0 -172
  221. package/src/components/datepicker/utils/index.ts +0 -8
  222. package/src/components/datepicker/utils/time-utils.ts +0 -221
@@ -1,486 +0,0 @@
1
- /*
2
- * dropdown.ts - Datepicker dropdown management
3
- * Provides dropdown functionality for KTDatepicker following select component patterns.
4
- * Handles positioning, transitions, and event management.
5
- */
6
- var __extends = (this && this.__extends) || (function () {
7
- var extendStatics = function (d, b) {
8
- extendStatics = Object.setPrototypeOf ||
9
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
10
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
11
- return extendStatics(d, b);
12
- };
13
- return function (d, b) {
14
- if (typeof b !== "function" && b !== null)
15
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
16
- extendStatics(d, b);
17
- function __() { this.constructor = d; }
18
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19
- };
20
- })();
21
- import { createPopper, } from '@popperjs/core';
22
- import KTDom from '../../../../helpers/dom';
23
- import KTComponent from '../../../component';
24
- import { EventManager } from '../../core/event-manager';
25
- /**
26
- * KTDatepickerDropdown
27
- *
28
- * A specialized dropdown implementation for the KTDatepicker component.
29
- * This module handles the dropdown functionality for the datepicker component,
30
- * including positioning and showing/hiding.
31
- */
32
- var KTDatepickerDropdown = /** @class */ (function (_super) {
33
- __extends(KTDatepickerDropdown, _super);
34
- /**
35
- * Constructor
36
- * @param element The parent element (datepicker wrapper)
37
- * @param toggleElement The element that triggers the dropdown
38
- * @param dropdownElement The dropdown content element
39
- * @param config The configuration options
40
- */
41
- function KTDatepickerDropdown(element, toggleElement, dropdownElement, config) {
42
- var _this = _super.call(this) || this;
43
- _this._name = 'datepicker-dropdown';
44
- // State (will be managed by unified state manager)
45
- _this._isOpen = false;
46
- _this._isTransitioning = false;
47
- _this._popperInstance = null;
48
- // Unified state manager reference
49
- _this._unifiedStateManager = null;
50
- _this._element = element;
51
- _this._toggleElement = toggleElement;
52
- _this._dropdownElement = dropdownElement;
53
- _this._config = config;
54
- var container = _this._resolveDropdownContainer();
55
- if (container) {
56
- if (container !== _this._dropdownElement.parentElement) {
57
- container.appendChild(_this._dropdownElement);
58
- }
59
- }
60
- _this._eventManager = new EventManager();
61
- _this._setupEventListeners();
62
- return _this;
63
- }
64
- /**
65
- * Set up event listeners for the dropdown
66
- */
67
- KTDatepickerDropdown.prototype._setupEventListeners = function () {
68
- // Event listeners are managed by the main datepicker class
69
- };
70
- /**
71
- * StateObserver implementation
72
- */
73
- KTDatepickerDropdown.prototype.onStateChange = function (newState, oldState) {
74
- // React to dropdown state changes from unified state manager
75
- if (newState.dropdownState.isOpen !== oldState.dropdownState.isOpen) {
76
- if (newState.dropdownState.isOpen) {
77
- this._handleOpenFromState();
78
- }
79
- else {
80
- this._handleCloseFromState();
81
- }
82
- }
83
- if (newState.dropdownState.isTransitioning !== oldState.dropdownState.isTransitioning) {
84
- this._isTransitioning = newState.dropdownState.isTransitioning;
85
- }
86
- };
87
- KTDatepickerDropdown.prototype.getUpdatePriority = function () {
88
- return 10; // Medium priority for dropdown updates
89
- };
90
- /**
91
- * Set unified state manager reference
92
- */
93
- KTDatepickerDropdown.prototype.setUnifiedStateManager = function (stateManager) {
94
- this._unifiedStateManager = stateManager;
95
- };
96
- /**
97
- * Handle open state change from unified state manager
98
- */
99
- KTDatepickerDropdown.prototype._handleOpenFromState = function () {
100
- this._isOpen = true;
101
- this._performOpenTransition();
102
- };
103
- /**
104
- * Handle close state change from unified state manager
105
- */
106
- KTDatepickerDropdown.prototype._handleCloseFromState = function () {
107
- this._performCloseTransition();
108
- };
109
- /**
110
- * Perform the actual open transition
111
- */
112
- KTDatepickerDropdown.prototype._performOpenTransition = function () {
113
- var _this = this;
114
- if (this._isTransitioning)
115
- return;
116
- // Begin opening transition
117
- this._isTransitioning = true;
118
- // Set initial styles
119
- this._dropdownElement.classList.remove('hidden');
120
- this._dropdownElement.style.opacity = '0';
121
- // Set dropdown width
122
- this._setDropdownWidth();
123
- // Reflow
124
- KTDom.reflow(this._dropdownElement);
125
- // Apply z-index
126
- var zIndexToApply = null;
127
- if (this._config.dropdownZindex) {
128
- zIndexToApply = this._config.dropdownZindex;
129
- }
130
- // Consider the dropdown's current z-index if it's already set and higher
131
- var currentDropdownZIndexStr = KTDom.getCssProp(this._dropdownElement, 'z-index');
132
- if (currentDropdownZIndexStr && currentDropdownZIndexStr !== 'auto') {
133
- var currentDropdownZIndex = parseInt(currentDropdownZIndexStr);
134
- if (!isNaN(currentDropdownZIndex) && currentDropdownZIndex > (zIndexToApply || 0)) {
135
- zIndexToApply = currentDropdownZIndex;
136
- }
137
- }
138
- // Ensure dropdown is above elements within its original toggle's parent context
139
- var toggleParentContextZindex = KTDom.getHighestZindex(this._element);
140
- if (toggleParentContextZindex !== null && toggleParentContextZindex >= (zIndexToApply || 0)) {
141
- zIndexToApply = toggleParentContextZindex + 1;
142
- }
143
- if (zIndexToApply !== null) {
144
- this._dropdownElement.style.zIndex = zIndexToApply.toString();
145
- }
146
- // Initialize popper
147
- this._initPopper();
148
- // Add active classes for visual state
149
- this._dropdownElement.classList.add('open');
150
- this._toggleElement.classList.add('active');
151
- // Start transition
152
- this._dropdownElement.style.opacity = '1';
153
- // Handle transition end
154
- KTDom.transitionEnd(this._dropdownElement, function () {
155
- _this._isTransitioning = false;
156
- // Notify unified state manager that transition is complete
157
- if (_this._unifiedStateManager) {
158
- _this._unifiedStateManager.setDropdownTransitioning(false, 'dropdown-transition-complete');
159
- }
160
- });
161
- };
162
- /**
163
- * Perform the actual close transition
164
- */
165
- KTDatepickerDropdown.prototype._performCloseTransition = function () {
166
- var _this = this;
167
- if (this._isTransitioning)
168
- return;
169
- this._isTransitioning = true;
170
- this._dropdownElement.style.opacity = '0';
171
- var transitionComplete = false;
172
- var fallbackTimer = setTimeout(function () {
173
- if (!transitionComplete) {
174
- transitionComplete = true;
175
- _this._completeCloseTransition();
176
- }
177
- }, 300); // Fallback timeout
178
- var completeTransition = function () {
179
- if (!transitionComplete) {
180
- transitionComplete = true;
181
- clearTimeout(fallbackTimer);
182
- _this._completeCloseTransition();
183
- }
184
- };
185
- KTDom.transitionEnd(this._dropdownElement, completeTransition);
186
- };
187
- /**
188
- * Complete the close transition
189
- */
190
- KTDatepickerDropdown.prototype._completeCloseTransition = function () {
191
- this._isTransitioning = false;
192
- this._isOpen = false;
193
- // Remove active classes
194
- this._dropdownElement.classList.remove('open');
195
- this._toggleElement.classList.remove('active');
196
- // Hide dropdown
197
- this._dropdownElement.classList.add('hidden');
198
- // Clean up popper
199
- this._destroyPopper();
200
- // Notify unified state manager that transition is complete
201
- if (this._unifiedStateManager) {
202
- this._unifiedStateManager.setDropdownTransitioning(false, 'dropdown-transition-complete');
203
- }
204
- };
205
- /**
206
- * Set dropdown width to match input wrapper element (matching ktselect behavior)
207
- * Dynamically calculates width based on visibleMonths for multi-month view
208
- */
209
- KTDatepickerDropdown.prototype._setDropdownWidth = function () {
210
- var _a;
211
- if (!this._dropdownElement || !this._element)
212
- return;
213
- // Find the input wrapper element to match its width
214
- var inputWrapper = this._element.querySelector('[data-kt-datepicker-input-wrapper]');
215
- if (!inputWrapper)
216
- return;
217
- // Get visible months count
218
- var visibleMonths = (_a = this._config.visibleMonths) !== null && _a !== void 0 ? _a : 1;
219
- // Check if width is configured
220
- if (this._config.dropdownWidth) {
221
- // If custom width is set, use that
222
- if (this._config.dropdownWidth === 'auto') {
223
- // Try to measure the actual content width first (if already rendered)
224
- var multiMonthContainer = this._dropdownElement.querySelector('[data-kt-datepicker-multimonth-container]');
225
- if (multiMonthContainer && visibleMonths > 1) {
226
- // Content is already rendered, measure it
227
- // Force a reflow to ensure accurate measurement
228
- KTDom.reflow(multiMonthContainer);
229
- // Measure content width including gaps
230
- var contentWidth = multiMonthContainer.scrollWidth;
231
- // Add dropdown padding (px-3 = 12px on each side = 24px total)
232
- var padding = 24;
233
- var totalWidth = contentWidth + padding;
234
- this._dropdownElement.style.width = "".concat(totalWidth, "px");
235
- this._dropdownElement.style.minWidth = "".concat(totalWidth, "px");
236
- }
237
- else if (visibleMonths > 1) {
238
- // Content not yet rendered, calculate expected width
239
- // Base month width: 20rem (320px) per month
240
- // Gap between months: 1rem (16px) per gap (gap-4)
241
- // Padding: 0.75rem (12px) on each side = 1.5rem (24px) total
242
- var monthWidth = 320; // 20rem = 320px
243
- var gapWidth = 16; // 1rem = 16px (gap-4)
244
- var paddingWidth = 24; // 1.5rem = 24px (px-3 on each side)
245
- // Calculate total width: (n months * 320px) + ((n-1) gaps * 16px) + padding
246
- var totalWidth = (visibleMonths * monthWidth) + ((visibleMonths - 1) * gapWidth) + paddingWidth;
247
- this._dropdownElement.style.width = "".concat(totalWidth, "px");
248
- this._dropdownElement.style.minWidth = "".concat(totalWidth, "px");
249
- }
250
- else {
251
- // Single month: use auto (CSS default applies)
252
- this._dropdownElement.style.width = 'auto';
253
- this._dropdownElement.style.minWidth = 'auto';
254
- }
255
- }
256
- else if (typeof this._config.dropdownWidth === 'string') {
257
- this._dropdownElement.style.width = this._config.dropdownWidth;
258
- // Clear min-width when custom width is set
259
- this._dropdownElement.style.minWidth = '';
260
- }
261
- }
262
- else {
263
- // Otherwise, match input wrapper width for a cleaner appearance (like ktselect)
264
- var inputWrapperWidth = inputWrapper.offsetWidth;
265
- this._dropdownElement.style.width = "".concat(inputWrapperWidth, "px");
266
- // Clear min-width to ensure input wrapper width takes precedence
267
- this._dropdownElement.style.minWidth = '';
268
- }
269
- };
270
- /**
271
- * Detect if the datepicker is inside a modal container
272
- * @returns The modal element if found, null otherwise
273
- */
274
- KTDatepickerDropdown.prototype._getModalContainer = function () {
275
- return this._element.closest('[data-kt-modal], .kt-modal, .kt-modal-center');
276
- };
277
- /**
278
- * Get the appropriate boundary element for Popper positioning
279
- * For centered modals, use .kt-modal-content to avoid transform calculation issues
280
- * @returns The boundary element, or null if no modal found
281
- */
282
- KTDatepickerDropdown.prototype._getModalBoundary = function () {
283
- var modalParent = this._getModalContainer();
284
- if (!modalParent) {
285
- return null;
286
- }
287
- // For centered modals, use .kt-modal-content as boundary to avoid transform issues
288
- if (modalParent.classList.contains('kt-modal-center')) {
289
- var modalContent = modalParent.querySelector('.kt-modal-content');
290
- return modalContent || modalParent;
291
- }
292
- // For non-centered modals, use the modal element itself
293
- return modalParent;
294
- };
295
- /**
296
- * Get the appropriate positioning strategy based on context
297
- * @returns 'fixed' if inside non-centered modal, 'absolute' for centered modals or no modal
298
- */
299
- KTDatepickerDropdown.prototype._getPositioningStrategy = function () {
300
- // Check if config explicitly sets strategy
301
- if (this._config.dropdownStrategy) {
302
- return this._config.dropdownStrategy;
303
- }
304
- // For centered modals, use absolute positioning to avoid transform calculation issues
305
- // For non-centered modals, use fixed positioning
306
- var modalParent = this._getModalContainer();
307
- if (modalParent && modalParent.classList.contains('kt-modal-center')) {
308
- return 'absolute';
309
- }
310
- // Use fixed positioning for non-centered modals
311
- return modalParent ? 'fixed' : 'absolute';
312
- };
313
- /**
314
- * Get the reference element for Popper positioning (calendar button/icon)
315
- */
316
- KTDatepickerDropdown.prototype._getPopperReferenceElement = function () {
317
- // Use calendar button (toggle element) for positioning - dropdown sticks under the icon
318
- return this._toggleElement;
319
- };
320
- /**
321
- * Initialize Popper.js for positioning
322
- */
323
- KTDatepickerDropdown.prototype._initPopper = function () {
324
- var _this = this;
325
- if (this._popperInstance) {
326
- this._popperInstance.destroy();
327
- }
328
- // Default offset - matching ktselect
329
- var offsetValue = this._config.dropdownOffset || '0, 5';
330
- // Get configuration options
331
- var placement = this._config.dropdownPlacement || 'bottom-start';
332
- var strategy = this._getPositioningStrategy();
333
- var preventOverflow = this._config.dropdownPreventOverflow !== false;
334
- var flip = this._config.dropdownFlip !== false;
335
- // Get appropriate boundary element for modal context
336
- var boundary = this._getModalBoundary() || this._config.dropdownBoundary || 'clippingParents';
337
- // Get reference element for positioning (input wrapper, not the calendar button)
338
- var referenceElement = this._getPopperReferenceElement();
339
- // Create new popper instance
340
- this._popperInstance = createPopper(referenceElement, this._dropdownElement, {
341
- placement: placement,
342
- strategy: strategy,
343
- modifiers: [
344
- {
345
- name: 'offset',
346
- options: {
347
- offset: this._parseOffset(offsetValue),
348
- },
349
- },
350
- {
351
- name: 'preventOverflow',
352
- options: {
353
- boundary: boundary,
354
- altAxis: preventOverflow,
355
- },
356
- },
357
- {
358
- name: 'flip',
359
- options: {
360
- enabled: flip,
361
- fallbackPlacements: ['top-start', 'bottom-end', 'top-end'],
362
- },
363
- },
364
- {
365
- name: 'sameWidth',
366
- enabled: !this._config.dropdownWidth, // Enable when dropdownWidth is null/undefined (matching ktselect)
367
- phase: 'beforeWrite',
368
- requires: ['computeStyles'],
369
- fn: function (_a) {
370
- var state = _a.state;
371
- // Use input wrapper width instead of toggle element width
372
- var inputWrapper = _this._element.querySelector('[data-kt-datepicker-input-wrapper]');
373
- if (inputWrapper) {
374
- state.styles.popper.width = "".concat(inputWrapper.offsetWidth, "px");
375
- }
376
- else {
377
- // Fallback to reference width if input wrapper not found
378
- state.styles.popper.width = "".concat(state.rects.reference.width, "px");
379
- }
380
- },
381
- effect: function (_a) {
382
- var state = _a.state;
383
- // Use input wrapper width instead of toggle element width
384
- var inputWrapper = _this._element.querySelector('[data-kt-datepicker-input-wrapper]');
385
- if (inputWrapper && 'offsetWidth' in inputWrapper) {
386
- state.elements.popper.style.width = "".concat(inputWrapper.offsetWidth, "px");
387
- }
388
- else {
389
- // Fallback to reference width if input wrapper not found
390
- var reference = state.elements.reference;
391
- if (reference && 'offsetWidth' in reference) {
392
- state.elements.popper.style.width = "".concat(reference.offsetWidth, "px");
393
- }
394
- }
395
- },
396
- },
397
- ],
398
- });
399
- };
400
- /**
401
- * Parse offset string to array
402
- */
403
- KTDatepickerDropdown.prototype._parseOffset = function (offset) {
404
- return offset.split(',').map(function (val) { return parseInt(val.trim(), 10); });
405
- };
406
- /**
407
- * Destroy Popper instance
408
- */
409
- KTDatepickerDropdown.prototype._destroyPopper = function () {
410
- if (this._popperInstance) {
411
- this._popperInstance.destroy();
412
- this._popperInstance = null;
413
- }
414
- };
415
- /**
416
- * Update dropdown position
417
- */
418
- KTDatepickerDropdown.prototype.updatePosition = function () {
419
- if (this._popperInstance) {
420
- this._popperInstance.update();
421
- }
422
- };
423
- /**
424
- * Update dropdown width (useful after content is rendered)
425
- */
426
- KTDatepickerDropdown.prototype.updateWidth = function () {
427
- this._setDropdownWidth();
428
- // Also update popper position after width change
429
- if (this._popperInstance) {
430
- this._popperInstance.update();
431
- }
432
- };
433
- /**
434
- * Open the dropdown (legacy method - now handled by observer pattern)
435
- */
436
- KTDatepickerDropdown.prototype.open = function () {
437
- // This method is now deprecated - use unified state manager instead
438
- if (this._unifiedStateManager) {
439
- this._unifiedStateManager.setDropdownOpen(true, 'legacy-open-method');
440
- }
441
- };
442
- /**
443
- * Close the dropdown (legacy method - now handled by observer pattern)
444
- */
445
- KTDatepickerDropdown.prototype.close = function () {
446
- // This method is now deprecated - use unified state manager instead
447
- if (this._unifiedStateManager) {
448
- this._unifiedStateManager.setDropdownOpen(false, 'legacy-close-method');
449
- }
450
- };
451
- /**
452
- * Check if dropdown is open
453
- */
454
- KTDatepickerDropdown.prototype.isOpen = function () {
455
- return this._isOpen;
456
- };
457
- /**
458
- * Dispose of the dropdown
459
- */
460
- KTDatepickerDropdown.prototype.dispose = function () {
461
- // Clean up event listeners
462
- this._eventManager.removeAllListeners(document);
463
- this._destroyPopper();
464
- // Remove dropdown from DOM
465
- if (this._dropdownElement && this._dropdownElement.parentElement) {
466
- this._dropdownElement.parentElement.removeChild(this._dropdownElement);
467
- }
468
- };
469
- /**
470
- * Resolve the container for the dropdown
471
- */
472
- KTDatepickerDropdown.prototype._resolveDropdownContainer = function () {
473
- // Check if dropdown should be rendered in a specific container
474
- if (this._config.dropdownContainer) {
475
- var container = document.querySelector(this._config.dropdownContainer);
476
- if (container instanceof HTMLElement) {
477
- return container;
478
- }
479
- }
480
- // Default to body for better positioning
481
- return document.body;
482
- };
483
- return KTDatepickerDropdown;
484
- }(KTComponent));
485
- export { KTDatepickerDropdown };
486
- //# sourceMappingURL=dropdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../../../../src/components/datepicker/ui/input/dropdown.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;;;;;;;;;;;;;;;AAEH,OAAO,EAEL,YAAY,GAEb,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,MAAM,yBAAyB,CAAC;AAE5C,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIxD;;;;;;GAMG;AACH;IAA0C,wCAAW;IAkBnD;;;;;;OAMG;IACH,8BACE,OAAoB,EACpB,aAA0B,EAC1B,eAA4B,EAC5B,MAA0B;QAE1B,YAAA,MAAK,WAAE,SAAC;QA9BkB,WAAK,GAAW,qBAAqB,CAAC;QAQlE,mDAAmD;QAC3C,aAAO,GAAY,KAAK,CAAC;QACzB,sBAAgB,GAAY,KAAK,CAAC;QAClC,qBAAe,GAA0B,IAAI,CAAC;QAGtD,kCAAkC;QAC1B,0BAAoB,GAA2C,IAAI,CAAC;QAiB1E,KAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,KAAI,CAAC,cAAc,GAAG,aAAa,CAAC;QACpC,KAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QACxC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QAEtB,IAAM,SAAS,GAAG,KAAI,CAAC,yBAAyB,EAAE,CAAC;QACnD,IAAI,SAAS,EAAE,CAAC;YACd,IAAI,SAAS,KAAK,KAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC;gBACtD,SAAS,CAAC,WAAW,CAAC,KAAI,CAAC,gBAAgB,CAAC,CAAC;YAC/C,CAAC;QACH,CAAC;QAED,KAAI,CAAC,aAAa,GAAG,IAAI,YAAY,EAAE,CAAC;QACxC,KAAI,CAAC,oBAAoB,EAAE,CAAC;;IAC9B,CAAC;IAED;;OAEG;IACK,mDAAoB,GAA5B;QACE,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,2BAAC;AAAD,CAAC,AA7gBD,CAA0C,WAAW,GA6gBpD"}
@@ -1,7 +0,0 @@
1
- /*
2
- * ui/input/index.ts - Input module exports
3
- * Provides input-related components for KTDatepicker
4
- */
5
- export * from './segmented-input';
6
- export * from './dropdown';
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/datepicker/ui/input/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}