@dialpad/dialtone-vue 3.99.0 → 3.99.2

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 (154) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +14 -0
  3. package/dist/dialtone-vue.cjs +1 -1
  4. package/dist/dialtone-vue.js +5 -5
  5. package/dist/{emoji-ZUS2Xysh.js → emoji-3pj6EkFO.js} +5718 -5631
  6. package/dist/emoji-o92If4FT.cjs +1 -0
  7. package/dist/emoji.cjs +1 -1
  8. package/dist/emoji.js +3 -3
  9. package/dist/{emoji_picker-3kUtetnz.js → emoji_picker-cEd7jpeQ.js} +1 -1
  10. package/dist/{emoji_picker-BwwTFuPb.cjs → emoji_picker-gShCFyCG.cjs} +1 -1
  11. package/dist/{emoji_text_wrapper-VoDb04sP.js → emoji_text_wrapper-EQ1gDwv9.js} +1 -1
  12. package/dist/{emoji_text_wrapper-2Ia2nUgQ.cjs → emoji_text_wrapper-miQbnssk.cjs} +1 -1
  13. package/dist/message_input.cjs +1 -1
  14. package/dist/message_input.js +3 -3
  15. package/dist/{stack-s3MR-6wx.cjs → stack-Mxp-S0Wp.cjs} +1 -1
  16. package/dist/{stack--ux25GPn.js → stack-sgBuXZ5V.js} +22 -18
  17. package/package.json +7 -5
  18. package/dist/emoji-QX8MEKZV.cjs +0 -1
  19. package/dist/types/common/constants.d.ts +0 -56
  20. package/dist/types/common/constants.d.ts.map +0 -1
  21. package/dist/types/common/mixins/dom.d.ts +0 -25
  22. package/dist/types/common/mixins/dom.d.ts.map +0 -1
  23. package/dist/types/common/mixins/input.d.ts +0 -199
  24. package/dist/types/common/mixins/input.d.ts.map +0 -1
  25. package/dist/types/common/mixins/input_group.d.ts +0 -102
  26. package/dist/types/common/mixins/input_group.d.ts.map +0 -1
  27. package/dist/types/common/mixins/keyboard_list_navigation.d.ts +0 -58
  28. package/dist/types/common/mixins/keyboard_list_navigation.d.ts.map +0 -1
  29. package/dist/types/common/mixins/modal.d.ts +0 -43
  30. package/dist/types/common/mixins/modal.d.ts.map +0 -1
  31. package/dist/types/common/mixins/skeleton.d.ts +0 -11
  32. package/dist/types/common/mixins/skeleton.d.ts.map +0 -1
  33. package/dist/types/common/mixins/sr_only_close_button.d.ts +0 -30
  34. package/dist/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
  35. package/dist/types/common/sr_only_close_button.vue.d.ts +0 -27
  36. package/dist/types/common/sr_only_close_button.vue.d.ts.map +0 -1
  37. package/dist/types/common/storybook_utils.d.ts +0 -19
  38. package/dist/types/common/storybook_utils.d.ts.map +0 -1
  39. package/dist/types/common/utils.d.ts +0 -118
  40. package/dist/types/common/utils.d.ts.map +0 -1
  41. package/dist/types/common/validators.d.ts +0 -6
  42. package/dist/types/common/validators.d.ts.map +0 -1
  43. package/dist/types/components/avatar/avatar.vue.d.ts +0 -369
  44. package/dist/types/components/avatar/avatar.vue.d.ts.map +0 -1
  45. package/dist/types/components/avatar/avatar_constants.d.ts +0 -51
  46. package/dist/types/components/avatar/avatar_constants.d.ts.map +0 -1
  47. package/dist/types/components/avatar/utils.d.ts +0 -2
  48. package/dist/types/components/avatar/utils.d.ts.map +0 -1
  49. package/dist/types/components/badge/badge.vue.d.ts +0 -186
  50. package/dist/types/components/badge/badge.vue.d.ts.map +0 -1
  51. package/dist/types/components/badge/badge_constants.d.ts +0 -39
  52. package/dist/types/components/badge/badge_constants.d.ts.map +0 -1
  53. package/dist/types/components/banner/banner.vue.d.ts +0 -250
  54. package/dist/types/components/banner/banner.vue.d.ts.map +0 -1
  55. package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +0 -56
  56. package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +0 -1
  57. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +0 -59
  58. package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +0 -1
  59. package/dist/types/components/breadcrumbs/breadcrumbs_constants.d.ts +0 -3
  60. package/dist/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +0 -1
  61. package/dist/types/components/button/button.vue.d.ts +0 -324
  62. package/dist/types/components/button/button.vue.d.ts.map +0 -1
  63. package/dist/types/components/button/button_constants.d.ts +0 -55
  64. package/dist/types/components/button/button_constants.d.ts.map +0 -1
  65. package/dist/types/components/button/index.d.ts +0 -3
  66. package/dist/types/components/button/index.d.ts.map +0 -1
  67. package/dist/types/components/button_group/button_group.vue.d.ts +0 -29
  68. package/dist/types/components/button_group/button_group.vue.d.ts.map +0 -1
  69. package/dist/types/components/button_group/button_group_constants.d.ts +0 -6
  70. package/dist/types/components/button_group/button_group_constants.d.ts.map +0 -1
  71. package/dist/types/components/button_group/buttons_decorator.vue.d.ts +0 -3
  72. package/dist/types/components/button_group/buttons_decorator.vue.d.ts.map +0 -1
  73. package/dist/types/components/card/card.vue.d.ts +0 -86
  74. package/dist/types/components/card/card.vue.d.ts.map +0 -1
  75. package/dist/types/components/checkbox/checkbox.vue.d.ts +0 -164
  76. package/dist/types/components/checkbox/checkbox.vue.d.ts.map +0 -1
  77. package/dist/types/components/checkbox/checkbox_constants.d.ts +0 -10
  78. package/dist/types/components/checkbox/checkbox_constants.d.ts.map +0 -1
  79. package/dist/types/components/checkbox/index.d.ts +0 -2
  80. package/dist/types/components/checkbox/index.d.ts.map +0 -1
  81. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +0 -254
  82. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts.map +0 -1
  83. package/dist/types/components/checkbox_group/checkboxes_decorator.vue.d.ts +0 -3
  84. package/dist/types/components/checkbox_group/checkboxes_decorator.vue.d.ts.map +0 -1
  85. package/dist/types/components/chip/chip.vue.d.ts +0 -162
  86. package/dist/types/components/chip/chip.vue.d.ts.map +0 -1
  87. package/dist/types/components/chip/chip_constants.d.ts +0 -28
  88. package/dist/types/components/chip/chip_constants.d.ts.map +0 -1
  89. package/dist/types/components/codeblock/codeblock.vue.d.ts +0 -13
  90. package/dist/types/components/codeblock/codeblock.vue.d.ts.map +0 -1
  91. package/dist/types/components/collapsible/collapsible.vue.d.ts +0 -203
  92. package/dist/types/components/collapsible/collapsible.vue.d.ts.map +0 -1
  93. package/dist/types/components/collapsible/collapsible_lazy_show.vue.d.ts +0 -86
  94. package/dist/types/components/collapsible/collapsible_lazy_show.vue.d.ts.map +0 -1
  95. package/dist/types/components/icon/icon.vue.d.ts +0 -72
  96. package/dist/types/components/icon/icon.vue.d.ts.map +0 -1
  97. package/dist/types/components/icon/icon_constants.d.ts +0 -15
  98. package/dist/types/components/icon/icon_constants.d.ts.map +0 -1
  99. package/dist/types/components/icon/index.d.ts +0 -3
  100. package/dist/types/components/icon/index.d.ts.map +0 -1
  101. package/dist/types/components/input_group/index.d.ts +0 -2
  102. package/dist/types/components/input_group/index.d.ts.map +0 -1
  103. package/dist/types/components/input_group/input_group.vue.d.ts +0 -173
  104. package/dist/types/components/input_group/input_group.vue.d.ts.map +0 -1
  105. package/dist/types/components/item_layout/index.d.ts +0 -2
  106. package/dist/types/components/item_layout/index.d.ts.map +0 -1
  107. package/dist/types/components/item_layout/item_layout.vue.d.ts +0 -21
  108. package/dist/types/components/item_layout/item_layout.vue.d.ts.map +0 -1
  109. package/dist/types/components/lazy_show/index.d.ts +0 -2
  110. package/dist/types/components/lazy_show/index.d.ts.map +0 -1
  111. package/dist/types/components/lazy_show/lazy_show.vue.d.ts +0 -65
  112. package/dist/types/components/lazy_show/lazy_show.vue.d.ts.map +0 -1
  113. package/dist/types/components/link/index.d.ts +0 -3
  114. package/dist/types/components/link/index.d.ts.map +0 -1
  115. package/dist/types/components/link/link.vue.d.ts +0 -34
  116. package/dist/types/components/link/link.vue.d.ts.map +0 -1
  117. package/dist/types/components/link/link_constants.d.ts +0 -21
  118. package/dist/types/components/link/link_constants.d.ts.map +0 -1
  119. package/dist/types/components/list_item/index.d.ts +0 -3
  120. package/dist/types/components/list_item/index.d.ts.map +0 -1
  121. package/dist/types/components/list_item/list_item.vue.d.ts +0 -151
  122. package/dist/types/components/list_item/list_item.vue.d.ts.map +0 -1
  123. package/dist/types/components/list_item/list_item_constants.d.ts +0 -15
  124. package/dist/types/components/list_item/list_item_constants.d.ts.map +0 -1
  125. package/dist/types/components/notice/index.d.ts +0 -6
  126. package/dist/types/components/notice/index.d.ts.map +0 -1
  127. package/dist/types/components/notice/notice.vue.d.ts +0 -177
  128. package/dist/types/components/notice/notice.vue.d.ts.map +0 -1
  129. package/dist/types/components/notice/notice_action.vue.d.ts +0 -66
  130. package/dist/types/components/notice/notice_action.vue.d.ts.map +0 -1
  131. package/dist/types/components/notice/notice_constants.d.ts +0 -8
  132. package/dist/types/components/notice/notice_constants.d.ts.map +0 -1
  133. package/dist/types/components/notice/notice_content.vue.d.ts +0 -58
  134. package/dist/types/components/notice/notice_content.vue.d.ts.map +0 -1
  135. package/dist/types/components/notice/notice_icon.vue.d.ts +0 -30
  136. package/dist/types/components/notice/notice_icon.vue.d.ts.map +0 -1
  137. package/dist/types/components/presence/index.d.ts +0 -3
  138. package/dist/types/components/presence/index.d.ts.map +0 -1
  139. package/dist/types/components/presence/presence.vue.d.ts +0 -46
  140. package/dist/types/components/presence/presence.vue.d.ts.map +0 -1
  141. package/dist/types/components/presence/presence_constants.d.ts +0 -8
  142. package/dist/types/components/presence/presence_constants.d.ts.map +0 -1
  143. package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +0 -181
  144. package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts.map +0 -1
  145. package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +0 -136
  146. package/dist/types/components/skeleton/skeleton-shape.vue.d.ts.map +0 -1
  147. package/dist/types/components/skeleton/skeleton-text.vue.d.ts +0 -145
  148. package/dist/types/components/skeleton/skeleton-text.vue.d.ts.map +0 -1
  149. package/dist/types/components/skeleton/skeleton_constants.d.ts +0 -27
  150. package/dist/types/components/skeleton/skeleton_constants.d.ts.map +0 -1
  151. package/dist/types/components/validation_messages/index.d.ts +0 -2
  152. package/dist/types/components/validation_messages/index.d.ts.map +0 -1
  153. package/dist/types/components/validation_messages/validation_messages.vue.d.ts +0 -64
  154. package/dist/types/components/validation_messages/validation_messages.vue.d.ts.map +0 -1
