@fewangsit/wangsvue-fats 1.0.1-rc.3 → 1.0.1-rc.5
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/components/badge/Badge.vue.d.ts +1 -1
- package/components/basetree/BaseTree.vue.d.ts +1 -1
- package/components/button/Button.vue.d.ts +1 -1
- package/components/buttonImportExcel/ButtonImportExcel.vue.d.ts +1 -1
- package/components/buttonradio/ButtonRadio.vue.d.ts +1 -1
- package/components/buttonselecttree/ButtonSelectTree.vue.d.ts +1 -1
- package/components/buttonsplit/ButtonSplit.vue.d.ts +7 -6
- package/components/buttonsync/ButtonSync.vue.d.ts +1 -1
- package/components/calendar/Calendar.vue.d.ts +1 -1
- package/components/card/Card.vue.d.ts +1 -1
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/customcolumn/CustomColumn.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialogconfirm/DialogConfirm.vue.d.ts +1 -1
- package/components/dialogform/DialogForm.vue.d.ts +1 -1
- package/components/dialogselecttree/DialogSelectTree.vue.d.ts +1 -1
- package/components/dropdown/Dropdown.vue.d.ts +6 -1
- package/components/editor/Editor.vue.d.ts +1 -1
- package/components/fileupload/FileUpload.vue.d.ts +1 -1
- package/components/form/Form.vue.d.ts +1 -1
- package/components/icon/Icon.vue.d.ts +1 -1
- package/components/image/Image.vue.d.ts +1 -1
- package/components/imagecompressor/ImageCompressor.vue.d.ts +1 -1
- package/components/inlinemessage/InlineMessage.vue.d.ts +1 -1
- package/components/inputbadge/InputBadge.vue.d.ts +1 -1
- package/components/inputcurrency/InputCurrency.vue.d.ts +1 -1
- package/components/inputsearch/InputSearch.vue.d.ts +1 -1
- package/components/inputtext/InputText.vue.d.ts +1 -1
- package/components/inputurl/InputURL.vue.d.ts +1 -1
- package/components/invisiblefield/InvisibleField.vue.d.ts +1 -1
- package/components/languagedropdown/LanguageDropdown.vue.d.ts +1 -1
- package/components/languageswitcher/LanguageSwitcher.vue.d.ts +1 -1
- package/components/litedropdown/LiteDropdown.vue.d.ts +3 -3
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/multiselect/MultiSelect.vue.d.ts +1 -1
- package/components/overlaypanel/OverlayPanel.vue.d.ts +1 -1
- package/components/tabmenu/TabMenu.vue.d.ts +1 -1
- package/components/tagtype/TagType.vue.d.ts +1 -1
- package/components/timeline/Timeline.vue.d.ts +1 -1
- package/components/toast/Toast.vue.d.ts +1 -1
- package/components/toggleswitch/ToggleSwitch.vue.d.ts +1 -1
- package/components/tree/Tree.vue.d.ts +1 -2
- package/components/username/UserName.vue.d.ts +1 -1
- package/components/userwithicon/UserWithIcon.vue.d.ts +1 -1
- package/package.json +1 -1
- package/stats.html +1 -1
- package/utils/index.d.ts +1 -0
- package/utils/textFormatter.util.d.ts +29 -0
- package/wangsvue-fats.js +2269 -2255
- package/wangsvue-fats.system.js +61 -61
package/utils/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './role.util';
|
|
|
3
3
|
export * from './listenSidebarChanges.util';
|
|
4
4
|
export { isEmptyObject, getNestedPropertyValue } from '../utils/object.util';
|
|
5
5
|
export { formatDate, formatDateReadable } from '../utils/date.util';
|
|
6
|
+
export { formatUserName } from '../utils/textFormatter.util';
|
|
6
7
|
export { exportToExcel } from '../utils/exportToExcel.util';
|
|
7
8
|
export { default as flattenTreeNodeChildren } from '../components/tree/helpers/flattenTreeNodeChildren.helper';
|
|
8
9
|
export { default as getStatusSeverity } from './getStatusSeverity.util';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const formatUserName: (name?: string) => string;
|
|
2
|
+
export declare const getInititalName: (
|
|
3
|
+
existing: string[],
|
|
4
|
+
fullName?: string,
|
|
5
|
+
maxLength?: number,
|
|
6
|
+
) => string;
|
|
7
|
+
export declare const getInitialsByConsonant: (
|
|
8
|
+
existingInitials: string[],
|
|
9
|
+
fullName: string,
|
|
10
|
+
maxLength: number,
|
|
11
|
+
) => string;
|
|
12
|
+
export declare const getInitialsBy3FirstLetter: (
|
|
13
|
+
existingInitials: string[],
|
|
14
|
+
fullName: string,
|
|
15
|
+
maxLength: number,
|
|
16
|
+
) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Formats the label with the appropriate article ("a" or "an") based on its vowel sound.
|
|
19
|
+
* This function checks if the label starts with a vowel or has a special case for silent "h" words.
|
|
20
|
+
* It ensures that the correct article ("a" or "an") is used according to English pronunciation rules.
|
|
21
|
+
*
|
|
22
|
+
* For example:
|
|
23
|
+
* - "hour" will be prefixed with "an" (due to the silent "h").
|
|
24
|
+
* - "unicorn" will be prefixed with "a" (due to the "u" sound).
|
|
25
|
+
*
|
|
26
|
+
* @param {string} [label] - The label to be formatted. If no label is provided, returns an empty string.
|
|
27
|
+
* @returns {string} The label prefixed with the appropriate article ("a" or "an").
|
|
28
|
+
*/
|
|
29
|
+
export declare const formatVowelSoundLabel: (label?: string) => string;
|