@dialpad/dialtone-vue 2.109.1 → 2.110.1
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/CHANGELOG.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/dialtone-vue.cjs +5 -5
- package/dist/dialtone-vue.js +1309 -1137
- package/dist/directives.js +1 -1
- package/dist/{emoji-k30EufQP.js → emoji-5ohx0_fO.js} +1 -1
- package/dist/emoji.js +4 -4
- package/dist/{emoji_picker-phIBLWjO.js → emoji_picker-Xo-nGBB9.js} +2 -2
- package/dist/{emoji_text_wrapper-KU3Kyfko.js → emoji_text_wrapper-ySpZj2Hd.js} +2 -2
- package/dist/message_input.cjs +1 -1
- package/dist/message_input.js +4 -4
- package/dist/{stack-klSxDym-.js → stack-bbvMVTEH.js} +221 -165
- package/dist/{stack-Xl6jQs_C.cjs → stack-x_udRwmv.cjs} +2 -2
- package/dist/{tooltip-PDBwUvGD.js → tooltip-UOWkfPpb.js} +9 -9
- package/package.json +2 -2
- package/dist/types/common/constants.d.ts +0 -56
- package/dist/types/common/constants.d.ts.map +0 -1
- package/dist/types/common/mixins/dom.d.ts +0 -25
- package/dist/types/common/mixins/dom.d.ts.map +0 -1
- package/dist/types/common/mixins/input.d.ts +0 -199
- package/dist/types/common/mixins/input.d.ts.map +0 -1
- package/dist/types/common/mixins/input_group.d.ts +0 -101
- package/dist/types/common/mixins/input_group.d.ts.map +0 -1
- package/dist/types/common/mixins/keyboard_list_navigation.d.ts +0 -58
- package/dist/types/common/mixins/keyboard_list_navigation.d.ts.map +0 -1
- package/dist/types/common/mixins/modal.d.ts +0 -44
- package/dist/types/common/mixins/modal.d.ts.map +0 -1
- package/dist/types/common/mixins/skeleton.d.ts +0 -11
- package/dist/types/common/mixins/skeleton.d.ts.map +0 -1
- package/dist/types/common/mixins/sr_only_close_button.d.ts +0 -30
- package/dist/types/common/mixins/sr_only_close_button.d.ts.map +0 -1
- package/dist/types/common/sr_only_close_button.vue.d.ts +0 -25
- package/dist/types/common/sr_only_close_button.vue.d.ts.map +0 -1
- package/dist/types/common/storybook_utils.d.ts +0 -29
- package/dist/types/common/storybook_utils.d.ts.map +0 -1
- package/dist/types/common/utils.d.ts +0 -116
- package/dist/types/common/utils.d.ts.map +0 -1
- package/dist/types/common/validators.d.ts +0 -6
- package/dist/types/common/validators.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar.vue.d.ts +0 -367
- package/dist/types/components/avatar/avatar.vue.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar_constants.d.ts +0 -51
- package/dist/types/components/avatar/avatar_constants.d.ts.map +0 -1
- package/dist/types/components/avatar/utils.d.ts +0 -2
- package/dist/types/components/avatar/utils.d.ts.map +0 -1
- package/dist/types/components/badge/badge.vue.d.ts +0 -184
- package/dist/types/components/badge/badge.vue.d.ts.map +0 -1
- package/dist/types/components/badge/badge_constants.d.ts +0 -39
- package/dist/types/components/badge/badge_constants.d.ts.map +0 -1
- package/dist/types/components/banner/banner.vue.d.ts +0 -252
- package/dist/types/components/banner/banner.vue.d.ts.map +0 -1
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +0 -56
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +0 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +0 -59
- package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts.map +0 -1
- package/dist/types/components/breadcrumbs/breadcrumbs_constants.d.ts +0 -3
- package/dist/types/components/breadcrumbs/breadcrumbs_constants.d.ts.map +0 -1
- package/dist/types/components/button/button.vue.d.ts +0 -316
- package/dist/types/components/button/button.vue.d.ts.map +0 -1
- package/dist/types/components/button/button_constants.d.ts +0 -55
- package/dist/types/components/button/button_constants.d.ts.map +0 -1
- package/dist/types/components/button/index.d.ts +0 -3
- package/dist/types/components/button/index.d.ts.map +0 -1
- package/dist/types/components/button_group/button_group.vue.d.ts +0 -29
- package/dist/types/components/button_group/button_group.vue.d.ts.map +0 -1
- package/dist/types/components/button_group/button_group_constants.d.ts +0 -6
- package/dist/types/components/button_group/button_group_constants.d.ts.map +0 -1
- package/dist/types/components/button_group/buttons_decorator.vue.d.ts +0 -3
- package/dist/types/components/button_group/buttons_decorator.vue.d.ts.map +0 -1
- package/dist/types/components/card/card.vue.d.ts +0 -83
- package/dist/types/components/card/card.vue.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox.vue.d.ts +0 -155
- package/dist/types/components/checkbox/checkbox.vue.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox_constants.d.ts +0 -10
- package/dist/types/components/checkbox/checkbox_constants.d.ts.map +0 -1
- package/dist/types/components/checkbox/index.d.ts +0 -2
- package/dist/types/components/checkbox/index.d.ts.map +0 -1
- package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +0 -249
- package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts.map +0 -1
- package/dist/types/components/checkbox_group/checkboxes_decorator.vue.d.ts +0 -3
- package/dist/types/components/checkbox_group/checkboxes_decorator.vue.d.ts.map +0 -1
- package/dist/types/components/chip/chip.vue.d.ts +0 -156
- package/dist/types/components/chip/chip.vue.d.ts.map +0 -1
- package/dist/types/components/chip/chip_constants.d.ts +0 -28
- package/dist/types/components/chip/chip_constants.d.ts.map +0 -1
- package/dist/types/components/codeblock/codeblock.vue.d.ts +0 -13
- package/dist/types/components/codeblock/codeblock.vue.d.ts.map +0 -1
- package/dist/types/components/collapsible/collapsible.vue.d.ts +0 -197
- package/dist/types/components/collapsible/collapsible.vue.d.ts.map +0 -1
- package/dist/types/components/collapsible/collapsible_lazy_show.vue.d.ts +0 -86
- package/dist/types/components/collapsible/collapsible_lazy_show.vue.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox.vue.d.ts +0 -328
- package/dist/types/components/combobox/combobox.vue.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox_constants.d.ts +0 -12
- package/dist/types/components/combobox/combobox_constants.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts +0 -39
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts.map +0 -1
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts +0 -3
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts.map +0 -1
- package/dist/types/components/icon/icon.vue.d.ts +0 -74
- package/dist/types/components/icon/icon.vue.d.ts.map +0 -1
- package/dist/types/components/icon/icon_constants.d.ts +0 -15
- package/dist/types/components/icon/icon_constants.d.ts.map +0 -1
- package/dist/types/components/icon/index.d.ts +0 -3
- package/dist/types/components/icon/index.d.ts.map +0 -1
- package/dist/types/components/input_group/index.d.ts +0 -2
- package/dist/types/components/input_group/index.d.ts.map +0 -1
- package/dist/types/components/input_group/input_group.vue.d.ts +0 -173
- package/dist/types/components/input_group/input_group.vue.d.ts.map +0 -1
- package/dist/types/components/item_layout/index.d.ts +0 -2
- package/dist/types/components/item_layout/index.d.ts.map +0 -1
- package/dist/types/components/item_layout/item_layout.vue.d.ts +0 -21
- package/dist/types/components/item_layout/item_layout.vue.d.ts.map +0 -1
- package/dist/types/components/lazy_show/index.d.ts +0 -2
- package/dist/types/components/lazy_show/index.d.ts.map +0 -1
- package/dist/types/components/lazy_show/lazy_show.vue.d.ts +0 -65
- package/dist/types/components/lazy_show/lazy_show.vue.d.ts.map +0 -1
- package/dist/types/components/link/index.d.ts +0 -3
- package/dist/types/components/link/index.d.ts.map +0 -1
- package/dist/types/components/link/link.vue.d.ts +0 -34
- package/dist/types/components/link/link.vue.d.ts.map +0 -1
- package/dist/types/components/link/link_constants.d.ts +0 -21
- package/dist/types/components/link/link_constants.d.ts.map +0 -1
- package/dist/types/components/list_item/index.d.ts +0 -3
- package/dist/types/components/list_item/index.d.ts.map +0 -1
- package/dist/types/components/list_item/list_item.vue.d.ts +0 -146
- package/dist/types/components/list_item/list_item.vue.d.ts.map +0 -1
- package/dist/types/components/list_item/list_item_constants.d.ts +0 -15
- package/dist/types/components/list_item/list_item_constants.d.ts.map +0 -1
- package/dist/types/components/notice/index.d.ts +0 -6
- package/dist/types/components/notice/index.d.ts.map +0 -1
- package/dist/types/components/notice/notice.vue.d.ts +0 -174
- package/dist/types/components/notice/notice.vue.d.ts.map +0 -1
- package/dist/types/components/notice/notice_action.vue.d.ts +0 -68
- package/dist/types/components/notice/notice_action.vue.d.ts.map +0 -1
- package/dist/types/components/notice/notice_constants.d.ts +0 -8
- package/dist/types/components/notice/notice_constants.d.ts.map +0 -1
- package/dist/types/components/notice/notice_content.vue.d.ts +0 -55
- package/dist/types/components/notice/notice_content.vue.d.ts.map +0 -1
- package/dist/types/components/notice/notice_icon.vue.d.ts +0 -27
- package/dist/types/components/notice/notice_icon.vue.d.ts.map +0 -1
- package/dist/types/components/presence/index.d.ts +0 -3
- package/dist/types/components/presence/index.d.ts.map +0 -1
- package/dist/types/components/presence/presence.vue.d.ts +0 -46
- package/dist/types/components/presence/presence.vue.d.ts.map +0 -1
- package/dist/types/components/presence/presence_constants.d.ts +0 -8
- package/dist/types/components/presence/presence_constants.d.ts.map +0 -1
- package/dist/types/components/skeleton/index.d.ts +0 -7
- package/dist/types/components/skeleton/index.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts +0 -152
- package/dist/types/components/skeleton/skeleton-list-item.vue.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts +0 -181
- package/dist/types/components/skeleton/skeleton-paragraph.vue.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton-shape.vue.d.ts +0 -136
- package/dist/types/components/skeleton/skeleton-shape.vue.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton-text.vue.d.ts +0 -145
- package/dist/types/components/skeleton/skeleton-text.vue.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton.vue.d.ts +0 -155
- package/dist/types/components/skeleton/skeleton.vue.d.ts.map +0 -1
- package/dist/types/components/skeleton/skeleton_constants.d.ts +0 -27
- package/dist/types/components/skeleton/skeleton_constants.d.ts.map +0 -1
- package/dist/types/components/validation_messages/index.d.ts +0 -2
- package/dist/types/components/validation_messages/index.d.ts.map +0 -1
- package/dist/types/components/validation_messages/validation_messages.vue.d.ts +0 -64
- package/dist/types/components/validation_messages/validation_messages.vue.d.ts.map +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
declare function _default({ listItemRole, indexKey, idKey, listElementKey, activeItemKey, openMethod, afterHighlightMethod, beginningOfListMethod, endOfListMethod, scrollToOnHighlight, focusOnKeyboardNavigation, }?: {
|
|
2
|
-
listItemRole?: string | undefined;
|
|
3
|
-
indexKey?: string | undefined;
|
|
4
|
-
idKey?: string | undefined;
|
|
5
|
-
listElementKey?: string | undefined;
|
|
6
|
-
activeItemKey?: string | undefined;
|
|
7
|
-
openMethod?: null | undefined;
|
|
8
|
-
afterHighlightMethod?: null | undefined;
|
|
9
|
-
beginningOfListMethod?: null | undefined;
|
|
10
|
-
endOfListMethod?: null | undefined;
|
|
11
|
-
scrollToOnHighlight?: boolean | undefined;
|
|
12
|
-
focusOnKeyboardNavigation?: boolean | undefined;
|
|
13
|
-
}): {
|
|
14
|
-
mixins: {
|
|
15
|
-
methods: {
|
|
16
|
-
scrollElementIntoViewIfNeeded(ref: Element, opt_center: any, opt_behavior: any, opt_parent: any): void;
|
|
17
|
-
scrollElementIntoView(ref: Element, opt_scrollToTop: any, opt_behavior: any, opt_parent: any): void;
|
|
18
|
-
scrollIntoViewIfNeeded(ref: any, opt_center: any, opt_behavior: any, opt_parent: any): void;
|
|
19
|
-
scrollIntoView(ref: any, opt_dir: any, opt_ifNeeded: any, opt_behavior: any, opt_parent: any): void;
|
|
20
|
-
_setScrollTop(el: any, scrollTop: any, bounds: any, offsetTop: any, offsetBottom: any, opt_isNeeded: any, opt_behavior: any): void;
|
|
21
|
-
_getElementHeight(el: any): any;
|
|
22
|
-
_getScrollBounds(el: any): {
|
|
23
|
-
top: any;
|
|
24
|
-
bottom: any;
|
|
25
|
-
};
|
|
26
|
-
_inScrollBounds(top: any, bottom: any, bounds: any): boolean;
|
|
27
|
-
};
|
|
28
|
-
}[];
|
|
29
|
-
data(): {
|
|
30
|
-
[x: string]: string | number | boolean;
|
|
31
|
-
scrollToOnHighlight: boolean;
|
|
32
|
-
focusOnKeyboardNavigation: boolean;
|
|
33
|
-
};
|
|
34
|
-
provide(): {
|
|
35
|
-
highlightId: () => any;
|
|
36
|
-
};
|
|
37
|
-
methods: {
|
|
38
|
-
_getListElement(): any;
|
|
39
|
-
_itemsLength(): any;
|
|
40
|
-
_getListItemNodes(): any;
|
|
41
|
-
onUpKey(): void;
|
|
42
|
-
onDownKey(): void;
|
|
43
|
-
onHomeKey(): void;
|
|
44
|
-
onEndKey(): void;
|
|
45
|
-
onNavigationKey(key: any): void;
|
|
46
|
-
isValidLetter(key: any): boolean;
|
|
47
|
-
jumpToBeginning(): void;
|
|
48
|
-
jumpToEnd(): void;
|
|
49
|
-
setHighlightIndex(num: any): void;
|
|
50
|
-
setHighlightId(id: any): void;
|
|
51
|
-
_getItemIndex(id: any): number | undefined;
|
|
52
|
-
_getItemId(index: any): any;
|
|
53
|
-
scrollActiveItemIntoViewIfNeeded(): void;
|
|
54
|
-
focusActiveItemIfNeeded(): void;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export default _default;
|
|
58
|
-
//# sourceMappingURL=keyboard_list_navigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard_list_navigation.d.ts","sourceRoot":"","sources":["../../../../common/mixins/keyboard_list_navigation.js"],"names":[],"mappings":"AA6Be;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuNb"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
namespace methods {
|
|
3
|
-
/**
|
|
4
|
-
* get the first focusable element in your component, includes tabindex="-1".
|
|
5
|
-
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
6
|
-
* will default to the root node of the vue component
|
|
7
|
-
*/
|
|
8
|
-
function getFirstFocusableElement(el: object): Promise<any>;
|
|
9
|
-
/**
|
|
10
|
-
* set focus to the first focusable element in your component, includes tabindex="-1".
|
|
11
|
-
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
12
|
-
* will default to the root node of the vue component
|
|
13
|
-
*/
|
|
14
|
-
function focusFirstElement(el?: object): Promise<void>;
|
|
15
|
-
function focusElementById(elementId: any): Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* internal use only.
|
|
18
|
-
*
|
|
19
|
-
* @param focusableElements - list of focusable elements
|
|
20
|
-
* @returns {*} - first DOM element that is focusable.
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
function _getFirstFocusElement(focusableElements: any): any;
|
|
24
|
-
/**
|
|
25
|
-
* internal use only.
|
|
26
|
-
*
|
|
27
|
-
* gets all the focusable elements within the component
|
|
28
|
-
* and sets the first and last of those elements.
|
|
29
|
-
*
|
|
30
|
-
* @param {object} el - the root dom element to find focusable elements in.
|
|
31
|
-
* @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
|
|
32
|
-
*/
|
|
33
|
-
function _getFocusableElements(el?: object, includeNegativeTabIndex?: bool): any[];
|
|
34
|
-
/**
|
|
35
|
-
* tabs to the next element contained within your component, does not include tabindex="-1".
|
|
36
|
-
* @param {object} e - keypress event
|
|
37
|
-
* @param {object} el - optional - ref of dom element to trap focus on.
|
|
38
|
-
* will default to the root node of the vue component
|
|
39
|
-
*/
|
|
40
|
-
function focusTrappedTabPress(e: object, el: object): void;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export default _default;
|
|
44
|
-
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../common/mixins/modal.js"],"names":[],"mappings":";;QAqBI;;;;WAIG;QACH,4DAIC;QAED;;;;WAIG;QACH,uDAGC;QAED,yDAYC;QAED;;;;;;WAMG;QACH,4DAUC;QAED;;;;;;;;WAQG;QACH,mFASC;QAED;;;;;WAKG;QACH,2DA2BC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../common/mixins/skeleton.js"],"names":[],"mappings":";;QAOI,+BAKC;QAED;;;UAWC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
namespace props {
|
|
3
|
-
namespace visuallyHiddenClose {
|
|
4
|
-
export let type: BooleanConstructor;
|
|
5
|
-
let _default: boolean;
|
|
6
|
-
export { _default as default };
|
|
7
|
-
}
|
|
8
|
-
namespace visuallyHiddenCloseLabel {
|
|
9
|
-
let type_1: StringConstructor;
|
|
10
|
-
export { type_1 as type };
|
|
11
|
-
let _default_1: null;
|
|
12
|
-
export { _default_1 as default };
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
namespace watch {
|
|
16
|
-
namespace $props {
|
|
17
|
-
let immediate: boolean;
|
|
18
|
-
let deep: boolean;
|
|
19
|
-
function handler(): void;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
namespace computed {
|
|
23
|
-
function showVisuallyHiddenClose(): any;
|
|
24
|
-
}
|
|
25
|
-
namespace methods {
|
|
26
|
-
function validateVisuallyHiddenCloseProps(): void;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export default _default;
|
|
30
|
-
//# sourceMappingURL=sr_only_close_button.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sr_only_close_button.d.ts","sourceRoot":"","sources":["../../../../common/mixins/sr_only_close_button.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;YA4BM,yBAEC;;;;QAKH,wCAEC;;;QAID,kDAKC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
/**
|
|
3
|
-
* Label for the visually hidden close button
|
|
4
|
-
* Required if visuallyHiddenClose is set to `true`
|
|
5
|
-
*/
|
|
6
|
-
visuallyHiddenCloseLabel: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
default: null;
|
|
9
|
-
};
|
|
10
|
-
}, {}, {}, {}, {
|
|
11
|
-
close(): void;
|
|
12
|
-
}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "close"[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
-
/**
|
|
14
|
-
* Label for the visually hidden close button
|
|
15
|
-
* Required if visuallyHiddenClose is set to `true`
|
|
16
|
-
*/
|
|
17
|
-
visuallyHiddenCloseLabel: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: null;
|
|
20
|
-
};
|
|
21
|
-
}>>, {
|
|
22
|
-
visuallyHiddenCloseLabel: string;
|
|
23
|
-
}>;
|
|
24
|
-
export default _default;
|
|
25
|
-
//# sourceMappingURL=sr_only_close_button.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sr_only_close_button.vue.d.ts","sourceRoot":"","sources":["../../../common/sr_only_close_button.vue.js"],"names":[],"mappings":";IAaI;;;OAGG;;;;;;;;IAHH;;;OAGG"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Will use a Vue SFC to render the template rather than a template string.
|
|
3
|
-
* This is useful for more complex components that are hard to work with and
|
|
4
|
-
* get messy when rendered via a template string. Will pass args and argTypes
|
|
5
|
-
* into the component, so it is able to be live edited with storybook controls addon.
|
|
6
|
-
* @param component this will get the component name
|
|
7
|
-
* @param defaultTemplate we will mount in this component
|
|
8
|
-
* @param argsData storybook control args
|
|
9
|
-
* @returns {component} the template component with props and args added.
|
|
10
|
-
*/
|
|
11
|
-
export function createRenderConfig(component: any, defaultTemplate: any, argsData: any): any;
|
|
12
|
-
/**
|
|
13
|
-
* Gets the full list of icon component names from the dialtone package
|
|
14
|
-
* @returns {string[]} icon component names
|
|
15
|
-
*/
|
|
16
|
-
export function getIconNames(): string[];
|
|
17
|
-
export function generateTemplate(component: any, { props, excludeProps, customProps, childTemplate }?: {
|
|
18
|
-
props?: any[] | undefined;
|
|
19
|
-
excludeProps?: any[] | undefined;
|
|
20
|
-
customProps?: any[] | undefined;
|
|
21
|
-
childTemplate: any;
|
|
22
|
-
}): string;
|
|
23
|
-
declare namespace _default {
|
|
24
|
-
export { generateTemplate };
|
|
25
|
-
export { getIconNames };
|
|
26
|
-
export { createRenderConfig };
|
|
27
|
-
}
|
|
28
|
-
export default _default;
|
|
29
|
-
//# sourceMappingURL=storybook_utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storybook_utils.d.ts","sourceRoot":"","sources":["../../../common/storybook_utils.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,6FASC;AAED;;;GAGG;AACH,gCAFa,MAAM,EAAE,CAIpB;AAEM;;;;;WAoBN"}
|
|
@@ -1,116 +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 debounce(func: any, timeout?: number): void;
|
|
38
|
-
/**
|
|
39
|
-
* Checks if the element is out of the viewport
|
|
40
|
-
* https://gomakethings.com/how-to-check-if-any-part-of-an-element-is-out-of-the-viewport-with-vanilla-js/
|
|
41
|
-
* @param {HTMLElement} element The element to check
|
|
42
|
-
* @return {Object} A set of booleans for each side of the element
|
|
43
|
-
*/
|
|
44
|
-
export function isOutOfViewPort(element: HTMLElement): Object;
|
|
45
|
-
/**
|
|
46
|
-
* Match phone numbers, e.g. "765-8813", "(778) 765-8813" or "+17787658813".
|
|
47
|
-
* @param {number} minLength
|
|
48
|
-
* @param {number} maxLength
|
|
49
|
-
* @returns {RegExp}
|
|
50
|
-
*/
|
|
51
|
-
export function getPhoneNumberRegex(minLength?: number, maxLength?: number): RegExp;
|
|
52
|
-
/**
|
|
53
|
-
* Check if a string is a phone number. Validates only exact matches.
|
|
54
|
-
* @param {string|number} input
|
|
55
|
-
* @returns {boolean}
|
|
56
|
-
*/
|
|
57
|
-
export function isPhoneNumber(input: string | number): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Check if a string is an URL. Validates only exact matches.
|
|
60
|
-
* @param {string} input
|
|
61
|
-
* @returns {boolean}
|
|
62
|
-
*/
|
|
63
|
-
export function isURL(input: string): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Check if a string is an email address. Validates only exact matches.
|
|
66
|
-
* @param {string} input
|
|
67
|
-
* @returns {boolean}
|
|
68
|
-
*/
|
|
69
|
-
export function isEmailAddress(input: string): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Concatenate a string removing null or undefined elements
|
|
72
|
-
* avoiding parsing them as string with template strings
|
|
73
|
-
* @param {Array} elements
|
|
74
|
-
* @returns {String}
|
|
75
|
-
*/
|
|
76
|
-
export function safeConcatStrings(elements: any[]): string;
|
|
77
|
-
/**
|
|
78
|
-
* Locale safe function to capitalize the first letter of a string.
|
|
79
|
-
* @param {string} str the string to capitalize the first letter of
|
|
80
|
-
* @param {string} locale a string representing the locale to be used. Defaults to 'en-US'
|
|
81
|
-
* @returns The passed in string with the first letter capitalized
|
|
82
|
-
*/
|
|
83
|
-
export function capitalizeFirstLetter(str: string, locale?: string): string;
|
|
84
|
-
export namespace htmlFragment {
|
|
85
|
-
let name: string;
|
|
86
|
-
let functional: boolean;
|
|
87
|
-
let props: string[];
|
|
88
|
-
function render(h: any, ctx: any): any;
|
|
89
|
-
}
|
|
90
|
-
export function flushPromises(): Promise<any>;
|
|
91
|
-
export function kebabCaseToPascalCase(string: any): string;
|
|
92
|
-
export function pascalCaseToKebabCase(string: any): string;
|
|
93
|
-
export const linkRegex: RegExp;
|
|
94
|
-
declare namespace _default {
|
|
95
|
-
export { getUniqueString };
|
|
96
|
-
export { getRandomElement };
|
|
97
|
-
export { getRandomInt };
|
|
98
|
-
export { formatMessages };
|
|
99
|
-
export { filterFormattedMessages };
|
|
100
|
-
export { hasFormattedMessageOfType };
|
|
101
|
-
export { getValidationState };
|
|
102
|
-
export { htmlFragment };
|
|
103
|
-
export { flushPromises };
|
|
104
|
-
export { kebabCaseToPascalCase };
|
|
105
|
-
export { debounce };
|
|
106
|
-
export { isOutOfViewPort };
|
|
107
|
-
export { getPhoneNumberRegex };
|
|
108
|
-
export { linkRegex };
|
|
109
|
-
export { isEmailAddress };
|
|
110
|
-
export { isPhoneNumber };
|
|
111
|
-
export { isURL };
|
|
112
|
-
export { safeConcatStrings };
|
|
113
|
-
export { capitalizeFirstLetter };
|
|
114
|
-
}
|
|
115
|
-
export default _default;
|
|
116
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../common/utils.js"],"names":[],"mappings":"AAqBA,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;AAsDD,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;;;;;IAhOC,uCAOC;;AAGI,8CAIN;AAOM,oDAFM,MAAM,CAOlB;AAOM,oDAFM,MAAM,CAMlB;AA+HD,+BAQE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../common/validators.js"],"names":[],"mappings":"AAIA,kEAgBC"}
|