@g1cloud/bluesea 5.0.0-beta.8 → 6.0.0-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 (243) hide show
  1. package/README.md +11 -0
  2. package/bin/install-claude-skill.mjs +74 -0
  3. package/css/bluesea.css +12 -30478
  4. package/dist/index.d.ts +10 -130
  5. package/dist/index.js +13 -0
  6. package/package.json +41 -59
  7. package/skills/bluesea-ui/SKILL.md +345 -0
  8. package/skills/bluesea-ui/references/components.md +196 -0
  9. package/skills/bluesea-ui/references/grid.md +159 -0
  10. package/skills/bluesea-ui/references/i18n.md +149 -0
  11. package/skills/bluesea-ui/references/validation.md +178 -0
  12. package/css/frame-default.css +0 -703
  13. package/dist/BSAlertModal-C8PIj5h_.js +0 -52
  14. package/dist/BSGridColumnSettingModal-D9CI-F_e.js +0 -149
  15. package/dist/BSRichTextMaximizedModal-DsSYqgSR.js +0 -62
  16. package/dist/BSYesNoModal-CB_RIKt0.js +0 -57
  17. package/dist/BSYoutubeInputModal-CwLcWtEI.js +0 -76
  18. package/dist/ImageInsertModal-lWQeIMu7.js +0 -106
  19. package/dist/ImageProperties.vue_vue_type_script_setup_true_lang-DDj0Odaa.js +0 -180
  20. package/dist/ImagePropertiesModal-C6RyT5B5.js +0 -98
  21. package/dist/LinkPropertiesModal-D5A3Gq2i.js +0 -119
  22. package/dist/TableInsertModal-B1F5T8qs.js +0 -74
  23. package/dist/TablePropertiesModal-DUiHSjcT.js +0 -353
  24. package/dist/VideoInsertModal-R0Bs5E2T.js +0 -106
  25. package/dist/VideoProperties.vue_vue_type_script_setup_true_lang-BCTNqg94.js +0 -194
  26. package/dist/VideoPropertiesModal-DQADTS-J.js +0 -98
  27. package/dist/YoutubeInsertModal-R97l6ge3.js +0 -84
  28. package/dist/YoutubeProperties.vue_vue_type_script_setup_true_lang-Ce9a5UDA.js +0 -181
  29. package/dist/YoutubePropertiesModal-BbrU7l5m.js +0 -102
  30. package/dist/bluesea.css +0 -11278
  31. package/dist/bluesea.js +0 -223
  32. package/dist/bluesea.umd.cjs +0 -72221
  33. package/dist/component/basic/BSButton.vue.d.ts +0 -50
  34. package/dist/component/basic/BSCalendar.vue.d.ts +0 -68
  35. package/dist/component/basic/BSCalendarRange.vue.d.ts +0 -57
  36. package/dist/component/basic/BSConsole.vue.d.ts +0 -36
  37. package/dist/component/basic/BSDate.vue.d.ts +0 -19
  38. package/dist/component/basic/BSFormLabel.vue.d.ts +0 -19
  39. package/dist/component/basic/BSImage.vue.d.ts +0 -44
  40. package/dist/component/basic/BSLink.vue.d.ts +0 -21
  41. package/dist/component/basic/BSLoadingIcon.vue.d.ts +0 -2
  42. package/dist/component/basic/BSPageNavigation.vue.d.ts +0 -52
  43. package/dist/component/basic/BSPopup.vue.d.ts +0 -70
  44. package/dist/component/basic/BSPopupButton.vue.d.ts +0 -41
  45. package/dist/component/basic/BSProgressBar.vue.d.ts +0 -33
  46. package/dist/component/basic/BSTooltip.vue.d.ts +0 -35
  47. package/dist/component/global/AddressSearchButton.vue.d.ts +0 -36
  48. package/dist/component/global/AddressSearchList.gen.d.ts +0 -4
  49. package/dist/component/global/BSAddressInput.vue.d.ts +0 -72
  50. package/dist/component/global/BSLocaleSelect.vue.d.ts +0 -35
  51. package/dist/component/global/BSNameInput.vue.d.ts +0 -80
  52. package/dist/component/global/BSTelInput.vue.d.ts +0 -88
  53. package/dist/component/grid/BSDateRangeFilter.vue.d.ts +0 -63
  54. package/dist/component/grid/BSDateRangeFilters.vue.d.ts +0 -56
  55. package/dist/component/grid/BSGrid.vue.d.ts +0 -177
  56. package/dist/component/grid/BSGridCell.vue.d.ts +0 -85
  57. package/dist/component/grid/BSGridCellCheckbox.vue.d.ts +0 -21
  58. package/dist/component/grid/BSGridCellDragHandle.vue.d.ts +0 -15
  59. package/dist/component/grid/BSGridCellEdit.vue.d.ts +0 -21
  60. package/dist/component/grid/BSGridCellSerialNo.vue.d.ts +0 -15
  61. package/dist/component/grid/BSGridColumnSettingModal.vue.d.ts +0 -25
  62. package/dist/component/grid/BSGridControl.vue.d.ts +0 -78
  63. package/dist/component/grid/BSGridHeaderCell.vue.d.ts +0 -45
  64. package/dist/component/grid/BSGridHeaderCellCheckbox.vue.d.ts +0 -19
  65. package/dist/component/grid/BSGridHeaderCellResizeHandle.vue.d.ts +0 -21
  66. package/dist/component/grid/BSGridHeaderCellSerialNo.vue.d.ts +0 -2
  67. package/dist/component/grid/BSGridLookup.vue.d.ts +0 -67
  68. package/dist/component/grid/BSGridRow.vue.d.ts +0 -140
  69. package/dist/component/grid/BSTextFilter.vue.d.ts +0 -42
  70. package/dist/component/grid/DateFilterModel.d.ts +0 -19
  71. package/dist/component/grid/GridExtension.d.ts +0 -17
  72. package/dist/component/grid/GridLib.d.ts +0 -21
  73. package/dist/component/grid/GridModel.d.ts +0 -399
  74. package/dist/component/grid/extension/gridExcelDownloadExtension.d.ts +0 -22
  75. package/dist/component/grid/vDndSupport.d.ts +0 -18
  76. package/dist/component/input/BSCheckbox.vue.d.ts +0 -63
  77. package/dist/component/input/BSCheckboxGroup.vue.d.ts +0 -79
  78. package/dist/component/input/BSCodeEditor.vue.d.ts +0 -73
  79. package/dist/component/input/BSColorInput.vue.d.ts +0 -68
  80. package/dist/component/input/BSDateInput.vue.d.ts +0 -90
  81. package/dist/component/input/BSDateInputPopup.vue.d.ts +0 -41
  82. package/dist/component/input/BSDateRange.vue.d.ts +0 -113
  83. package/dist/component/input/BSDateRangeInputPopup.vue.d.ts +0 -45
  84. package/dist/component/input/BSDateRangePresets.vue.d.ts +0 -40
  85. package/dist/component/input/BSHtmlEditor.vue.d.ts +0 -64
  86. package/dist/component/input/BSImageUpload.vue.d.ts +0 -118
  87. package/dist/component/input/BSMediaPreview.vue.d.ts +0 -55
  88. package/dist/component/input/BSMultiImageUpload.vue.d.ts +0 -108
  89. package/dist/component/input/BSMultiSelect.vue.d.ts +0 -91
  90. package/dist/component/input/BSNumberInput.vue.d.ts +0 -91
  91. package/dist/component/input/BSPopupSelect.vue.d.ts +0 -54
  92. package/dist/component/input/BSPositionedImageUpload.vue.d.ts +0 -97
  93. package/dist/component/input/BSPriceInput.vue.d.ts +0 -91
  94. package/dist/component/input/BSRadioButton.vue.d.ts +0 -72
  95. package/dist/component/input/BSRadioButtonGroup.vue.d.ts +0 -86
  96. package/dist/component/input/BSSelect.vue.d.ts +0 -95
  97. package/dist/component/input/BSSelectPopup.vue.d.ts +0 -87
  98. package/dist/component/input/BSTextArea.vue.d.ts +0 -88
  99. package/dist/component/input/BSTextInput.vue.d.ts +0 -100
  100. package/dist/component/input/BSTreeMultiSelect.vue.d.ts +0 -89
  101. package/dist/component/input/BSTreeSelect.vue.d.ts +0 -90
  102. package/dist/component/input/BSYesNoGroup.vue.d.ts +0 -55
  103. package/dist/component/input/BSYesNoSelect.vue.d.ts +0 -51
  104. package/dist/component/input/BSYoutubeInputModal.vue.d.ts +0 -6
  105. package/dist/component/input/DateInputLib.d.ts +0 -27
  106. package/dist/component/input/DateRangePresetModel.d.ts +0 -16
  107. package/dist/component/input/HtmlEditorModel.d.ts +0 -5
  108. package/dist/component/input/ImageUploadLib.d.ts +0 -22
  109. package/dist/component/input/ImageUploadModel.d.ts +0 -12
  110. package/dist/component/input/ValidationErrors.vue.d.ts +0 -19
  111. package/dist/component/input/vDragAndDropSupport.d.ts +0 -10
  112. package/dist/component/layout/BSCardLayout.vue.d.ts +0 -41
  113. package/dist/component/layout/BSHorizontalLayoutResizer.vue.d.ts +0 -6
  114. package/dist/component/layout/BSListControl.vue.d.ts +0 -52
  115. package/dist/component/layout/BSListLayout.vue.d.ts +0 -85
  116. package/dist/component/layout/BSListLayoutItem.vue.d.ts +0 -82
  117. package/dist/component/layout/BSTabSheet.vue.d.ts +0 -63
  118. package/dist/component/layout/BSVerticalLayoutResizer.vue.d.ts +0 -6
  119. package/dist/component/layout/SlideDownTransition.vue.d.ts +0 -9
  120. package/dist/component/layout/TabSheetModel.d.ts +0 -49
  121. package/dist/component/multilang/BSMultiLangExpandButton.vue.d.ts +0 -2
  122. package/dist/component/multilang/BSMultiLangHtmlEditor.vue.d.ts +0 -84
  123. package/dist/component/multilang/BSMultiLangImageUpload.vue.d.ts +0 -81
  124. package/dist/component/multilang/BSMultiLangRichText.vue.d.ts +0 -93
  125. package/dist/component/multilang/BSMultiLangTextArea.vue.d.ts +0 -96
  126. package/dist/component/multilang/BSMultiLangTextInput.vue.d.ts +0 -96
  127. package/dist/component/multilang/multiLangLib.d.ts +0 -6
  128. package/dist/component/richtext/BSRichText.vue.d.ts +0 -90
  129. package/dist/component/richtext/BSRichTextMaximizedModal.vue.d.ts +0 -74
  130. package/dist/component/richtext/RichTextLib.d.ts +0 -15
  131. package/dist/component/richtext/RichTextModel.d.ts +0 -9
  132. package/dist/component/richtext/RichTextToolbar.vue.d.ts +0 -36
  133. package/dist/component/richtext/image/ImageInsertModal.vue.d.ts +0 -22
  134. package/dist/component/richtext/image/ImageProperties.vue.d.ts +0 -19
  135. package/dist/component/richtext/image/ImagePropertiesModal.vue.d.ts +0 -17
  136. package/dist/component/richtext/image/RichTextImage.d.ts +0 -7
  137. package/dist/component/richtext/image/RichTextImageLib.d.ts +0 -13
  138. package/dist/component/richtext/image/ToolButtonImage.vue.d.ts +0 -19
  139. package/dist/component/richtext/link/LinkPropertiesModal.vue.d.ts +0 -17
  140. package/dist/component/richtext/link/ToolButtonLink.vue.d.ts +0 -19
  141. package/dist/component/richtext/richTextUtil.d.ts +0 -18
  142. package/dist/component/richtext/table/RichTextTable.d.ts +0 -8
  143. package/dist/component/richtext/table/RichTextTableCell.d.ts +0 -1
  144. package/dist/component/richtext/table/RichTextTableLib.d.ts +0 -23
  145. package/dist/component/richtext/table/RichTextTableView.d.ts +0 -19
  146. package/dist/component/richtext/table/TableInsertModal.vue.d.ts +0 -17
  147. package/dist/component/richtext/table/TablePropertiesModal.vue.d.ts +0 -17
  148. package/dist/component/richtext/table/ToolButtonTable.vue.d.ts +0 -19
  149. package/dist/component/richtext/tool/ToolButtonFontColor.vue.d.ts +0 -19
  150. package/dist/component/richtext/tool/ToolButtonFontSize.vue.d.ts +0 -19
  151. package/dist/component/richtext/tool/ToolButtonFontStyle.vue.d.ts +0 -19
  152. package/dist/component/richtext/tool/ToolButtonHeading.vue.d.ts +0 -19
  153. package/dist/component/richtext/tool/ToolButtonListItem.vue.d.ts +0 -19
  154. package/dist/component/richtext/tool/ToolButtonMaximize.vue.d.ts +0 -19
  155. package/dist/component/richtext/tool/ToolButtonTextAlign.vue.d.ts +0 -19
  156. package/dist/component/richtext/video/RichTextVideo.d.ts +0 -29
  157. package/dist/component/richtext/video/RichTextVideoLib.d.ts +0 -16
  158. package/dist/component/richtext/video/ToolButtonVideo.vue.d.ts +0 -19
  159. package/dist/component/richtext/video/VideoInsertModal.vue.d.ts +0 -22
  160. package/dist/component/richtext/video/VideoProperties.vue.d.ts +0 -19
  161. package/dist/component/richtext/video/VideoPropertiesModal.vue.d.ts +0 -17
  162. package/dist/component/richtext/youtube/RichTextYoutube.d.ts +0 -8
  163. package/dist/component/richtext/youtube/RichTextYoutubeLib.d.ts +0 -14
  164. package/dist/component/richtext/youtube/ToolButtonYoutube.vue.d.ts +0 -19
  165. package/dist/component/richtext/youtube/YoutubeInsertModal.vue.d.ts +0 -17
  166. package/dist/component/richtext/youtube/YoutubeProperties.vue.d.ts +0 -19
  167. package/dist/component/richtext/youtube/YoutubePropertiesModal.vue.d.ts +0 -17
  168. package/dist/component/tree/BSTree.vue.d.ts +0 -104
  169. package/dist/component/tree/BSTreeControl.vue.d.ts +0 -90
  170. package/dist/component/tree/BSTreeRow.vue.d.ts +0 -89
  171. package/dist/component/tree/TreeLib.d.ts +0 -11
  172. package/dist/component/tree/TreeModel.d.ts +0 -188
  173. package/dist/component/tree/vTreeDndSupport.d.ts +0 -10
  174. package/dist/config/config.d.ts +0 -155
  175. package/dist/contextmenu/BSContextMenu.vue.d.ts +0 -43
  176. package/dist/contextmenu/BSContextMenuContainer.vue.d.ts +0 -2
  177. package/dist/contextmenu/contextMenuPlugin.d.ts +0 -43
  178. package/dist/directive/vClickOutside.d.ts +0 -21
  179. package/dist/directive/vFocusJump.d.ts +0 -19
  180. package/dist/directive/vFocusLoop.d.ts +0 -25
  181. package/dist/directive/vFocusOnLoad.d.ts +0 -4
  182. package/dist/directive/vT.d.ts +0 -11
  183. package/dist/directive/vTooltip.d.ts +0 -9
  184. package/dist/frame/FrameModel.d.ts +0 -82
  185. package/dist/frame/ShortcutKeyHandler.d.ts +0 -37
  186. package/dist/frame/default/DefaultBody.vue.d.ts +0 -2
  187. package/dist/frame/default/DefaultFrameModel.d.ts +0 -107
  188. package/dist/frame/default/DefaultHeader.vue.d.ts +0 -23
  189. package/dist/frame/default/HeaderTab.vue.d.ts +0 -17
  190. package/dist/frame/default/HeaderTabListButton.vue.d.ts +0 -2
  191. package/dist/frame/default/HeaderTabs.vue.d.ts +0 -15
  192. package/dist/frame/default/SidebarMenu.vue.d.ts +0 -2
  193. package/dist/frame/default/SidebarMenuItem.vue.d.ts +0 -25
  194. package/dist/frame/default/SidebarMenuLink.vue.d.ts +0 -29
  195. package/dist/frame/default/SidebarMenuSearch.vue.d.ts +0 -28
  196. package/dist/index-DRs7QwNQ.js +0 -70174
  197. package/dist/modal/BSAlertModal.vue.d.ts +0 -23
  198. package/dist/modal/BSModalContainer.vue.d.ts +0 -2
  199. package/dist/modal/BSModalFrame.vue.d.ts +0 -37
  200. package/dist/modal/BSModalWrapper.vue.d.ts +0 -17
  201. package/dist/modal/BSYesNoModal.vue.d.ts +0 -25
  202. package/dist/modal/modalPlugin.d.ts +0 -73
  203. package/dist/model/CommonTypes.d.ts +0 -96
  204. package/dist/model/DefaultImpl.d.ts +0 -8
  205. package/dist/model/FieldContext.d.ts +0 -15
  206. package/dist/model/FilterModel.d.ts +0 -114
  207. package/dist/model/MoneySerializer.d.ts +0 -3
  208. package/dist/model/PaginatedList.d.ts +0 -29
  209. package/dist/model/SearchModel.d.ts +0 -22
  210. package/dist/notification/BSAlarmFrame.vue.d.ts +0 -26
  211. package/dist/notification/BSNotificationContainer.vue.d.ts +0 -2
  212. package/dist/notification/notificationPlugin.d.ts +0 -33
  213. package/dist/savepoint/SavePoint.d.ts +0 -47
  214. package/dist/text/i18n.d.ts +0 -28
  215. package/dist/util/alertUtil.d.ts +0 -1
  216. package/dist/util/componentUtil.d.ts +0 -40
  217. package/dist/util/debounceUtil.d.ts +0 -16
  218. package/dist/util/elementUtil.d.ts +0 -58
  219. package/dist/util/formatUtil.d.ts +0 -70
  220. package/dist/util/langUtil.d.ts +0 -3
  221. package/dist/util/multiLangUtil.d.ts +0 -27
  222. package/dist/util/routeUtil.d.ts +0 -3
  223. package/dist/util/typeUtil.d.ts +0 -18
  224. package/dist/util/waitUtil.d.ts +0 -19
  225. package/dist/validator/FieldValidator.d.ts +0 -45
  226. package/dist/validator/FormValidator.d.ts +0 -35
  227. package/scss/bluesea-base.scss +0 -6
  228. package/scss/bluesea.scss +0 -2
  229. package/scss/component.scss +0 -515
  230. package/scss/font.scss +0 -3
  231. package/scss/frame/default.scss +0 -293
  232. package/scss/layout.scss +0 -192
  233. package/scss/reset.scss +0 -68
  234. package/scss/rich-text-container.scss +0 -113
  235. package/scss/rich-text-content.scss +0 -137
  236. package/scss/transition.scss +0 -108
  237. package/scss/utility.scss +0 -816
  238. package/scss/variable.scss +0 -347
  239. package/text/bluesea_text_en.json +0 -956
  240. package/text/bluesea_text_fr.json +0 -956
  241. package/text/bluesea_text_ja.json +0 -956
  242. package/text/bluesea_text_ko.json +0 -956
  243. package/text/bluesea_text_zh.json +0 -956