@@ -1,118 +0,0 @@
1
- export function getUniqueString(prefix?: string): string;
2
- /**
3
- * Returns a random element from array
4
- * @param array - the array to return a random element from
5
- * @param {string} seed - use a string to seed the randomization, so it returns the same element each time
6
- * based on that string.
7
- * @returns {*} - the random element
8
- */
9
- export function getRandomElement(array: any, seed: string): any;
10
- /**
11
- * Returns a hash code for a string.
12
- * (Compatible to Java's String.hashCode())
13
- * We use this algo to be in sync with android.
14
- *
15
- * The hash code for a string object is computed as
16
- * s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
17
- * using number arithmetic, where s[i] is the i th character
18
- * of the given string, n is the length of the string,
19
- * and ^ indicates exponentiation.
20
- * (The hash value of the empty string is zero.)
21
- *
22
- * @param {string} str a string
23
- * @return {number} a hash code value for the given string.
24
- */
25
- export function javaHashCode(str: string): number;
26
- /**
27
- * Generate a random integer
28
- * @param {number} max - max range of integer to generate
29
- * @returns {number} randomly generated integer between 0 and max
30
- */
31
- export function getRandomInt(max: number): number;
32
- export function formatMessages(messages: any): any;
33
- export function filterFormattedMessages(formattedMessages: any): any;
34
- export function getValidationState(formattedMessages: any): string | null;
35
- export function hasFormattedMessageOfType(formattedMessages: any, messageType: any): any;
36
- export function findFirstFocusableNode(element: any): any;
37
- export function hasSlotContent(slot: any, slotProps?: {}): any;
38
- export function debounce(func: any, timeout?: number): void;
39
- /**
40
- * Checks if the element is out of the viewport
41
- * https://gomakethings.com/how-to-check-if-any-part-of-an-element-is-out-of-the-viewport-with-vanilla-js/
42
- * @param {HTMLElement} element The element to check
43
- * @return {Object} A set of booleans for each side of the element
44
- */
45
- export function isOutOfViewPort(element: HTMLElement): Object;
46
- /**
47
- * Match phone numbers, e.g. "765-8813", "(778) 765-8813" or "+17787658813".
48
- * @param {number} minLength
49
- * @param {number} maxLength
50
- * @returns {RegExp}
51
- */
52
- export function getPhoneNumberRegex(minLength?: number, maxLength?: number): RegExp;
53
- /**
54
- * Check if a string is a phone number. Validates only exact matches.
55
- * @param {string|number} input
56
- * @returns {boolean}
57
- */
58
- export function isPhoneNumber(input: string | number): boolean;
59
- /**
60
- * Check if a string is an URL. Validates only exact matches.
61
- * @param {string} input
62
- * @returns {boolean}
63
- */
64
- export function isURL(input: string): boolean;
65
- /**
66
- * Check if a string is an email address. Validates only exact matches.
67
- * @param {string} input
68
- * @returns {boolean}
69
- */
70
- export function isEmailAddress(input: string): boolean;
71
- /**
72
- * Concatenate a string removing null or undefined elements
73
- * avoiding parsing them as string with template strings
74
- * @param {Array} elements
75
- * @returns {String}
76
- */
77
- export function safeConcatStrings(elements: any[]): string;
78
- /**
79
- * Locale safe function to capitalize the first letter of a string.
80
- * @param {string} str the string to capitalize the first letter of
81
- * @param {string} locale a string representing the locale to be used. Defaults to 'en-US'
82
- * @returns The passed in string with the first letter capitalized
83
- */
84
- export function capitalizeFirstLetter(str: string, locale?: string): string;
85
- export function htmlFragment(props: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
86
- [key: string]: any;
87
- }>;
88
- export function flushPromises(): Promise<any>;
89
- export function kebabCaseToPascalCase(string: any): string;
90
- export function pascalCaseToKebabCase(string: any): string;
91
- export function extractVueListeners(attrs: any): {
92
- [k: string]: any;
93
- };
94
- export const linkRegex: RegExp;
95
- declare namespace _default {
96
- export { getUniqueString };
97
- export { getRandomElement };
98
- export { getRandomInt };
99
- export { formatMessages };
100
- export { filterFormattedMessages };
101
- export { hasFormattedMessageOfType };
102
- export { getValidationState };
103
- export { htmlFragment };
104
- export { flushPromises };
105
- export { kebabCaseToPascalCase };
106
- export { extractVueListeners };
107
- export { debounce };
108
- export { isOutOfViewPort };
109
- export { getPhoneNumberRegex };
110
- export { linkRegex };
111
- export { isEmailAddress };
112
- export { isPhoneNumber };
113
- export { isURL };
114
- export { safeConcatStrings };
115
- export { capitalizeFirstLetter };
116
- }
117
- export default _default;
118
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../common/utils.js"],"names":[],"mappings":"AAyBA,yDAEC;AAED;;;;;;GAMG;AACH,mDAJW,MAAM,OAWhB;AAED;;;;;;;;;;;;;;GAcG;AACH,kCAHW,MAAM,GACL,MAAM,CASjB;AAED;;;;GAIG;AACH,kCAHW,MAAM,GACJ,MAAM,CAIlB;AAED,mDAeC;AAED,qEAQC;AAOD,0EAgBC;AAED,yFAMC;AAED,0DAEC;AAqBD,+DAcC;AAoCD,4DAGC;AAED;;;;;GAKG;AAEH,yCAJY,WAAW,GACX,MAAM,CAejB;AAoED;;;;;GAKG;AACH,gDAJW,MAAM,cACN,MAAM,GACJ,MAAM,CAmBlB;AAeD;;;;GAIG;AACH,qCAHW,MAAM,GAAC,MAAM,GACX,OAAO,CAMnB;AAED;;;;GAIG;AACH,6BAHW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;GAIG;AACH,sCAHW,MAAM,GACJ,OAAO,CAKnB;AAED;;;;;GAKG;AACH,2DAEC;AAED;;;;;GAKG;AACH,2CAJW,MAAM,WACN,MAAM,UAKhB;AArPM;;GAEN;AAEM,8CAIN;AA4BM,oDAFM,MAAM,CAOlB;AAOM,oDAFM,MAAM,CAMlB;AAEM;;EAIN;AA+HD,+BAQE"}
@@ -1,6 +0,0 @@
1
- export function validationMessageValidator(rawMessages: any): any;
2
- declare namespace _default {
3
- export { validationMessageValidator };
4
- }
5
- export default _default;
6
- //# sourceMappingURL=validators.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../common/validators.js"],"names":[],"mappings":"AAIA,kEAgBC"}
@@ -1,369 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- /**
3
- * Id of the avatar content wrapper element
4
- */
5
- id: {
6
- type: StringConstructor;
7
- default(): string;
8
- };
9
- /**
10
- * Pass in a seed to get the random color generation based on that string. For example if you pass in a
11
- * user ID as the string it will return the same randomly generated colors every time for that user.
12
- */
13
- seed: {
14
- type: StringConstructor;
15
- default: undefined;
16
- };
17
- /**
18
- * Set the avatar background to a specific color. If undefined will randomize the color which can be deterministic
19
- * if the seed prop is set.
20
- */
21
- color: {
22
- type: StringConstructor;
23
- default: undefined;
24
- };
25
- /**
26
- * The size of the avatar
27
- * @values xs, sm, md, lg, xl
28
- */
29
- size: {
30
- type: StringConstructor;
31
- default: string;
32
- validator: (size: unknown) => boolean;
33
- };
34
- /**
35
- * Used to customize the avatar container
36
- */
37
- avatarClass: {
38
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
39
- default: string;
40
- };
41
- /**
42
- * Set classes on the avatar canvas. Wrapper around the core avatar image.
43
- */
44
- canvasClass: {
45
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
46
- default: string;
47
- };
48
- /**
49
- * Pass through classes. Used to customize the avatar icon
50
- */
51
- iconClass: {
52
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
53
- default: string;
54
- };
55
- /**
56
- * Determines whether to show the presence indicator for
57
- * Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
58
- * or 'active'. By default, it's null and nothing is shown.
59
- * @values null, busy, away, offline, active
60
- */
61
- presence: {
62
- type: StringConstructor;
63
- default: string;
64
- validator: (state: unknown) => boolean;
65
- };
66
- /**
67
- * A set of props to be passed into the presence component.
68
- */
69
- presenceProps: {
70
- type: ObjectConstructor;
71
- default: () => {};
72
- };
73
- /**
74
- * Determines whether to show a group avatar.
75
- * Limit to 2 digits max, more than 99 will be rendered as “99+”.
76
- * if the number is 1 or less it would just show the regular avatar as if group had not been set.
77
- */
78
- group: {
79
- type: NumberConstructor;
80
- default: undefined;
81
- validator: (group: unknown) => boolean;
82
- };
83
- /**
84
- * The icon that overlays the avatar
85
- */
86
- overlayIcon: {
87
- type: StringConstructor;
88
- default: string;
89
- };
90
- /**
91
- * The text that overlays the avatar
92
- */
93
- overlayText: {
94
- type: StringConstructor;
95
- default: string;
96
- };
97
- /**
98
- * Used to customize the avatar overlay
99
- */
100
- overlayClass: {
101
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
102
- default: string;
103
- };
104
- /**
105
- * Source of the image
106
- */
107
- imageSrc: {
108
- type: StringConstructor;
109
- default: string;
110
- };
111
- /**
112
- * Alt attribute of the image, by default
113
- * it'd be the full name
114
- */
115
- imageAlt: {
116
- type: StringConstructor;
117
- default: string;
118
- };
119
- /**
120
- * Icon name to be displayed on the avatar
121
- */
122
- iconName: {
123
- type: StringConstructor;
124
- default: undefined;
125
- validator: (name: unknown) => boolean;
126
- };
127
- /**
128
- * Icon size to be displayed on the avatar
129
- * @values 100, 200, 300, 400, 500, 600, 700, 800
130
- */
131
- iconSize: {
132
- type: StringConstructor;
133
- default: string;
134
- validator: (size: unknown) => boolean;
135
- };
136
- /**
137
- * Full name used to extract initials and set alt attribute.
138
- */
139
- fullName: {
140
- type: StringConstructor;
141
- default: string;
142
- };
143
- /**
144
- * Makes the avatar focusable and clickable,
145
- * emits a click event when clicked.
146
- */
147
- clickable: {
148
- type: BooleanConstructor;
149
- default: boolean;
150
- };
151
- }, any, {
152
- AVATAR_SIZE_MODIFIERS: {
153
- xs: string;
154
- sm: string;
155
- md: string;
156
- lg: string;
157
- xl: string;
158
- };
159
- AVATAR_KIND_MODIFIERS: {
160
- default: string;
161
- icon: string;
162
- initials: string;
163
- };
164
- AVATAR_PRESENCE_SIZE_MODIFIERS: {
165
- md: string;
166
- lg: string;
167
- };
168
- AVATAR_ICON_SIZES: {
169
- xs: string;
170
- sm: string;
171
- md: string;
172
- lg: string;
173
- xl: string;
174
- };
175
- imageLoadedSuccessfully: null;
176
- formattedInitials: string;
177
- initializing: boolean;
178
- }, {
179
- isNotIconType(): boolean;
180
- avatarClasses(): any[];
181
- overlayClasses(): (string | Record<string, any> | unknown[])[];
182
- showGroup(): boolean;
183
- formattedGroup(): number | "99+" | undefined;
184
- validatedSize(): string;
185
- showImage(): string | false;
186
- buttonAriaLabel(): unknown;
187
- }, {
188
- setImageListeners(): Promise<void>;
189
- formatInitials(string: any): void;
190
- getColor(): any;
191
- _loadedImageEventHandler(el: any): void;
192
- _erroredImageEventHandler(el: any): void;
193
- validateProps(): void;
194
- handleClick(e: any): void;
195
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
196
- /**
197
- * Id of the avatar content wrapper element
198
- */
199
- id: {
200
- type: StringConstructor;
201
- default(): string;
202
- };
203
- /**
204
- * Pass in a seed to get the random color generation based on that string. For example if you pass in a
205
- * user ID as the string it will return the same randomly generated colors every time for that user.
206
- */
207
- seed: {
208
- type: StringConstructor;
209
- default: undefined;
210
- };
211
- /**
212
- * Set the avatar background to a specific color. If undefined will randomize the color which can be deterministic
213
- * if the seed prop is set.
214
- */
215
- color: {
216
- type: StringConstructor;
217
- default: undefined;
218
- };
219
- /**
220
- * The size of the avatar
221
- * @values xs, sm, md, lg, xl
222
- */
223
- size: {
224
- type: StringConstructor;
225
- default: string;
226
- validator: (size: unknown) => boolean;
227
- };
228
- /**
229
- * Used to customize the avatar container
230
- */
231
- avatarClass: {
232
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
233
- default: string;
234
- };
235
- /**
236
- * Set classes on the avatar canvas. Wrapper around the core avatar image.
237
- */
238
- canvasClass: {
239
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
240
- default: string;
241
- };
242
- /**
243
- * Pass through classes. Used to customize the avatar icon
244
- */
245
- iconClass: {
246
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
247
- default: string;
248
- };
249
- /**
250
- * Determines whether to show the presence indicator for
251
- * Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
252
- * or 'active'. By default, it's null and nothing is shown.
253
- * @values null, busy, away, offline, active
254
- */
255
- presence: {
256
- type: StringConstructor;
257
- default: string;
258
- validator: (state: unknown) => boolean;
259
- };
260
- /**
261
- * A set of props to be passed into the presence component.
262
- */
263
- presenceProps: {
264
- type: ObjectConstructor;
265
- default: () => {};
266
- };
267
- /**
268
- * Determines whether to show a group avatar.
269
- * Limit to 2 digits max, more than 99 will be rendered as “99+”.
270
- * if the number is 1 or less it would just show the regular avatar as if group had not been set.
271
- */
272
- group: {
273
- type: NumberConstructor;
274
- default: undefined;
275
- validator: (group: unknown) => boolean;
276
- };
277
- /**
278
- * The icon that overlays the avatar
279
- */
280
- overlayIcon: {
281
- type: StringConstructor;
282
- default: string;
283
- };
284
- /**
285
- * The text that overlays the avatar
286
- */
287
- overlayText: {
288
- type: StringConstructor;
289
- default: string;
290
- };
291
- /**
292
- * Used to customize the avatar overlay
293
- */
294
- overlayClass: {
295
- type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
296
- default: string;
297
- };
298
- /**
299
- * Source of the image
300
- */
301
- imageSrc: {
302
- type: StringConstructor;
303
- default: string;
304
- };
305
- /**
306
- * Alt attribute of the image, by default
307
- * it'd be the full name
308
- */
309
- imageAlt: {
310
- type: StringConstructor;
311
- default: string;
312
- };
313
- /**
314
- * Icon name to be displayed on the avatar
315
- */
316
- iconName: {
317
- type: StringConstructor;
318
- default: undefined;
319
- validator: (name: unknown) => boolean;
320
- };
321
- /**
322
- * Icon size to be displayed on the avatar
323
- * @values 100, 200, 300, 400, 500, 600, 700, 800
324
- */
325
- iconSize: {
326
- type: StringConstructor;
327
- default: string;
328
- validator: (size: unknown) => boolean;
329
- };
330
- /**
331
- * Full name used to extract initials and set alt attribute.
332
- */
333
- fullName: {
334
- type: StringConstructor;
335
- default: string;
336
- };
337
- /**
338
- * Makes the avatar focusable and clickable,
339
- * emits a click event when clicked.
340
- */
341
- clickable: {
342
- type: BooleanConstructor;
343
- default: boolean;
344
- };
345
- }>> & {
346
- onClick?: ((...args: any[]) => any) | undefined;
347
- }, {
348
- presence: string;
349
- id: string;
350
- size: string;
351
- iconSize: string;
352
- fullName: string;
353
- imageSrc: string;
354
- seed: string;
355
- color: string;
356
- avatarClass: string | Record<string, any> | unknown[];
357
- canvasClass: string | Record<string, any> | unknown[];
358
- iconClass: string | Record<string, any> | unknown[];
359
- presenceProps: Record<string, any>;
360
- group: number;
361
- overlayIcon: string;
362
- overlayText: string;
363
- overlayClass: string | Record<string, any> | unknown[];
364
- imageAlt: string;
365
- iconName: string;
366
- clickable: boolean;
367
- }, {}>;
368
- export default _default;
369
- //# sourceMappingURL=avatar.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar.vue.d.ts","sourceRoot":"","sources":["../../../../components/avatar/avatar.vue.js"],"names":[],"mappings":";IA+BI;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;;;OAKG;;;;;;IASH;;OAEG;;;;;IAMH;;;;OAIG;;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;IAOH;;;OAGG;;;;;;IAOH;;OAEG;;;;;IAMH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IApKH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;IAMH;;;OAGG;;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;;;OAKG;;;;;;IASH;;OAEG;;;;;IAMH;;;;OAIG;;;;;;IAOH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;OAEG;;;;;IAMH;;;OAGG;;;;;IAMH;;OAEG;;;;;;IAOH;;;OAGG;;;;;;IAOH;;OAEG;;;;;IAMH;;;OAGG"}
@@ -1,51 +0,0 @@
1
- export namespace AVATAR_SIZE_MODIFIERS {
2
- let xs: string;
3
- let sm: string;
4
- let md: string;
5
- let lg: string;
6
- let xl: string;
7
- }
8
- export namespace AVATAR_KIND_MODIFIERS {
9
- let _default: string;
10
- export { _default as default };
11
- export let icon: string;
12
- export let initials: string;
13
- }
14
- export namespace AVATAR_PRESENCE_SIZE_MODIFIERS {
15
- let md_1: string;
16
- export { md_1 as md };
17
- let lg_1: string;
18
- export { lg_1 as lg };
19
- }
20
- export namespace AVATAR_PRESENCE_STATES {
21
- let NONE: string;
22
- let BUSY: string;
23
- let AWAY: string;
24
- let OFFLINE: string;
25
- let ACTIVE: string;
26
- }
27
- export namespace AVATAR_ICON_SIZES {
28
- let xs_1: string;
29
- export { xs_1 as xs };
30
- let sm_1: string;
31
- export { sm_1 as sm };
32
- let md_2: string;
33
- export { md_2 as md };
34
- let lg_2: string;
35
- export { lg_2 as lg };
36
- let xl_1: string;
37
- export { xl_1 as xl };
38
- }
39
- export const AVATAR_COLORS: string[];
40
- export function AVATAR_GROUP_VALIDATOR(group: any): boolean;
41
- declare namespace _default {
42
- export { AVATAR_SIZE_MODIFIERS };
43
- export { AVATAR_KIND_MODIFIERS };
44
- export { AVATAR_PRESENCE_SIZE_MODIFIERS };
45
- export { AVATAR_PRESENCE_STATES };
46
- export { AVATAR_ICON_SIZES };
47
- export { AVATAR_COLORS };
48
- export { AVATAR_GROUP_VALIDATOR };
49
- }
50
- export default _default;
51
- //# sourceMappingURL=avatar_constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"avatar_constants.d.ts","sourceRoot":"","sources":["../../../../components/avatar/avatar_constants.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qCAmBE;AAEK,4DAAmD"}
@@ -1,2 +0,0 @@
1
- export function extractInitialsFromName(fullName: any): string;
2
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../components/avatar/utils.js"],"names":[],"mappings":"AAAO,+DAUN"}