@ncds/ui-admin 1.6.3 → 1.6.4-alpha.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 (260) hide show
  1. package/mcp/bin/server.d.ts +1 -0
  2. package/mcp/bin/server.js +62 -0
  3. package/mcp/bin/server.mjs +14 -0
  4. package/mcp/bin/tools/getComponentHtml.d.ts +3 -0
  5. package/mcp/bin/tools/getComponentHtml.js +30 -0
  6. package/mcp/bin/tools/getComponentProps.d.ts +3 -0
  7. package/mcp/bin/tools/getComponentProps.js +16 -0
  8. package/mcp/bin/tools/listComponents.d.ts +3 -0
  9. package/mcp/bin/tools/listComponents.js +15 -0
  10. package/mcp/bin/tools/searchComponent.d.ts +3 -0
  11. package/mcp/bin/tools/searchComponent.js +20 -0
  12. package/mcp/bin/tools/validateHtml.d.ts +10 -0
  13. package/mcp/bin/tools/validateHtml.js +142 -0
  14. package/mcp/bin/types.d.ts +28 -0
  15. package/mcp/bin/types.js +5 -0
  16. package/mcp/bin/utils/dataLoader.d.ts +11 -0
  17. package/mcp/bin/utils/dataLoader.js +68 -0
  18. package/mcp/bin/utils/logger.d.ts +18 -0
  19. package/mcp/bin/utils/logger.js +27 -0
  20. package/mcp/bin/utils/response.d.ts +23 -0
  21. package/mcp/bin/utils/response.js +31 -0
  22. package/mcp/bin/version.d.ts +1 -0
  23. package/mcp/bin/version.js +4 -0
  24. package/mcp/data/.gitkeep +0 -0
  25. package/mcp/data/_meta.json +7 -0
  26. package/mcp/data/badge-group.json +73 -0
  27. package/mcp/data/badge.json +86 -0
  28. package/mcp/data/bread-crumb.json +22 -0
  29. package/mcp/data/breadcrumb.json +31 -0
  30. package/mcp/data/button-group.json +65 -0
  31. package/mcp/data/button.json +114 -0
  32. package/mcp/data/carousel-arrow.json +59 -0
  33. package/mcp/data/carousel-number-group.json +57 -0
  34. package/mcp/data/carousel.json +22 -0
  35. package/mcp/data/checkbox.json +31 -0
  36. package/mcp/data/combobox.json +114 -0
  37. package/mcp/data/date-picker.json +77 -0
  38. package/mcp/data/divider.json +56 -0
  39. package/mcp/data/dot.json +55 -0
  40. package/mcp/data/dropdown.json +81 -0
  41. package/mcp/data/empty-state.json +34 -0
  42. package/mcp/data/featured-icon.json +83 -0
  43. package/mcp/data/file-input.json +76 -0
  44. package/mcp/data/horizontal-tab.json +71 -0
  45. package/mcp/data/image-file-input.json +97 -0
  46. package/mcp/data/input.json +104 -0
  47. package/mcp/data/modal.json +85 -0
  48. package/mcp/data/notification.json +116 -0
  49. package/mcp/data/number-input.json +128 -0
  50. package/mcp/data/pagination.json +65 -0
  51. package/mcp/data/password-input.json +47 -0
  52. package/mcp/data/progress-bar.json +51 -0
  53. package/mcp/data/progress-circle.json +54 -0
  54. package/mcp/data/radio.json +31 -0
  55. package/mcp/data/range-date-picker-with-buttons.json +64 -0
  56. package/mcp/data/range-date-picker.json +55 -0
  57. package/mcp/data/select-dropdown.json +32 -0
  58. package/mcp/data/select.json +64 -0
  59. package/mcp/data/selectbox.json +129 -0
  60. package/mcp/data/slider.json +57 -0
  61. package/mcp/data/spinner.json +54 -0
  62. package/mcp/data/switch.json +71 -0
  63. package/mcp/data/tab.json +122 -0
  64. package/mcp/data/tag.json +66 -0
  65. package/mcp/data/textarea.json +88 -0
  66. package/mcp/data/toggle.json +59 -0
  67. package/mcp/data/tooltip.json +123 -0
  68. package/mcp/data/vertical-tab.json +64 -0
  69. package/mcp/templates/.mcp.json.example +8 -0
  70. package/mcp/templates/README.md +31 -0
  71. package/package.json +24 -3
  72. package/dist/cjs/assets/scripts/comboBox.js +0 -280
  73. package/dist/cjs/assets/scripts/datePicker.js +0 -706
  74. package/dist/cjs/assets/scripts/featuredIcon.js +0 -95
  75. package/dist/cjs/assets/scripts/fileInput/FileInput.js +0 -183
  76. package/dist/cjs/assets/scripts/fileInput/FileInputModel.js +0 -246
  77. package/dist/cjs/assets/scripts/fileInput/FileInputView.js +0 -455
  78. package/dist/cjs/assets/scripts/fileInput/const/classNames.js +0 -35
  79. package/dist/cjs/assets/scripts/fileInput/const/index.js +0 -27
  80. package/dist/cjs/assets/scripts/fileInput/const/types.js +0 -13
  81. package/dist/cjs/assets/scripts/fileInput/index.js +0 -44
  82. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInput.js +0 -187
  83. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -255
  84. package/dist/cjs/assets/scripts/imageFileInput/ImageFileInputView.js +0 -354
  85. package/dist/cjs/assets/scripts/imageFileInput/const/classNames.js +0 -41
  86. package/dist/cjs/assets/scripts/imageFileInput/const/index.js +0 -27
  87. package/dist/cjs/assets/scripts/imageFileInput/const/types.js +0 -13
  88. package/dist/cjs/assets/scripts/imageFileInput/index.js +0 -44
  89. package/dist/cjs/assets/scripts/index.js +0 -30
  90. package/dist/cjs/assets/scripts/modal/Modal.js +0 -116
  91. package/dist/cjs/assets/scripts/modal/ModalActions.js +0 -128
  92. package/dist/cjs/assets/scripts/modal/ModalContent.js +0 -46
  93. package/dist/cjs/assets/scripts/modal/ModalHeader.js +0 -115
  94. package/dist/cjs/assets/scripts/modal/const/classNames.js +0 -41
  95. package/dist/cjs/assets/scripts/modal/const/index.js +0 -27
  96. package/dist/cjs/assets/scripts/modal/const/types.js +0 -5
  97. package/dist/cjs/assets/scripts/modal/index.js +0 -61
  98. package/dist/cjs/assets/scripts/modal/utils/contentUtils.js +0 -35
  99. package/dist/cjs/assets/scripts/notification/FloatingNotification.js +0 -180
  100. package/dist/cjs/assets/scripts/notification/FullWidthNotification.js +0 -120
  101. package/dist/cjs/assets/scripts/notification/MessageNotification.js +0 -146
  102. package/dist/cjs/assets/scripts/notification/Notification.js +0 -116
  103. package/dist/cjs/assets/scripts/notification/const/classNames.js +0 -50
  104. package/dist/cjs/assets/scripts/notification/const/icons.js +0 -45
  105. package/dist/cjs/assets/scripts/notification/const/index.js +0 -87
  106. package/dist/cjs/assets/scripts/notification/const/sizes.js +0 -54
  107. package/dist/cjs/assets/scripts/notification/const/types.js +0 -14
  108. package/dist/cjs/assets/scripts/notification/index.js +0 -92
  109. package/dist/cjs/assets/scripts/notification/utils.js +0 -92
  110. package/dist/cjs/assets/scripts/progress-bar/ProgressBar.js +0 -272
  111. package/dist/cjs/assets/scripts/progress-bar/index.js +0 -12
  112. package/dist/cjs/assets/scripts/selectBox.js +0 -319
  113. package/dist/cjs/assets/scripts/shared/ButtonCloseX.js +0 -46
  114. package/dist/cjs/assets/scripts/tab.js +0 -40
  115. package/dist/cjs/assets/scripts/tag/Tag.js +0 -268
  116. package/dist/cjs/assets/scripts/tag/const/classNames.js +0 -24
  117. package/dist/cjs/assets/scripts/tag/const/index.js +0 -38
  118. package/dist/cjs/assets/scripts/tag/const/sizes.js +0 -13
  119. package/dist/cjs/assets/scripts/tag/const/types.js +0 -5
  120. package/dist/cjs/assets/scripts/tag/index.js +0 -44
  121. package/dist/cjs/assets/scripts/tooltip/Tooltip.js +0 -380
  122. package/dist/cjs/assets/scripts/tooltip/TooltipLayerManager.js +0 -84
  123. package/dist/cjs/assets/scripts/tooltip/const/classNames.js +0 -29
  124. package/dist/cjs/assets/scripts/tooltip/const/constants.js +0 -56
  125. package/dist/cjs/assets/scripts/tooltip/const/icons.js +0 -15
  126. package/dist/cjs/assets/scripts/tooltip/const/index.js +0 -123
  127. package/dist/cjs/assets/scripts/tooltip/const/templates.js +0 -49
  128. package/dist/cjs/assets/scripts/tooltip/const/types.js +0 -5
  129. package/dist/cjs/assets/scripts/tooltip/index.js +0 -57
  130. package/dist/cjs/assets/scripts/tooltip/utils.js +0 -41
  131. package/dist/cjs/assets/scripts/utils/unifiedBox/DOMRenderer.js +0 -384
  132. package/dist/cjs/assets/scripts/utils/unifiedBox/DropdownModel.js +0 -368
  133. package/dist/cjs/assets/scripts/utils/unifiedBox/UnifiedBoxController.js +0 -681
  134. package/dist/cjs/assets/scripts/utils/unifiedBox/UnifiedBoxManager.js +0 -711
  135. package/dist/esm/assets/scripts/comboBox.js +0 -275
  136. package/dist/esm/assets/scripts/datePicker.js +0 -699
  137. package/dist/esm/assets/scripts/featuredIcon.js +0 -90
  138. package/dist/esm/assets/scripts/fileInput/FileInput.js +0 -178
  139. package/dist/esm/assets/scripts/fileInput/FileInputModel.js +0 -241
  140. package/dist/esm/assets/scripts/fileInput/FileInputView.js +0 -450
  141. package/dist/esm/assets/scripts/fileInput/const/classNames.js +0 -25
  142. package/dist/esm/assets/scripts/fileInput/const/index.js +0 -2
  143. package/dist/esm/assets/scripts/fileInput/const/types.js +0 -7
  144. package/dist/esm/assets/scripts/fileInput/index.js +0 -9
  145. package/dist/esm/assets/scripts/imageFileInput/ImageFileInput.js +0 -182
  146. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputModel.js +0 -250
  147. package/dist/esm/assets/scripts/imageFileInput/ImageFileInputView.js +0 -349
  148. package/dist/esm/assets/scripts/imageFileInput/const/classNames.js +0 -30
  149. package/dist/esm/assets/scripts/imageFileInput/const/index.js +0 -2
  150. package/dist/esm/assets/scripts/imageFileInput/const/types.js +0 -7
  151. package/dist/esm/assets/scripts/imageFileInput/index.js +0 -9
  152. package/dist/esm/assets/scripts/index.js +0 -28
  153. package/dist/esm/assets/scripts/modal/Modal.js +0 -110
  154. package/dist/esm/assets/scripts/modal/ModalActions.js +0 -123
  155. package/dist/esm/assets/scripts/modal/ModalContent.js +0 -41
  156. package/dist/esm/assets/scripts/modal/ModalHeader.js +0 -110
  157. package/dist/esm/assets/scripts/modal/const/classNames.js +0 -31
  158. package/dist/esm/assets/scripts/modal/const/index.js +0 -2
  159. package/dist/esm/assets/scripts/modal/const/types.js +0 -1
  160. package/dist/esm/assets/scripts/modal/index.js +0 -15
  161. package/dist/esm/assets/scripts/modal/utils/contentUtils.js +0 -28
  162. package/dist/esm/assets/scripts/notification/FloatingNotification.js +0 -176
  163. package/dist/esm/assets/scripts/notification/FullWidthNotification.js +0 -115
  164. package/dist/esm/assets/scripts/notification/MessageNotification.js +0 -141
  165. package/dist/esm/assets/scripts/notification/Notification.js +0 -111
  166. package/dist/esm/assets/scripts/notification/const/classNames.js +0 -44
  167. package/dist/esm/assets/scripts/notification/const/icons.js +0 -39
  168. package/dist/esm/assets/scripts/notification/const/index.js +0 -4
  169. package/dist/esm/assets/scripts/notification/const/sizes.js +0 -48
  170. package/dist/esm/assets/scripts/notification/const/types.js +0 -8
  171. package/dist/esm/assets/scripts/notification/index.js +0 -11
  172. package/dist/esm/assets/scripts/notification/utils.js +0 -79
  173. package/dist/esm/assets/scripts/progress-bar/ProgressBar.js +0 -267
  174. package/dist/esm/assets/scripts/progress-bar/index.js +0 -1
  175. package/dist/esm/assets/scripts/selectBox.js +0 -314
  176. package/dist/esm/assets/scripts/shared/ButtonCloseX.js +0 -38
  177. package/dist/esm/assets/scripts/tab.js +0 -35
  178. package/dist/esm/assets/scripts/tag/Tag.js +0 -263
  179. package/dist/esm/assets/scripts/tag/const/classNames.js +0 -16
  180. package/dist/esm/assets/scripts/tag/const/index.js +0 -3
  181. package/dist/esm/assets/scripts/tag/const/sizes.js +0 -7
  182. package/dist/esm/assets/scripts/tag/const/types.js +0 -1
  183. package/dist/esm/assets/scripts/tag/index.js +0 -9
  184. package/dist/esm/assets/scripts/tooltip/Tooltip.js +0 -375
  185. package/dist/esm/assets/scripts/tooltip/TooltipLayerManager.js +0 -79
  186. package/dist/esm/assets/scripts/tooltip/const/classNames.js +0 -23
  187. package/dist/esm/assets/scripts/tooltip/const/constants.js +0 -50
  188. package/dist/esm/assets/scripts/tooltip/const/icons.js +0 -9
  189. package/dist/esm/assets/scripts/tooltip/const/index.js +0 -4
  190. package/dist/esm/assets/scripts/tooltip/const/templates.js +0 -42
  191. package/dist/esm/assets/scripts/tooltip/const/types.js +0 -1
  192. package/dist/esm/assets/scripts/tooltip/index.js +0 -10
  193. package/dist/esm/assets/scripts/tooltip/utils.js +0 -35
  194. package/dist/esm/assets/scripts/utils/unifiedBox/DOMRenderer.js +0 -379
  195. package/dist/esm/assets/scripts/utils/unifiedBox/DropdownModel.js +0 -363
  196. package/dist/esm/assets/scripts/utils/unifiedBox/UnifiedBoxController.js +0 -676
  197. package/dist/esm/assets/scripts/utils/unifiedBox/UnifiedBoxManager.js +0 -706
  198. package/dist/types/assets/scripts/comboBox.d.ts +0 -91
  199. package/dist/types/assets/scripts/datePicker.d.ts +0 -87
  200. package/dist/types/assets/scripts/featuredIcon.d.ts +0 -23
  201. package/dist/types/assets/scripts/fileInput/FileInput.d.ts +0 -67
  202. package/dist/types/assets/scripts/fileInput/FileInputModel.d.ts +0 -70
  203. package/dist/types/assets/scripts/fileInput/FileInputView.d.ts +0 -77
  204. package/dist/types/assets/scripts/fileInput/const/classNames.d.ts +0 -17
  205. package/dist/types/assets/scripts/fileInput/const/index.d.ts +0 -3
  206. package/dist/types/assets/scripts/fileInput/const/types.d.ts +0 -132
  207. package/dist/types/assets/scripts/fileInput/index.d.ts +0 -4
  208. package/dist/types/assets/scripts/imageFileInput/ImageFileInput.d.ts +0 -64
  209. package/dist/types/assets/scripts/imageFileInput/ImageFileInputModel.d.ts +0 -74
  210. package/dist/types/assets/scripts/imageFileInput/ImageFileInputView.d.ts +0 -80
  211. package/dist/types/assets/scripts/imageFileInput/const/classNames.d.ts +0 -20
  212. package/dist/types/assets/scripts/imageFileInput/const/index.d.ts +0 -3
  213. package/dist/types/assets/scripts/imageFileInput/const/types.d.ts +0 -126
  214. package/dist/types/assets/scripts/imageFileInput/index.d.ts +0 -4
  215. package/dist/types/assets/scripts/index.d.ts +0 -33
  216. package/dist/types/assets/scripts/modal/Modal.d.ts +0 -28
  217. package/dist/types/assets/scripts/modal/ModalActions.d.ts +0 -19
  218. package/dist/types/assets/scripts/modal/ModalContent.d.ts +0 -14
  219. package/dist/types/assets/scripts/modal/ModalHeader.d.ts +0 -16
  220. package/dist/types/assets/scripts/modal/const/classNames.d.ts +0 -23
  221. package/dist/types/assets/scripts/modal/const/index.d.ts +0 -3
  222. package/dist/types/assets/scripts/modal/const/types.d.ts +0 -62
  223. package/dist/types/assets/scripts/modal/index.d.ts +0 -8
  224. package/dist/types/assets/scripts/modal/utils/contentUtils.d.ts +0 -11
  225. package/dist/types/assets/scripts/notification/FloatingNotification.d.ts +0 -25
  226. package/dist/types/assets/scripts/notification/FullWidthNotification.d.ts +0 -22
  227. package/dist/types/assets/scripts/notification/MessageNotification.d.ts +0 -23
  228. package/dist/types/assets/scripts/notification/Notification.d.ts +0 -22
  229. package/dist/types/assets/scripts/notification/const/classNames.d.ts +0 -44
  230. package/dist/types/assets/scripts/notification/const/icons.d.ts +0 -26
  231. package/dist/types/assets/scripts/notification/const/index.d.ts +0 -6
  232. package/dist/types/assets/scripts/notification/const/sizes.d.ts +0 -33
  233. package/dist/types/assets/scripts/notification/const/types.d.ts +0 -20
  234. package/dist/types/assets/scripts/notification/index.d.ts +0 -8
  235. package/dist/types/assets/scripts/notification/utils.d.ts +0 -9
  236. package/dist/types/assets/scripts/progress-bar/ProgressBar.d.ts +0 -68
  237. package/dist/types/assets/scripts/progress-bar/index.d.ts +0 -2
  238. package/dist/types/assets/scripts/selectBox.d.ts +0 -77
  239. package/dist/types/assets/scripts/shared/ButtonCloseX.d.ts +0 -6
  240. package/dist/types/assets/scripts/tab.d.ts +0 -8
  241. package/dist/types/assets/scripts/tag/Tag.d.ts +0 -28
  242. package/dist/types/assets/scripts/tag/const/classNames.d.ts +0 -12
  243. package/dist/types/assets/scripts/tag/const/index.d.ts +0 -4
  244. package/dist/types/assets/scripts/tag/const/sizes.d.ts +0 -8
  245. package/dist/types/assets/scripts/tag/const/types.d.ts +0 -34
  246. package/dist/types/assets/scripts/tag/index.d.ts +0 -4
  247. package/dist/types/assets/scripts/tooltip/Tooltip.d.ts +0 -55
  248. package/dist/types/assets/scripts/tooltip/TooltipLayerManager.d.ts +0 -22
  249. package/dist/types/assets/scripts/tooltip/const/classNames.d.ts +0 -18
  250. package/dist/types/assets/scripts/tooltip/const/constants.d.ts +0 -34
  251. package/dist/types/assets/scripts/tooltip/const/icons.d.ts +0 -5
  252. package/dist/types/assets/scripts/tooltip/const/index.d.ts +0 -6
  253. package/dist/types/assets/scripts/tooltip/const/templates.d.ts +0 -17
  254. package/dist/types/assets/scripts/tooltip/const/types.d.ts +0 -15
  255. package/dist/types/assets/scripts/tooltip/index.d.ts +0 -7
  256. package/dist/types/assets/scripts/tooltip/utils.d.ts +0 -3
  257. package/dist/types/assets/scripts/utils/unifiedBox/DOMRenderer.d.ts +0 -108
  258. package/dist/types/assets/scripts/utils/unifiedBox/DropdownModel.d.ts +0 -158
  259. package/dist/types/assets/scripts/utils/unifiedBox/UnifiedBoxController.d.ts +0 -171
  260. package/dist/types/assets/scripts/utils/unifiedBox/UnifiedBoxManager.d.ts +0 -99
