@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.
- package/README.md +11 -0
- package/bin/install-claude-skill.mjs +74 -0
- package/css/bluesea.css +12 -30478
- package/dist/index.d.ts +10 -130
- package/dist/index.js +13 -0
- package/package.json +41 -59
- package/skills/bluesea-ui/SKILL.md +345 -0
- package/skills/bluesea-ui/references/components.md +196 -0
- package/skills/bluesea-ui/references/grid.md +159 -0
- package/skills/bluesea-ui/references/i18n.md +149 -0
- package/skills/bluesea-ui/references/validation.md +178 -0
- package/css/frame-default.css +0 -703
- package/dist/BSAlertModal-C8PIj5h_.js +0 -52
- package/dist/BSGridColumnSettingModal-D9CI-F_e.js +0 -149
- package/dist/BSRichTextMaximizedModal-DsSYqgSR.js +0 -62
- package/dist/BSYesNoModal-CB_RIKt0.js +0 -57
- package/dist/BSYoutubeInputModal-CwLcWtEI.js +0 -76
- package/dist/ImageInsertModal-lWQeIMu7.js +0 -106
- package/dist/ImageProperties.vue_vue_type_script_setup_true_lang-DDj0Odaa.js +0 -180
- package/dist/ImagePropertiesModal-C6RyT5B5.js +0 -98
- package/dist/LinkPropertiesModal-D5A3Gq2i.js +0 -119
- package/dist/TableInsertModal-B1F5T8qs.js +0 -74
- package/dist/TablePropertiesModal-DUiHSjcT.js +0 -353
- package/dist/VideoInsertModal-R0Bs5E2T.js +0 -106
- package/dist/VideoProperties.vue_vue_type_script_setup_true_lang-BCTNqg94.js +0 -194
- package/dist/VideoPropertiesModal-DQADTS-J.js +0 -98
- package/dist/YoutubeInsertModal-R97l6ge3.js +0 -84
- package/dist/YoutubeProperties.vue_vue_type_script_setup_true_lang-Ce9a5UDA.js +0 -181
- package/dist/YoutubePropertiesModal-BbrU7l5m.js +0 -102
- package/dist/bluesea.css +0 -11278
- package/dist/bluesea.js +0 -223
- package/dist/bluesea.umd.cjs +0 -72221
- package/dist/component/basic/BSButton.vue.d.ts +0 -50
- package/dist/component/basic/BSCalendar.vue.d.ts +0 -68
- package/dist/component/basic/BSCalendarRange.vue.d.ts +0 -57
- package/dist/component/basic/BSConsole.vue.d.ts +0 -36
- package/dist/component/basic/BSDate.vue.d.ts +0 -19
- package/dist/component/basic/BSFormLabel.vue.d.ts +0 -19
- package/dist/component/basic/BSImage.vue.d.ts +0 -44
- package/dist/component/basic/BSLink.vue.d.ts +0 -21
- package/dist/component/basic/BSLoadingIcon.vue.d.ts +0 -2
- package/dist/component/basic/BSPageNavigation.vue.d.ts +0 -52
- package/dist/component/basic/BSPopup.vue.d.ts +0 -70
- package/dist/component/basic/BSPopupButton.vue.d.ts +0 -41
- package/dist/component/basic/BSProgressBar.vue.d.ts +0 -33
- package/dist/component/basic/BSTooltip.vue.d.ts +0 -35
- package/dist/component/global/AddressSearchButton.vue.d.ts +0 -36
- package/dist/component/global/AddressSearchList.gen.d.ts +0 -4
- package/dist/component/global/BSAddressInput.vue.d.ts +0 -72
- package/dist/component/global/BSLocaleSelect.vue.d.ts +0 -35
- package/dist/component/global/BSNameInput.vue.d.ts +0 -80
- package/dist/component/global/BSTelInput.vue.d.ts +0 -88
- package/dist/component/grid/BSDateRangeFilter.vue.d.ts +0 -63
- package/dist/component/grid/BSDateRangeFilters.vue.d.ts +0 -56
- package/dist/component/grid/BSGrid.vue.d.ts +0 -177
- package/dist/component/grid/BSGridCell.vue.d.ts +0 -85
- package/dist/component/grid/BSGridCellCheckbox.vue.d.ts +0 -21
- package/dist/component/grid/BSGridCellDragHandle.vue.d.ts +0 -15
- package/dist/component/grid/BSGridCellEdit.vue.d.ts +0 -21
- package/dist/component/grid/BSGridCellSerialNo.vue.d.ts +0 -15
- package/dist/component/grid/BSGridColumnSettingModal.vue.d.ts +0 -25
- package/dist/component/grid/BSGridControl.vue.d.ts +0 -78
- package/dist/component/grid/BSGridHeaderCell.vue.d.ts +0 -45
- package/dist/component/grid/BSGridHeaderCellCheckbox.vue.d.ts +0 -19
- package/dist/component/grid/BSGridHeaderCellResizeHandle.vue.d.ts +0 -21
- package/dist/component/grid/BSGridHeaderCellSerialNo.vue.d.ts +0 -2
- package/dist/component/grid/BSGridLookup.vue.d.ts +0 -67
- package/dist/component/grid/BSGridRow.vue.d.ts +0 -140
- package/dist/component/grid/BSTextFilter.vue.d.ts +0 -42
- package/dist/component/grid/DateFilterModel.d.ts +0 -19
- package/dist/component/grid/GridExtension.d.ts +0 -17
- package/dist/component/grid/GridLib.d.ts +0 -21
- package/dist/component/grid/GridModel.d.ts +0 -399
- package/dist/component/grid/extension/gridExcelDownloadExtension.d.ts +0 -22
- package/dist/component/grid/vDndSupport.d.ts +0 -18
- package/dist/component/input/BSCheckbox.vue.d.ts +0 -63
- package/dist/component/input/BSCheckboxGroup.vue.d.ts +0 -79
- package/dist/component/input/BSCodeEditor.vue.d.ts +0 -73
- package/dist/component/input/BSColorInput.vue.d.ts +0 -68
- package/dist/component/input/BSDateInput.vue.d.ts +0 -90
- package/dist/component/input/BSDateInputPopup.vue.d.ts +0 -41
- package/dist/component/input/BSDateRange.vue.d.ts +0 -113
- package/dist/component/input/BSDateRangeInputPopup.vue.d.ts +0 -45
- package/dist/component/input/BSDateRangePresets.vue.d.ts +0 -40
- package/dist/component/input/BSHtmlEditor.vue.d.ts +0 -64
- package/dist/component/input/BSImageUpload.vue.d.ts +0 -118
- package/dist/component/input/BSMediaPreview.vue.d.ts +0 -55
- package/dist/component/input/BSMultiImageUpload.vue.d.ts +0 -108
- package/dist/component/input/BSMultiSelect.vue.d.ts +0 -91
- package/dist/component/input/BSNumberInput.vue.d.ts +0 -91
- package/dist/component/input/BSPopupSelect.vue.d.ts +0 -54
- package/dist/component/input/BSPositionedImageUpload.vue.d.ts +0 -97
- package/dist/component/input/BSPriceInput.vue.d.ts +0 -91
- package/dist/component/input/BSRadioButton.vue.d.ts +0 -72
- package/dist/component/input/BSRadioButtonGroup.vue.d.ts +0 -86
- package/dist/component/input/BSSelect.vue.d.ts +0 -95
- package/dist/component/input/BSSelectPopup.vue.d.ts +0 -87
- package/dist/component/input/BSTextArea.vue.d.ts +0 -88
- package/dist/component/input/BSTextInput.vue.d.ts +0 -100
- package/dist/component/input/BSTreeMultiSelect.vue.d.ts +0 -89
- package/dist/component/input/BSTreeSelect.vue.d.ts +0 -90
- package/dist/component/input/BSYesNoGroup.vue.d.ts +0 -55
- package/dist/component/input/BSYesNoSelect.vue.d.ts +0 -51
- package/dist/component/input/BSYoutubeInputModal.vue.d.ts +0 -6
- package/dist/component/input/DateInputLib.d.ts +0 -27
- package/dist/component/input/DateRangePresetModel.d.ts +0 -16
- package/dist/component/input/HtmlEditorModel.d.ts +0 -5
- package/dist/component/input/ImageUploadLib.d.ts +0 -22
- package/dist/component/input/ImageUploadModel.d.ts +0 -12
- package/dist/component/input/ValidationErrors.vue.d.ts +0 -19
- package/dist/component/input/vDragAndDropSupport.d.ts +0 -10
- package/dist/component/layout/BSCardLayout.vue.d.ts +0 -41
- package/dist/component/layout/BSHorizontalLayoutResizer.vue.d.ts +0 -6
- package/dist/component/layout/BSListControl.vue.d.ts +0 -52
- package/dist/component/layout/BSListLayout.vue.d.ts +0 -85
- package/dist/component/layout/BSListLayoutItem.vue.d.ts +0 -82
- package/dist/component/layout/BSTabSheet.vue.d.ts +0 -63
- package/dist/component/layout/BSVerticalLayoutResizer.vue.d.ts +0 -6
- package/dist/component/layout/SlideDownTransition.vue.d.ts +0 -9
- package/dist/component/layout/TabSheetModel.d.ts +0 -49
- package/dist/component/multilang/BSMultiLangExpandButton.vue.d.ts +0 -2
- package/dist/component/multilang/BSMultiLangHtmlEditor.vue.d.ts +0 -84
- package/dist/component/multilang/BSMultiLangImageUpload.vue.d.ts +0 -81
- package/dist/component/multilang/BSMultiLangRichText.vue.d.ts +0 -93
- package/dist/component/multilang/BSMultiLangTextArea.vue.d.ts +0 -96
- package/dist/component/multilang/BSMultiLangTextInput.vue.d.ts +0 -96
- package/dist/component/multilang/multiLangLib.d.ts +0 -6
- package/dist/component/richtext/BSRichText.vue.d.ts +0 -90
- package/dist/component/richtext/BSRichTextMaximizedModal.vue.d.ts +0 -74
- package/dist/component/richtext/RichTextLib.d.ts +0 -15
- package/dist/component/richtext/RichTextModel.d.ts +0 -9
- package/dist/component/richtext/RichTextToolbar.vue.d.ts +0 -36
- package/dist/component/richtext/image/ImageInsertModal.vue.d.ts +0 -22
- package/dist/component/richtext/image/ImageProperties.vue.d.ts +0 -19
- package/dist/component/richtext/image/ImagePropertiesModal.vue.d.ts +0 -17
- package/dist/component/richtext/image/RichTextImage.d.ts +0 -7
- package/dist/component/richtext/image/RichTextImageLib.d.ts +0 -13
- package/dist/component/richtext/image/ToolButtonImage.vue.d.ts +0 -19
- package/dist/component/richtext/link/LinkPropertiesModal.vue.d.ts +0 -17
- package/dist/component/richtext/link/ToolButtonLink.vue.d.ts +0 -19
- package/dist/component/richtext/richTextUtil.d.ts +0 -18
- package/dist/component/richtext/table/RichTextTable.d.ts +0 -8
- package/dist/component/richtext/table/RichTextTableCell.d.ts +0 -1
- package/dist/component/richtext/table/RichTextTableLib.d.ts +0 -23
- package/dist/component/richtext/table/RichTextTableView.d.ts +0 -19
- package/dist/component/richtext/table/TableInsertModal.vue.d.ts +0 -17
- package/dist/component/richtext/table/TablePropertiesModal.vue.d.ts +0 -17
- package/dist/component/richtext/table/ToolButtonTable.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonFontColor.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonFontSize.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonFontStyle.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonHeading.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonListItem.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonMaximize.vue.d.ts +0 -19
- package/dist/component/richtext/tool/ToolButtonTextAlign.vue.d.ts +0 -19
- package/dist/component/richtext/video/RichTextVideo.d.ts +0 -29
- package/dist/component/richtext/video/RichTextVideoLib.d.ts +0 -16
- package/dist/component/richtext/video/ToolButtonVideo.vue.d.ts +0 -19
- package/dist/component/richtext/video/VideoInsertModal.vue.d.ts +0 -22
- package/dist/component/richtext/video/VideoProperties.vue.d.ts +0 -19
- package/dist/component/richtext/video/VideoPropertiesModal.vue.d.ts +0 -17
- package/dist/component/richtext/youtube/RichTextYoutube.d.ts +0 -8
- package/dist/component/richtext/youtube/RichTextYoutubeLib.d.ts +0 -14
- package/dist/component/richtext/youtube/ToolButtonYoutube.vue.d.ts +0 -19
- package/dist/component/richtext/youtube/YoutubeInsertModal.vue.d.ts +0 -17
- package/dist/component/richtext/youtube/YoutubeProperties.vue.d.ts +0 -19
- package/dist/component/richtext/youtube/YoutubePropertiesModal.vue.d.ts +0 -17
- package/dist/component/tree/BSTree.vue.d.ts +0 -104
- package/dist/component/tree/BSTreeControl.vue.d.ts +0 -90
- package/dist/component/tree/BSTreeRow.vue.d.ts +0 -89
- package/dist/component/tree/TreeLib.d.ts +0 -11
- package/dist/component/tree/TreeModel.d.ts +0 -188
- package/dist/component/tree/vTreeDndSupport.d.ts +0 -10
- package/dist/config/config.d.ts +0 -155
- package/dist/contextmenu/BSContextMenu.vue.d.ts +0 -43
- package/dist/contextmenu/BSContextMenuContainer.vue.d.ts +0 -2
- package/dist/contextmenu/contextMenuPlugin.d.ts +0 -43
- package/dist/directive/vClickOutside.d.ts +0 -21
- package/dist/directive/vFocusJump.d.ts +0 -19
- package/dist/directive/vFocusLoop.d.ts +0 -25
- package/dist/directive/vFocusOnLoad.d.ts +0 -4
- package/dist/directive/vT.d.ts +0 -11
- package/dist/directive/vTooltip.d.ts +0 -9
- package/dist/frame/FrameModel.d.ts +0 -82
- package/dist/frame/ShortcutKeyHandler.d.ts +0 -37
- package/dist/frame/default/DefaultBody.vue.d.ts +0 -2
- package/dist/frame/default/DefaultFrameModel.d.ts +0 -107
- package/dist/frame/default/DefaultHeader.vue.d.ts +0 -23
- package/dist/frame/default/HeaderTab.vue.d.ts +0 -17
- package/dist/frame/default/HeaderTabListButton.vue.d.ts +0 -2
- package/dist/frame/default/HeaderTabs.vue.d.ts +0 -15
- package/dist/frame/default/SidebarMenu.vue.d.ts +0 -2
- package/dist/frame/default/SidebarMenuItem.vue.d.ts +0 -25
- package/dist/frame/default/SidebarMenuLink.vue.d.ts +0 -29
- package/dist/frame/default/SidebarMenuSearch.vue.d.ts +0 -28
- package/dist/index-DRs7QwNQ.js +0 -70174
- package/dist/modal/BSAlertModal.vue.d.ts +0 -23
- package/dist/modal/BSModalContainer.vue.d.ts +0 -2
- package/dist/modal/BSModalFrame.vue.d.ts +0 -37
- package/dist/modal/BSModalWrapper.vue.d.ts +0 -17
- package/dist/modal/BSYesNoModal.vue.d.ts +0 -25
- package/dist/modal/modalPlugin.d.ts +0 -73
- package/dist/model/CommonTypes.d.ts +0 -96
- package/dist/model/DefaultImpl.d.ts +0 -8
- package/dist/model/FieldContext.d.ts +0 -15
- package/dist/model/FilterModel.d.ts +0 -114
- package/dist/model/MoneySerializer.d.ts +0 -3
- package/dist/model/PaginatedList.d.ts +0 -29
- package/dist/model/SearchModel.d.ts +0 -22
- package/dist/notification/BSAlarmFrame.vue.d.ts +0 -26
- package/dist/notification/BSNotificationContainer.vue.d.ts +0 -2
- package/dist/notification/notificationPlugin.d.ts +0 -33
- package/dist/savepoint/SavePoint.d.ts +0 -47
- package/dist/text/i18n.d.ts +0 -28
- package/dist/util/alertUtil.d.ts +0 -1
- package/dist/util/componentUtil.d.ts +0 -40
- package/dist/util/debounceUtil.d.ts +0 -16
- package/dist/util/elementUtil.d.ts +0 -58
- package/dist/util/formatUtil.d.ts +0 -70
- package/dist/util/langUtil.d.ts +0 -3
- package/dist/util/multiLangUtil.d.ts +0 -27
- package/dist/util/routeUtil.d.ts +0 -3
- package/dist/util/typeUtil.d.ts +0 -18
- package/dist/util/waitUtil.d.ts +0 -19
- package/dist/validator/FieldValidator.d.ts +0 -45
- package/dist/validator/FormValidator.d.ts +0 -35
- package/scss/bluesea-base.scss +0 -6
- package/scss/bluesea.scss +0 -2
- package/scss/component.scss +0 -515
- package/scss/font.scss +0 -3
- package/scss/frame/default.scss +0 -293
- package/scss/layout.scss +0 -192
- package/scss/reset.scss +0 -68
- package/scss/rich-text-container.scss +0 -113
- package/scss/rich-text-content.scss +0 -137
- package/scss/transition.scss +0 -108
- package/scss/utility.scss +0 -816
- package/scss/variable.scss +0 -347
- package/text/bluesea_text_en.json +0 -956
- package/text/bluesea_text_fr.json +0 -956
- package/text/bluesea_text_ja.json +0 -956
- package/text/bluesea_text_ko.json +0 -956
- 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
|
-
};
|
package/dist/util/langUtil.d.ts
DELETED
|
@@ -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;
|
package/dist/util/routeUtil.d.ts
DELETED
package/dist/util/typeUtil.d.ts
DELETED
|
@@ -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;
|
package/dist/util/waitUtil.d.ts
DELETED
|
@@ -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;
|
package/scss/bluesea-base.scss
DELETED
package/scss/bluesea.scss
DELETED