@@ -1,16 +0,0 @@
1
- /**
2
- * debounce 함수를 생성한다.
3
- *
4
- * ```ts
5
- * // 함수를 만들 때 debounce 로 감싼다.
6
- * const debouncedFunc = debounce(() => {
7
- * ...
8
- * }, 500)()
9
- *
10
- * // 여러 번 호출하더라도, 마지막 호출만 실행된다.
11
- * debouncedFunc()
12
- * ```
13
- * @param func
14
- * @param wait
15
- */
16
- export declare const debounce: <T>(func: (...args: any[]) => T, wait: number) => ((...args: any[]) => Promise<T>);
@@ -1,58 +0,0 @@
1
- import { Component, Ref } from 'vue';
2
-
3
- /**
4
- * HTMLElement, Component(vue) 로부터 실제 HTMLElement 를 찾아온다.
5
- *
6
- * 예를 들어,
7
- * ```
8
- * const form = ref<HTMLElement>()
9
- * ```
10
- * 이렇게 선언하고 template 에서 ref 속성을 사용하면, html element 를 참조할 수 있다.
11
- * ```
12
- * <div ref="form">...</div>
13
- * ```
14
- * 그런데 이게 꼭 div 에만 적용되는 것은 아니다.
15
- * ```
16
- * <BSCardLayout ref="form">...</BSCardLayout>
17
- * ```
18
- * 이렇게 되면 form.value 는 실제로는 vue component 객체를 참조하기 때문에, `form.value.$el` 해야만 html element 를 가져올 수 있다.
19
- *
20
- * 이 함수는 이렇게 여러가지 경우에 따라 html element 를 가져오는 역할을 한다.
21
- * @param maybeElement
22
- */
23
- export declare const findElement: (maybeElement: Ref<HTMLElement | Component | undefined | null> | undefined) => HTMLElement | undefined;
24
- export declare const findInputComponents: (maybeElement: Ref<HTMLElement | Component | undefined> | undefined) => HTMLElement[];
25
- /**
26
- * Vue Component 로부터 root element 를 가져온다.
27
- * @param component
28
- */
29
- export declare const getComponentRootElement: (component: Component) => HTMLElement | undefined;
30
- /**
31
- * 첫 번째 focusable 한 element 에 focus 를 옮긴다.
32
- * @param element
33
- * @return focusable 한 element 가 없어 수행하지 못했으면 false, 그렇지 않으면 true
34
- */
35
- export declare const focusFirstElement: (element: HTMLElement) => boolean;
36
- /**
37
- * 마지막 focusable 한 element 에 focus 를 옮긴다.
38
- * @param element
39
- * @return focusable 한 element 가 없어 수행하지 못했으면 false, 그렇지 않으면 true
40
- */
41
- export declare const focusLastElement: (element: HTMLElement) => boolean;
42
- /**
43
- * 첫 번재 focusable 한 element 를 찾는다.
44
- * @param element
45
- */
46
- export declare const findFirstFocusableElement: (element: HTMLElement) => HTMLElement | undefined;
47
- /**
48
- * 마지막 focusable 한 element 를 찾는다.
49
- * @param element
50
- */
51
- export declare const findLastFocusableElement: (element: HTMLElement) => HTMLElement | undefined;
52
- /**
53
- * `element` 가 parent 로부터 몇 번째 child 인지 리턴한다.
54
- * parent 가 없으면 -1 을 리턴한다.
55
- * @param element
56
- */
57
- export declare const getSelfIndex: (element: HTMLElement) => number;
58
- export declare const NAMED_COLORS: Record<string, string>;
@@ -1,70 +0,0 @@
1
- import { DisplayDateResolution, TimeZone } from '../model/CommonTypes.ts';
2
-
3
- export declare const formatUtil: {
4
- /**
5
- * 개행 문자('\r', '\n')를 '<br/>' 태그로 변경한다.
6
- * @param str 변경할 String
7
- * @return 개행문자가 '<br/>'로 변경된 String
8
- */
9
- escapeNewLine(str?: string): string;
10
- /**
11
- * `str` 안의 `&<>"'` 문자를 escape 처리한다.
12
- * @param str 변경할 String
13
- */
14
- escapeHtml(str?: string): string;
15
- /**
16
- * String 을 개행 문자('\r', '\n') 기준으로 나눈다.
17
- * @param str
18
- * @return 개행문자로 나누어진 string 의 array
19
- */
20
- splitNewLine(str?: string): Array<string>;
21
- /**
22
- * ISO8601 형식의 string 을 주어진 format 으로 변환한다.
23
- * @param utcDate
24
- * @param format
25
- * @param displayTimeZone
26
- */
27
- formatDateString(utcDate?: string, format?: string | DisplayDateResolution, displayTimeZone?: TimeZone): string;
28
- /**
29
- * 숫자에 구분점을 넣는다. 소수점 이하가 있는 경우도 처리한다.
30
- * * 12345 -> '12,345'
31
- * * 12345.12345 -> '12,345.12345'
32
- * * 0 -> '0'
33
- * * undefined -> null
34
- * * null -> null
35
- *
36
- * @param value
37
- * @return
38
- */
39
- formatNumber(value?: number | string | null): string | null;
40
- formatNumberByCode(value?: number | string | null, locale?: string | 'ko-KR'): string | null;
41
- /**
42
- * 통화단위와 표시위치를 받아 출력한다
43
- * @param value 값
44
- * @param currencyUnit 통화단위
45
- * @param prefix true 이면 withUnit을 앞에 붙이고, false 이면 뒤에 붙인다.
46
- */
47
- formatPrice(value?: number | string | null, currencyUnit?: string | '', prefix?: boolean): string | null;
48
- /**
49
- * rate 를 받아 percent 를 출력한다.
50
- * * 0.1 -> 10%
51
- * * 0.55 -> 55%
52
- * * 0.551 -> 55.1%
53
- * @param value 비율 값
54
- * @param withUnit true 이면 % 를 붙이고, false 이면 붙이지 않는다.
55
- * @param decimalPlace 소숫점 n번째에서 반올림한다.
56
- */
57
- formatPercent(value?: number | string | null, withUnit?: boolean, decimalPlace?: number): string | null;
58
- /**
59
- * 신용카드번호를 4자리 단위로 나누어 구분자를 넣는다.
60
- * @param value
61
- * @param separator 구분자
62
- */
63
- formatCreditCardNo(value: string, separator?: string): string | undefined;
64
- /**
65
- * `HTML`태그가 포함된 문자열에서 text 만 남긴다.
66
- * @param textIncludedHTMLElement HTML 태그를 포함하는 문자열
67
- * @return HTML 태그가 제거된 문자열
68
- */
69
- toPlainText(textIncludedHTMLElement?: string): string;
70
- };
@@ -1,3 +0,0 @@
1
- export declare const checkKorean: (str: string) => boolean;
2
- export declare const checkEnglish: (str: string) => boolean;
3
- export declare const checkNumber: (str: string) => boolean;
@@ -1,27 +0,0 @@
1
- import { MultiLangStoredFile, MultiLangString, MultiLangText } from '../model/CommonTypes';
2
-
3
- /**
4
- * MultiLangString 의 모든 항목이 비어있거나 공백문자만 있으면 true 를 리턴한다.
5
- * undefined 인 경우에도 true 를 리턴한다.
6
- * @param value
7
- */
8
- export declare const isBlankMultiLangString: (value?: MultiLangString) => boolean;
9
- /**
10
- * MultiLangString 이 필수 체크를 만족시킨다면 true, 그렇지 않으면 false 를 리턴한다.
11
- * @param value
12
- * @param requiredLocales
13
- */
14
- export declare const isMultiLangStringValidRequired: (value?: MultiLangString, requiredLocales?: string[]) => boolean;
15
- /**
16
- * MultiLangString 각각의 항목에 prefix 를 추가한다.
17
- * @param value
18
- * @param prefix
19
- */
20
- export declare const addPrefixToMultiLangString: (value?: MultiLangString, prefix?: MultiLangText) => void;
21
- export declare const isBlankMultiLangImageFile: (value?: MultiLangStoredFile) => boolean;
22
- export declare const isMultiLangImageFileValidRequired: (value?: MultiLangStoredFile, requiredLocales?: string[]) => boolean;
23
- /**
24
- * `locale` 에 해당하는 이름을 리턴한다.
25
- * @param locale
26
- */
27
- export declare const localeNameProvider: (locale: string) => string | undefined;
@@ -1,3 +0,0 @@
1
- import { RouteLocation } from 'vue-router';
2
-
3
- export declare const parsePathParam: (route: RouteLocation) => string[];
@@ -1,18 +0,0 @@
1
- export type FunctionPropertyNames<T> = {
2
- [K in keyof T]: T[K] extends Function ? K : never;
3
- }[keyof T];
4
- export type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>;
5
- export type NonFunctionPropertyNames<T> = {
6
- [K in keyof T]: T[K] extends Function ? never : K;
7
- }[keyof T];
8
- export type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
9
- export type PartialNonFunctionProperties<T> = Partial<NonFunctionProperties<T>>;
10
- export type RawData<T> = PartialNonFunctionProperties<T>;
11
- /**
12
- * Array 의 filter 로 null/undefined 가 아닌 것을 걸러낼 때 사용한다.
13
- * ```ts
14
- * const array: (string | null)[] = ['test', null, 'sample', undefined]
15
- * const filtered: string[] = array.filter(notNull)
16
- * ```
17
- */
18
- export declare function notNull<T>(value: T | null | undefined): value is T;
@@ -1,19 +0,0 @@
1
- /**
2
- * 특정 조건이 완료될 때까지 여러 번 계속 시도한다.
3
- * @param condition 조건
4
- * @param intervalMilliseconds 시도 간격
5
- * @param maxTrial 최대 시도 수
6
- */
7
- export declare const waitUntil: (condition: () => boolean, intervalMilliseconds?: number, maxTrial?: number) => Promise<void>;
8
- /**
9
- * 일정 시간동안 기다린다.
10
- * @param milliSec 기다리는 시간
11
- */
12
- export declare const waitDuring: (milliSec?: number) => Promise<void>;
13
- export declare const tryUntil: (until: () => boolean | undefined, tryCall: () => void, intervalMilliseconds?: number, maxTrial?: number) => void;
14
- declare const _default: {
15
- waitUntil: (condition: () => boolean, intervalMilliseconds?: number, maxTrial?: number) => Promise<void>;
16
- waitDuring: (milliSec?: number) => Promise<void>;
17
- tryUntil: (until: () => boolean | undefined, tryCall: () => void, intervalMilliseconds?: number, maxTrial?: number) => void;
18
- };
19
- export default _default;
@@ -1,45 +0,0 @@
1
- import { ComputedRef, Ref, UnwrapRef } from 'vue';
2
- import { MultiLangText } from '../model/CommonTypes';
3
- import { FieldContext } from '../model/FieldContext';
4
-
5
- export type ValidationError = {
6
- code: string;
7
- message: MultiLangText;
8
- };
9
- export type ValidationPhase = 'input' | 'change' | 'blur' | 'form';
10
- export type FieldValidationRule<T> = (value: T, phase: ValidationPhase, fieldContext?: FieldContext<any>) => Promise<ValidationError[] | undefined> | ValidationError[] | undefined;
11
- export type FieldValidatorOption<T> = {
12
- field?: Ref<HTMLElement | undefined>;
13
- disabled: Ref<boolean> | ComputedRef<boolean>;
14
- initialValue?: T;
15
- isValid?: (value: UnwrapRef<T> | undefined, phase: ValidationPhase) => undefined | ValidationError[] | Promise<ValidationError[]>;
16
- convertToValue?: (value: string | undefined) => UnwrapRef<T>;
17
- convertFromValue?: (value: UnwrapRef<T | undefined>) => string;
18
- };
19
- export type FieldValidator<T> = {
20
- stringValue: Ref<string | undefined>;
21
- value: Ref<UnwrapRef<T> | undefined>;
22
- valid: Ref<boolean>;
23
- errors: Ref<ValidationError[]>;
24
- touched: Ref<boolean>;
25
- handleInput: (event: Event) => Promise<void>;
26
- handleChange: (event: Event) => Promise<void>;
27
- handleFocus: (event: Event) => void;
28
- handleBlur: (event: Event) => void;
29
- validateValue: (value: UnwrapRef<T>, phase: ValidationPhase) => Promise<void>;
30
- validate: (phase?: ValidationPhase) => Promise<void>;
31
- clearErrors: () => void;
32
- getName: () => string;
33
- };
34
- export declare const storeFieldValidator: <T>(field: HTMLElement, validator: FieldValidator<T>) => void;
35
- export declare const loadFieldValidator: <T>(field: HTMLElement) => FieldValidator<T> | undefined;
36
- export declare const findFieldValidatorElements: (element?: HTMLElement) => NodeListOf<HTMLElement> | undefined;
37
- export declare const validateField: (field: HTMLElement | string, phase?: ValidationPhase) => Promise<void>;
38
- export declare const validateFields: (fields: (HTMLElement | string)[], phase?: ValidationPhase) => Promise<void>;
39
- export declare const fieldValidator: <T>(option: FieldValidatorOption<T>) => FieldValidator<T>;
40
- export declare const executeFieldValidationRule: <T>(value: T, rules: FieldValidationRule<T>[] | undefined, errors: ValidationError[], phase: ValidationPhase, fieldContext?: FieldContext<any>) => Promise<boolean>;
41
- export declare const executeRequiredValidation: (value: string | number | undefined, checkRequired: boolean, requiredMessage: MultiLangText | undefined, errors: ValidationError[]) => boolean;
42
- export declare const executeRegExpValidation: (value: string, regexp: string | undefined, message: MultiLangText | undefined, errors: ValidationError[]) => boolean;
43
- export declare const executeBetweenLengthValidation: (text: string, minLength: number | undefined, minLengthMessage: MultiLangText | undefined, maxLength: number | undefined, maxLengthMessage: MultiLangText | undefined, betweenLengthMessage: MultiLangText | undefined, errors: ValidationError[]) => boolean;
44
- export declare const executeBetweenValueValidation: (value: number, minValue: number | undefined, minValueMessage: MultiLangText | undefined, maxValue: number | undefined, maxValueMessage: MultiLangText | undefined, betweenValueMessage: MultiLangText | undefined, errors: ValidationError[]) => boolean;
45
- export declare const executeDateRangeValidation: (fromValue: string | undefined, toValue: string | undefined, validationMessage: MultiLangText | undefined, erros: ValidationError[]) => boolean;
@@ -1,35 +0,0 @@
1
- import { FieldValidator, ValidationError, ValidationPhase } from './FieldValidator';
2
- import { Component, Ref } from 'vue';
3
-
4
- export type FormValidationError = ValidationError & {
5
- name?: string;
6
- };
7
- export type FormValidationRule = (phase?: ValidationPhase) => Promise<FormValidationError[] | undefined>;
8
- export type FormValidatorOption = {
9
- element?: Ref<HTMLElement | Component | undefined | null>;
10
- rules?: FormValidationRule[];
11
- };
12
- export type FormValidator = {
13
- /**
14
- * Form 안의 모든 FieldValidator 에 대해서 validation 을 수행하고, 그 결과를 리턴한다.
15
- */
16
- validationResult: () => Promise<FormValidationError[] | undefined>;
17
- /**
18
- * Form 안의 모든 FieldValidator 에 대해서 validation 을 수행한다.
19
- */
20
- validate: () => Promise<void>;
21
- /**
22
- * Form 안의 FieldValidator 를 모두 가져온다.
23
- */
24
- getFieldValidators: () => FieldValidator<unknown>[];
25
- /**
26
- * validation result 를 모두 제거하고, validation 을 수행하지 않은 상태로 돌아간다.
27
- */
28
- clear: () => void;
29
- };
30
- export declare class ValidationFailedError {
31
- errors: FormValidationError[];
32
- constructor(errors: FormValidationError[]);
33
- }
34
- export declare const isValidationFailedError: (err: unknown) => err is ValidationFailedError;
35
- export declare const formValidator: (option: FormValidatorOption) => FormValidator;
@@ -1,6 +0,0 @@
1
- @forward "./reset";
2
- @forward "./font";
3
- @forward "./utility";
4
- @forward "./layout";
5
- @forward "./transition";
6
- @forward "./frame/default";
package/scss/bluesea.scss DELETED
@@ -1,2 +0,0 @@
1
- @use "./bluesea-base" as *;
2
- @use "../dist/bluesea.css" as *;