@@ -1,354 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ImageFileInputView = void 0;
7
- var _classNames = require("./const/classNames");
8
- var ImageFileInputView = exports.ImageFileInputView = /** @class */function () {
9
- function ImageFileInputView(options, model) {
10
- this.renderedFiles = []; // 이미 렌더링된 파일들 추적
11
- this.previewUrls = new Map(); // 파일 URL 추적
12
- this.options = options;
13
- this.model = model;
14
- this.element = this.createElement();
15
- this.previewsContainer = this.element.querySelector(".".concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previews));
16
- this.fileInputElement = this.element.querySelector('input[type="file"]');
17
- this.buttonElement = this.element.querySelector('button.ncua-btn');
18
- }
19
- /**
20
- * 메인 DOM 요소 생성
21
- */
22
- ImageFileInputView.prototype.createElement = function () {
23
- var mainContainer = document.createElement('div');
24
- var baseClasses = "".concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.imageFileInput, " ").concat((0, _classNames.getImageFileInputSizeClassName)(this.options.size));
25
- var customClasses = this.options.className ? " ".concat(this.options.className) : '';
26
- mainContainer.className = baseClasses + customClasses;
27
- // Image previews container
28
- var previewsContainer = document.createElement('div');
29
- previewsContainer.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previews;
30
- mainContainer.appendChild(previewsContainer);
31
- // File input container
32
- var fileInputContainer = document.createElement('div');
33
- var fileInputClasses = "".concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.fileInput, " ").concat((0, _classNames.getFileInputSizeClassName)(this.options.size));
34
- fileInputContainer.className = fileInputClasses;
35
- // Hidden file input
36
- fileInputContainer.appendChild(this.createFileInput());
37
- // Input container
38
- fileInputContainer.appendChild(this.createInputContainer());
39
- // Hint list
40
- if (this.options.hintItems && this.options.hintItems.length > 0) {
41
- fileInputContainer.appendChild(this.createHintList());
42
- }
43
- mainContainer.appendChild(fileInputContainer);
44
- return mainContainer;
45
- };
46
- /**
47
- * Hidden file input 생성
48
- */
49
- ImageFileInputView.prototype.createFileInput = function () {
50
- var input = document.createElement('input');
51
- input.type = 'file';
52
- input.hidden = true;
53
- input.tabIndex = -1;
54
- input.setAttribute('aria-hidden', 'true');
55
- input.classList.add('no-filestyle');
56
- if (this.options.accept) {
57
- input.accept = this.options.accept;
58
- }
59
- if (this.options.multiple) {
60
- input.multiple = true;
61
- }
62
- if (this.options.fileInputName) {
63
- input.name = this.options.fileInputName;
64
- }
65
- return input;
66
- };
67
- /**
68
- * Input container 생성
69
- */
70
- ImageFileInputView.prototype.createInputContainer = function () {
71
- var container = document.createElement('div');
72
- container.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.inputContainer;
73
- // Label
74
- if (this.options.label) {
75
- container.appendChild(this.createLabelContainer());
76
- }
77
- // Button
78
- container.appendChild(this.createButton());
79
- // Hint text
80
- if (this.options.hintText) {
81
- container.appendChild(this.createHintText());
82
- }
83
- return container;
84
- };
85
- /**
86
- * Label container 생성
87
- */
88
- ImageFileInputView.prototype.createLabelContainer = function () {
89
- var container = document.createElement('div');
90
- container.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.label;
91
- var label = document.createElement('label');
92
- label.className = (0, _classNames.getLabelClassName)(this.options.isRequired);
93
- label.textContent = this.options.label;
94
- container.appendChild(label);
95
- if (this.options.showHelpIcon) {
96
- container.appendChild(this.createHelpIcon());
97
- }
98
- return container;
99
- };
100
- /**
101
- * Help icon 생성
102
- */
103
- ImageFileInputView.prototype.createHelpIcon = function () {
104
- var iconContainer = document.createElement('span');
105
- iconContainer.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.helpIcon;
106
- var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
107
- svg.setAttribute('width', '16');
108
- svg.setAttribute('height', '16');
109
- svg.setAttribute('viewBox', '0 0 24 24');
110
- svg.setAttribute('fill', 'none');
111
- svg.setAttribute('stroke', 'currentColor');
112
- var circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
113
- circle.setAttribute('cx', '12');
114
- circle.setAttribute('cy', '12');
115
- circle.setAttribute('r', '10');
116
- circle.setAttribute('stroke-width', '2');
117
- var path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
118
- path.setAttribute('d', 'M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3');
119
- path.setAttribute('stroke-width', '2');
120
- path.setAttribute('stroke-linecap', 'round');
121
- path.setAttribute('stroke-linejoin', 'round');
122
- var line = document.createElementNS('http://www.w3.org/2000/svg', 'line');
123
- line.setAttribute('x1', '12');
124
- line.setAttribute('y1', '17');
125
- line.setAttribute('x2', '12.01');
126
- line.setAttribute('y2', '17');
127
- line.setAttribute('stroke-width', '2');
128
- line.setAttribute('stroke-linecap', 'round');
129
- svg.appendChild(circle);
130
- svg.appendChild(path);
131
- svg.appendChild(line);
132
- iconContainer.appendChild(svg);
133
- return iconContainer;
134
- };
135
- /**
136
- * Button 생성 (파일 찾기)
137
- */
138
- ImageFileInputView.prototype.createButton = function () {
139
- var button = document.createElement('button');
140
- button.type = 'button';
141
- button.className = "ncua-btn ncua-btn--xs ncua-btn--secondary-gray";
142
- button.disabled = this.options.disabled;
143
- var iconSvg = this.createShareIcon();
144
- button.appendChild(iconSvg);
145
- var label = document.createElement('span');
146
- label.className = 'ncua-btn__label';
147
- label.textContent = this.options.buttonLabel;
148
- button.appendChild(label);
149
- return button;
150
- };
151
- /**
152
- * Share icon (업로드 아이콘) 생성
153
- */
154
- ImageFileInputView.prototype.createShareIcon = function () {
155
- var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
156
- svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
157
- svg.setAttribute('width', '14');
158
- svg.setAttribute('height', '14');
159
- svg.setAttribute('viewBox', '0 0 24 24');
160
- svg.setAttribute('fill', 'none');
161
- svg.setAttribute('stroke', 'none');
162
- svg.classList.add('ncua-btn__icon');
163
- var path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
164
- path.setAttribute('stroke', 'currentColor');
165
- path.setAttribute('stroke-linecap', 'round');
166
- path.setAttribute('stroke-linejoin', 'round');
167
- path.setAttribute('stroke-width', '2');
168
- path.setAttribute('d', 'M21 12v4.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V12m13-5-4-4m0 0L8 7m4-4v12');
169
- svg.appendChild(path);
170
- return svg;
171
- };
172
- /**
173
- * Trash icon (삭제 아이콘) 생성
174
- */
175
- ImageFileInputView.prototype.createTrashIcon = function () {
176
- var svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
177
- svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg');
178
- svg.setAttribute('width', '20');
179
- svg.setAttribute('height', '20');
180
- svg.setAttribute('viewBox', '0 0 24 24');
181
- svg.setAttribute('fill', 'none');
182
- svg.setAttribute('stroke', 'currentColor');
183
- svg.classList.add('ncua-btn__icon');
184
- var path1 = document.createElementNS('http://www.w3.org/2000/svg', 'path');
185
- path1.setAttribute('stroke', 'currentColor');
186
- path1.setAttribute('stroke-linecap', 'round');
187
- path1.setAttribute('stroke-linejoin', 'round');
188
- path1.setAttribute('stroke-width', '2');
189
- path1.setAttribute('d', 'M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6');
190
- svg.appendChild(path1);
191
- return svg;
192
- };
193
- /**
194
- * Hint text 생성
195
- */
196
- ImageFileInputView.prototype.createHintText = function () {
197
- var hintText = document.createElement('div');
198
- hintText.className = (0, _classNames.getHintTextClassName)(this.options.destructive);
199
- hintText.textContent = this.options.hintText;
200
- return hintText;
201
- };
202
- /**
203
- * Hint list 생성
204
- * Note: 힌트 리스트는 컴포넌트 size와 관계없이 항상 xs 사이즈로 고정됨
205
- */
206
- ImageFileInputView.prototype.createHintList = function () {
207
- var _a;
208
- var ul = document.createElement('ul');
209
- ul.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.hintList;
210
- (_a = this.options.hintItems) === null || _a === void 0 ? void 0 : _a.forEach(function (hint) {
211
- var li = document.createElement('li');
212
- li.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.hintItem;
213
- li.textContent = hint;
214
- ul.appendChild(li);
215
- });
216
- return ul;
217
- };
218
- /**
219
- * 이미지 프리뷰 렌더링
220
- */
221
- ImageFileInputView.prototype.renderImagePreviews = function (files, onRemove, onBrowseClick) {
222
- var _this = this;
223
- // 기존 프리뷰 정리
224
- this.cleanupPreviews();
225
- // 새로운 프리뷰 렌더링
226
- files.forEach(function (file, index) {
227
- var previewContainer = _this.createImagePreview(file, index, onRemove);
228
- _this.previewsContainer.appendChild(previewContainer);
229
- _this.renderedFiles.push(file);
230
- });
231
- // 빈 슬롯 표시 여부 확인
232
- var showEmptySlot = this.options.maxFileCount ? files.length < this.options.maxFileCount : files.length === 0;
233
- if (showEmptySlot) {
234
- var emptySlot = this.createEmptySlot(onBrowseClick);
235
- this.previewsContainer.appendChild(emptySlot);
236
- }
237
- };
238
- /**
239
- * 이미지 프리뷰 생성
240
- */
241
- ImageFileInputView.prototype.createImagePreview = function (file, index, onRemove) {
242
- var container = document.createElement('div');
243
- container.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previewContainer;
244
- // 이미지 요소 생성
245
- var img = document.createElement('img');
246
- img.className = _classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previewImage;
247
- img.alt = file.name;
248
- // 이미지 URL 생성
249
- var isInitialFile = this.model.isInitialFile(file);
250
- if (isInitialFile) {
251
- // 초기 파일: fileImageUrl 사용
252
- var imageUrl = this.model.getInitialFileImageUrl(file);
253
- if (imageUrl) {
254
- img.src = imageUrl;
255
- }
256
- } else {
257
- // 새로 추가된 파일: createObjectURL 사용
258
- var url = URL.createObjectURL(file);
259
- img.src = url;
260
- this.previewUrls.set(file, url);
261
- }
262
- container.appendChild(img);
263
- // 삭제 버튼 생성
264
- var removeButton = document.createElement('button');
265
- removeButton.type = 'button';
266
- removeButton.className = "ncua-btn ncua-btn--sm ncua-btn--text ".concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previewRemoveButton);
267
- removeButton.setAttribute('aria-label', 'Remove image');
268
- var trashIcon = this.createTrashIcon();
269
- removeButton.appendChild(trashIcon);
270
- removeButton.addEventListener('click', function () {
271
- return onRemove(index);
272
- });
273
- container.appendChild(removeButton);
274
- return container;
275
- };
276
- /**
277
- * 빈 슬롯 생성 (파일 찾기 버튼)
278
- */
279
- ImageFileInputView.prototype.createEmptySlot = function (onBrowseClick) {
280
- var _this = this;
281
- var wrapper = document.createElement('div');
282
- wrapper.className = 'ncua-image-file-input__empty-slot-wrapper';
283
- var button = document.createElement('button');
284
- button.type = 'button';
285
- button.className = "ncua-btn ncua-btn--".concat(this.options.size, " ncua-btn--secondary-gray ").concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previewContainer);
286
- button.disabled = this.options.disabled;
287
- button.setAttribute('aria-label', this.options.imagePreviewTooltipLabel);
288
- button.addEventListener('click', onBrowseClick);
289
- wrapper.addEventListener('click', onBrowseClick);
290
- wrapper.appendChild(button);
291
- // Tooltip 생성 및 추가
292
- var tooltip = this.createTooltip();
293
- wrapper.appendChild(tooltip);
294
- // Hover 이벤트로 tooltip 표시/숨김
295
- wrapper.addEventListener('mouseenter', function () {
296
- if (!_this.options.disabled) {
297
- tooltip.style.display = 'block';
298
- }
299
- });
300
- wrapper.addEventListener('mouseleave', function () {
301
- tooltip.style.display = 'none';
302
- });
303
- return wrapper;
304
- };
305
- /**
306
- * Tooltip 생성
307
- */
308
- ImageFileInputView.prototype.createTooltip = function () {
309
- var iconSize = this.options.size === 'xs' ? '48' : '80';
310
- var tooltipHTML = "\n <svg width=\"".concat(iconSize, "\" height=\"").concat(iconSize, "\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" style=\"opacity: 0; cursor: pointer;\">\n <circle cx=\"12\" cy=\"12\" r=\"10\" stroke-width=\"2\"></circle>\n </svg>\n <span class=\"ncua-tooltip__bg ncua-tooltip__bg--black ncua-tooltip__bg--bottom ncua-tooltip__bg--visible\">\n <span class=\"ncua-tooltip__content\">").concat(this.options.imagePreviewTooltipLabel, "</span>\n </span>\n ");
311
- var tooltip = document.createElement('span');
312
- tooltip.className = 'ncua-tooltip ncua-tooltip--sm ncua-tooltip--short';
313
- tooltip.style.display = 'none';
314
- tooltip.innerHTML = tooltipHTML;
315
- return tooltip;
316
- };
317
- /**
318
- * 기존 프리뷰 정리
319
- */
320
- ImageFileInputView.prototype.cleanupPreviews = function () {
321
- // Blob URL 정리
322
- this.previewUrls.forEach(function (url) {
323
- URL.revokeObjectURL(url);
324
- });
325
- this.previewUrls.clear();
326
- // DOM 정리
327
- this.previewsContainer.innerHTML = '';
328
- this.renderedFiles = [];
329
- };
330
- ImageFileInputView.prototype.setButtonDisabled = function (disabled) {
331
- this.buttonElement.disabled = disabled;
332
- // 빈 슬롯 wrapper 내부의 버튼도 disabled 설정
333
- var emptySlotWrapper = this.previewsContainer.querySelector('.ncua-image-file-input__empty-slot-wrapper');
334
- if (emptySlotWrapper) {
335
- var emptySlotButton = emptySlotWrapper.querySelector(".".concat(_classNames.IMAGE_FILE_INPUT_CLASS_NAMES.previewContainer, ".ncua-btn"));
336
- if (emptySlotButton) {
337
- emptySlotButton.disabled = disabled;
338
- }
339
- }
340
- };
341
- ImageFileInputView.prototype.getElement = function () {
342
- return this.element;
343
- };
344
- ImageFileInputView.prototype.getFileInputElement = function () {
345
- return this.fileInputElement;
346
- };
347
- ImageFileInputView.prototype.getButtonElement = function () {
348
- return this.buttonElement;
349
- };
350
- ImageFileInputView.prototype.destroy = function () {
351
- this.cleanupPreviews();
352
- };
353
- return ImageFileInputView;
354
- }();
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getLabelClassName = exports.getImageFileInputSizeClassName = exports.getHintTextClassName = exports.getFileInputSizeClassName = exports.getButtonSizeClassName = exports.IMAGE_FILE_INPUT_CLASS_NAMES = void 0;
7
- // ImageFileInput 관련 CSS 클래스명 상수
8
- var IMAGE_FILE_INPUT_CLASS_NAMES = exports.IMAGE_FILE_INPUT_CLASS_NAMES = {
9
- imageFileInput: 'ncua-image-file-input',
10
- previews: 'ncua-image-file-input__previews',
11
- previewContainer: 'ncua-image-file-input__preview-container',
12
- previewImage: 'ncua-image-file-input__preview-image',
13
- previewRemoveButton: 'ncua-image-file-input__preview-remove-button',
14
- fileInput: 'ncua-file-input',
15
- inputContainer: 'ncua-file-input__input-container',
16
- label: 'ncua-file-input__label',
17
- helpIcon: 'ncua-input__help-icon',
18
- hintText: 'ncua-input__hint-text',
19
- hintList: 'ncua-file-input__hint-list',
20
- hintItem: 'ncua-file-input__hint-item'
21
- };
22
- var getImageFileInputSizeClassName = function (size) {
23
- return "ncua-image-file-input--".concat(size);
24
- };
25
- exports.getImageFileInputSizeClassName = getImageFileInputSizeClassName;
26
- var getFileInputSizeClassName = function (size) {
27
- return "ncua-file-input--".concat(size);
28
- };
29
- exports.getFileInputSizeClassName = getFileInputSizeClassName;
30
- var getButtonSizeClassName = function (size) {
31
- return "ncua-button--".concat(size);
32
- };
33
- exports.getButtonSizeClassName = getButtonSizeClassName;
34
- var getLabelClassName = function (isRequired) {
35
- return isRequired ? 'ncua-label ncua-label--required' : 'ncua-label';
36
- };
37
- exports.getLabelClassName = getLabelClassName;
38
- var getHintTextClassName = function (destructive) {
39
- return destructive ? 'ncua-input__hint-text ncua-input__hint-text--destructive' : 'ncua-input__hint-text';
40
- };
41
- exports.getHintTextClassName = getHintTextClassName;
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _classNames = require("./classNames");
7
- Object.keys(_classNames).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _classNames[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _classNames[key];
14
- }
15
- });
16
- });
17
- var _types = require("./types");
18
- Object.keys(_types).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _types[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _types[key];
25
- }
26
- });
27
- });
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ImageFileInputErrorType = void 0;
7
- // ImageFileInput 관련 타입 정의 (React ImageFileInput.tsx와 동일)
8
- var ImageFileInputErrorType;
9
- (function (ImageFileInputErrorType) {
10
- ImageFileInputErrorType["ALREADY_UPLOADED"] = "ALREADY_UPLOADED";
11
- ImageFileInputErrorType["EXCEED_MAX_FILE_SIZE"] = "EXCEED_MAX_FILE_SIZE";
12
- ImageFileInputErrorType["EXCEED_MAX_FILE_COUNT"] = "EXCEED_MAX_FILE_COUNT";
13
- })(ImageFileInputErrorType || (exports.ImageFileInputErrorType = ImageFileInputErrorType = {}));
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- ImageFileInput: true
8
- };
9
- Object.defineProperty(exports, "ImageFileInput", {
10
- enumerable: true,
11
- get: function () {
12
- return _ImageFileInput.ImageFileInput;
13
- }
14
- });
15
- var _ImageFileInput = require("./ImageFileInput");
16
- var _classNames = require("./const/classNames");
17
- Object.keys(_classNames).forEach(function (key) {
18
- if (key === "default" || key === "__esModule") return;
19
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
20
- if (key in exports && exports[key] === _classNames[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _classNames[key];
25
- }
26
- });
27
- });
28
- var _types = require("./const/types");
29
- Object.keys(_types).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
32
- if (key in exports && exports[key] === _types[key]) return;
33
- Object.defineProperty(exports, key, {
34
- enumerable: true,
35
- get: function () {
36
- return _types[key];
37
- }
38
- });
39
- });
40
- // 전역 등록 (추후 index.ts와 개별동작 할 수 있게끔 대비)
41
- if (typeof window !== 'undefined') {
42
- window.ncua = window.ncua || {};
43
- window.ncua.ImageFileInput = _ImageFileInput.ImageFileInput;
44
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- var _comboBox = require("./comboBox");
4
- var _datePicker = require("./datePicker");
5
- var _featuredIcon = require("./featuredIcon");
6
- var _fileInput = require("./fileInput");
7
- var _imageFileInput = require("./imageFileInput");
8
- var _modal = require("./modal");
9
- var _notification = require("./notification");
10
- var _progressBar = require("./progress-bar");
11
- var _selectBox = require("./selectBox");
12
- var _slider = require("./slider");
13
- var _tab = require("./tab");
14
- var _tag = require("./tag");
15
- var _tooltip = require("./tooltip");
16
- window.ncua = {
17
- Slider: _slider.Slider,
18
- Tab: _tab.Tab,
19
- Tag: _tag.Tag,
20
- DatePicker: _datePicker.DatePicker,
21
- SelectBox: _selectBox.SelectBox,
22
- ComboBox: _comboBox.ComboBox,
23
- FeaturedIcon: _featuredIcon.FeaturedIcon,
24
- FileInput: _fileInput.FileInput,
25
- Modal: _modal.Modal,
26
- Notification: _notification.Notification,
27
- ProgressBar: _progressBar.ProgressBar,
28
- Tooltip: _tooltip.Tooltip,
29
- ImageFileInput: _imageFileInput.ImageFileInput
30
- };
@@ -1,116 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Modal = void 0;
7
- var _classNames = require("./const/classNames");
8
- var _ModalHeader = require("./ModalHeader");
9
- var _ModalContent = require("./ModalContent");
10
- var _ModalActions = require("./ModalActions");
11
- var __assign = void 0 && (void 0).__assign || function () {
12
- __assign = Object.assign || function (t) {
13
- for (var s, i = 1, n = arguments.length; i < n; i++) {
14
- s = arguments[i];
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
16
- }
17
- return t;
18
- };
19
- return __assign.apply(this, arguments);
20
- };
21
- var Modal = exports.Modal = /** @class */function () {
22
- function Modal(options) {
23
- if (options === void 0) {
24
- options = {};
25
- }
26
- var _this = this;
27
- this.isOpen = false;
28
- this.handleBackdropClick = function (e) {
29
- if (_this.options.closeOnBackdropClick && e.target === e.currentTarget) {
30
- _this.close();
31
- }
32
- };
33
- this.handleKeyDown = function (e) {
34
- if (_this.isOpen && _this.options.closeOnEsc && e.key === 'Escape') {
35
- _this.close();
36
- }
37
- };
38
- this.options = __assign({
39
- size: 'md',
40
- closeOnBackdropClick: false,
41
- closeOnEsc: true,
42
- className: '',
43
- onClose: function () {}
44
- }, options);
45
- this.createElement();
46
- }
47
- Modal.prototype.createElement = function () {
48
- // 백드롭 요소 생성
49
- this.element = document.createElement('div');
50
- this.element.className = this.getBackdropClasses();
51
- this.element.addEventListener('click', this.handleBackdropClick);
52
- // 모달 요소 생성
53
- this.modalElement = document.createElement('div');
54
- this.modalElement.className = this.getModalClasses();
55
- this.element.appendChild(this.modalElement);
56
- };
57
- Modal.prototype.getBackdropClasses = function () {
58
- return "".concat(_classNames.MODAL_CLASS_NAMES.backdrop, " ").concat(this.options.className); // ncua-modal-backdrop + className
59
- };
60
- Modal.prototype.getModalClasses = function () {
61
- return "".concat(_classNames.MODAL_CLASS_NAMES.modal, " ").concat((0, _classNames.getModalSizeClassNames)(this.options.size)); // ncua-modal ncua-modal--${size}
62
- };
63
- Modal.prototype.open = function () {
64
- if (this.isOpen) return;
65
- this.isOpen = true;
66
- // zIndex 설정 적용 (값이 있을 때만)
67
- if (this.options.zIndex !== undefined) {
68
- this.element.style.zIndex = this.options.zIndex.toString();
69
- }
70
- document.body.appendChild(this.element);
71
- document.addEventListener('keydown', this.handleKeyDown);
72
- document.body.classList.add(_classNames.MODAL_CLASS_NAMES.modalOpen);
73
- };
74
- Modal.prototype.close = function () {
75
- if (!this.isOpen) return;
76
- this.isOpen = false;
77
- if (this.element.parentNode) {
78
- this.element.parentNode.removeChild(this.element);
79
- }
80
- document.removeEventListener('keydown', this.handleKeyDown);
81
- document.body.classList.remove(_classNames.MODAL_CLASS_NAMES.modalOpen);
82
- if (this.options.onClose) {
83
- this.options.onClose();
84
- }
85
- };
86
- Modal.prototype.destroy = function () {
87
- this.close();
88
- this.element.removeEventListener('click', this.handleBackdropClick);
89
- };
90
- Modal.prototype.setContent = function (content) {
91
- if (typeof content === 'string') {
92
- this.modalElement.innerHTML = content;
93
- } else {
94
- this.modalElement.innerHTML = '';
95
- this.modalElement.appendChild(content);
96
- }
97
- };
98
- Modal.prototype.getElement = function () {
99
- return this.element;
100
- };
101
- Modal.prototype.getModalElement = function () {
102
- return this.modalElement;
103
- };
104
- Modal.prototype.isModalOpen = function () {
105
- return this.isOpen;
106
- };
107
- // Static factory method
108
- Modal.create = function (options) {
109
- return new Modal(options);
110
- };
111
- // Static properties for HTML usage
112
- Modal.Header = _ModalHeader.ModalHeader;
113
- Modal.Content = _ModalContent.ModalContent;
114
- Modal.Actions = _ModalActions.ModalActions;
115
- return Modal;
116
- }();