@dropi/ui 0.1.16 → 0.1.17
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/assets/lottie-files/failure.json +1 -0
- package/assets/lottie-files/question.json +1 -0
- package/assets/lottie-files/success.json +1 -0
- package/assets/lottie-files/warning.json +1 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +53 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/dropi-empty-state.cjs.entry.js +35 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +3 -3
- package/dist/cjs/dropi-input.cjs.entry.js +2 -2
- package/dist/cjs/dropi-modal.cjs.entry.js +113 -0
- package/dist/cjs/dropi-paginator.cjs.entry.js +89 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/dropi-select.cjs.entry.js +2 -2
- package/dist/cjs/dropi-skeleton.cjs.entry.js +47 -0
- package/dist/cjs/dropi-switch.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tabs.cjs.entry.js +49 -0
- package/dist/cjs/dropi-tag.cjs.entry.js +2 -2
- package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
- package/dist/cjs/dropi-toast.cjs.entry.js +55 -0
- package/dist/cjs/dropi-tooltip.cjs.entry.js +42 -0
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/{index-CuGLZVqo.js → index-B6R6Ojma.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.css +21 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +170 -0
- package/dist/collection/components/dropi-button/dropi-button.css +7 -1
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +58 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +195 -0
- package/dist/collection/components/dropi-icon/dropi-icon.css +2 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.css +2 -0
- package/dist/collection/components/dropi-modal/dropi-modal.css +124 -0
- package/dist/collection/components/dropi-modal/dropi-modal.js +406 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +100 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +241 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +27 -0
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +162 -0
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +42 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +159 -0
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-toast/dropi-toast.css +63 -0
- package/dist/collection/components/dropi-toast/dropi-toast.js +164 -0
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +67 -0
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +147 -0
- package/dist/components/dropi-accordion.d.ts +11 -0
- package/dist/components/dropi-accordion.js +1 -0
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-empty-state.d.ts +11 -0
- package/dist/components/dropi-empty-state.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-modal.d.ts +11 -0
- package/dist/components/dropi-modal.js +1 -0
- package/dist/components/dropi-paginator.d.ts +11 -0
- package/dist/components/dropi-paginator.js +1 -0
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-skeleton.d.ts +11 -0
- package/dist/components/dropi-skeleton.js +1 -0
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-tabs.d.ts +11 -0
- package/dist/components/dropi-tabs.js +1 -0
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-toast.d.ts +11 -0
- package/dist/components/dropi-toast.js +1 -0
- package/dist/components/dropi-tooltip.d.ts +11 -0
- package/dist/components/dropi-tooltip.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-MNma8N1x.js → p-ChOXWKmI.js} +1 -1
- package/dist/components/p-NCyvfOs2.js +1 -0
- package/dist/dropi-ui/dropi-ui.css +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-082b7039.entry.js +1 -0
- package/dist/dropi-ui/p-09c38a49.entry.js +1 -0
- package/dist/dropi-ui/p-1739d20c.entry.js +1 -0
- package/dist/dropi-ui/{p-dd089a60.entry.js → p-26dbae0d.entry.js} +1 -1
- package/dist/dropi-ui/p-42179ae4.entry.js +1 -0
- package/dist/dropi-ui/p-4d582d58.entry.js +1 -0
- package/dist/dropi-ui/p-6031ac9d.entry.js +1 -0
- package/dist/dropi-ui/{p-bda1427f.entry.js → p-63e969da.entry.js} +1 -1
- package/dist/dropi-ui/p-65fa8558.entry.js +1 -0
- package/dist/dropi-ui/{p-52291024.entry.js → p-6d15d32f.entry.js} +1 -1
- package/dist/dropi-ui/{p-0faaab2b.entry.js → p-79466fec.entry.js} +1 -1
- package/dist/dropi-ui/p-Twbb5MNM.js +2 -0
- package/dist/dropi-ui/p-a5650d8f.entry.js +1 -0
- package/dist/dropi-ui/p-b0d3442e.entry.js +1 -0
- package/dist/dropi-ui/{p-f785011f.entry.js → p-e44242e2.entry.js} +1 -1
- package/dist/dropi-ui/{p-a46a05a6.entry.js → p-eb7f9a57.entry.js} +1 -1
- package/dist/dropi-ui/{p-a1944f3d.entry.js → p-ecda6e19.entry.js} +1 -1
- package/dist/dropi-ui/{p-9c7076d3.entry.js → p-f0e1e0f6.entry.js} +1 -1
- package/dist/dropi-ui/p-f283f41d.entry.js +1 -0
- package/dist/esm/dropi-accordion.entry.js +51 -0
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-button.entry.js +2 -2
- package/dist/esm/dropi-checkbox.entry.js +3 -3
- package/dist/esm/dropi-empty-state.entry.js +33 -0
- package/dist/esm/dropi-icon.entry.js +3 -3
- package/dist/esm/dropi-input.entry.js +2 -2
- package/dist/esm/dropi-modal.entry.js +111 -0
- package/dist/esm/dropi-paginator.entry.js +87 -0
- package/dist/esm/dropi-radio-button.entry.js +2 -2
- package/dist/esm/dropi-select.entry.js +2 -2
- package/dist/esm/dropi-skeleton.entry.js +45 -0
- package/dist/esm/dropi-switch.entry.js +2 -2
- package/dist/esm/dropi-tabs.entry.js +47 -0
- package/dist/esm/dropi-tag.entry.js +2 -2
- package/dist/esm/dropi-text-area.entry.js +3 -3
- package/dist/esm/dropi-toast.entry.js +53 -0
- package/dist/esm/dropi-tooltip.entry.js +40 -0
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/{index-DFz-gwFP.js → index-Twbb5MNM.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +29 -0
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +24 -0
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +37 -0
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +32 -0
- package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +19 -0
- package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +38 -0
- package/dist/types/components/dropi-toast/dropi-toast.d.ts +38 -0
- package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +25 -0
- package/dist/types/components.d.ts +832 -0
- package/package.json +1 -1
- package/scripts/setup.js +48 -19
- package/dist/dropi-ui/p-21abf91a.entry.js +0 -1
- package/dist/dropi-ui/p-6f0aa619.entry.js +0 -1
- package/dist/dropi-ui/p-DFz-gwFP.js +0 -2
package/dist/esm/loader.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { g as globalScripts, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { g as globalScripts, b as bootstrapLazy } from './index-Twbb5MNM.js';
|
|
2
|
+
export { s as setNonce } from './index-Twbb5MNM.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = async (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
6
|
await globalScripts();
|
|
7
|
-
return bootstrapLazy([["dropi-icon",[[513,"dropi-icon",{"name":[1],"width":[1],"height":[1],"color":[1]},null,{"color":[{"colorChanged":0}]}]]],["dropi-
|
|
7
|
+
return bootstrapLazy([["dropi-icon",[[513,"dropi-icon",{"name":[1],"width":[1],"height":[1],"color":[1]},null,{"color":[{"colorChanged":0}]}]]],["dropi-empty-state",[[769,"dropi-empty-state",{"header":[1],"description":[1],"imageUrl":[1,"image-url"],"imageAlt":[1,"image-alt"],"actionLabel":[1,"action-label"],"secondaryLabel":[1,"secondary-label"]}]]],["dropi-accordion",[[769,"dropi-accordion",{"header":[1],"open":[1540],"disabled":[4],"preIcon":[1,"pre-icon"],"contentHeight":[32]},null,{"open":[{"openChanged":0}]}]]],["dropi-input",[[577,"dropi-input",{"inputId":[1,"input-id"],"name":[1],"label":[1],"placeholder":[1],"value":[1025],"maxlength":[2],"disabled":[516],"required":[516],"showAsterisk":[4,"show-asterisk"],"fixedLabel":[4,"fixed-label"],"inputMode":[1,"input-mode"],"passwordInput":[4,"password-input"],"moneyFormat":[4,"money-format"],"thousandSeparator":[4,"thousand-separator"],"onlyNumbers":[4,"only-numbers"],"allowDecimals":[4,"allow-decimals"],"onlyLetters":[4,"only-letters"],"icon":[1],"iconColor":[1,"icon-color"],"invalid":[4],"helperText":[1,"helper-text"],"showHelperOnlyOnError":[4,"show-helper-only-on-error"],"showPassword":[32],"touched":[32]},null,{"value":[{"valueChanged":0}],"disabled":[{"disabledChanged":0}]}]]],["dropi-modal",[[769,"dropi-modal",{"visible":[1540],"header":[1],"showCloseIcon":[4,"show-close-icon"],"dismissable":[4],"closeOnEscape":[4,"close-on-escape"],"modal":[4],"showHeader":[4,"show-header"],"position":[1],"size":[1],"isOpen":[32],"isClosing":[32],"mounted":[32],"hide":[64],"show":[64]},null,{"visible":[{"visibleChanged":0}]}]]],["dropi-paginator",[[513,"dropi-paginator",{"total":[2],"pageSize":[1026,"page-size"],"page":[1538],"maxPages":[2,"max-pages"],"showPageSizeSelector":[4,"show-page-size-selector"],"pageSizeOptions":[1,"page-size-options"],"parsedOptions":[32]},null,{"pageSizeOptions":[{"optionsChanged":0}]}]]],["dropi-select",[[577,"dropi-select",{"label":[1],"placeholder":[1],"options":[1040],"name":[1],"disabled":[516],"invalid":[4],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"showObligatory":[4,"show-obligatory"],"searchEnabled":[4,"search-enabled"],"multiSelect":[4,"multi-select"],"dropdownType":[4,"dropdown-type"],"showCountryFlags":[4,"show-country-flags"],"radioOptions":[4,"radio-options"],"placeHolderSearch":[1,"place-holder-search"],"preIcon":[1,"pre-icon"],"defaultSelectedId":[1032,"default-selected-id"],"value":[1040],"isOpen":[32],"selectedOption":[32],"multiSelected":[32],"filteredOptions":[32],"searchTerm":[32],"dropdownStyle":[32],"setById":[64],"setByLabel":[64],"clearSelection":[64],"resetMultiSelect":[64]},[[4,"click","handleOutsideClick"]],{"options":[{"optionsChanged":0}],"defaultSelectedId":[{"defaultChanged":0}],"value":[{"valueChanged":0}]}]]],["dropi-tabs",[[513,"dropi-tabs",{"tabs":[1],"activeTab":[1544,"active-tab"],"showIcon":[4,"show-icon"],"parsedTabs":[32]},null,{"tabs":[{"tabsChanged":0}]}]]],["dropi-tag",[[513,"dropi-tag",{"type":[1],"state":[1],"showIcon":[4,"show-icon"],"icon":[1],"text":[1]},null,{"type":[{"propsChanged":0}],"state":[{"propsChanged":0}]}]]],["dropi-text-area",[[577,"dropi-text-area",{"inputId":[1,"input-id"],"name":[1],"label":[1],"placeholder":[1],"value":[1025],"maxlength":[2],"minlength":[2],"rows":[2],"resize":[1],"disabled":[516],"required":[516],"showAsterisk":[4,"show-asterisk"],"helperText":[1,"helper-text"],"invalid":[4],"touched":[32]},null,{"value":[{"valueChanged":0}]}]]],["dropi-toast",[[513,"dropi-toast",{"position":[1],"life":[2],"items":[32],"show":[64],"clear":[64]}]]],["dropi-badge",[[513,"dropi-badge",{"state":[1]}]]],["dropi-checkbox",[[577,"dropi-checkbox",{"checked":[1540],"disabled":[516]}]]],["dropi-radio-button",[[577,"dropi-radio-button",{"label":[1],"name":[1],"inputId":[1,"input-id"],"checked":[1540],"resetTrigger":[4,"reset-trigger"]},null,{"resetTrigger":[{"onResetTrigger":0}]}]]],["dropi-skeleton",[[513,"dropi-skeleton",{"variant":[1],"width":[1],"height":[1],"borderRadius":[1,"border-radius"],"lines":[2]}]]],["dropi-switch",[[577,"dropi-switch",{"isChecked":[1540,"is-checked"],"disabled":[516]}]]],["dropi-tooltip",[[769,"dropi-tooltip",{"text":[1],"position":[1],"maxWidth":[1,"max-width"],"showDelay":[2,"show-delay"],"visible":[32]}]]],["dropi-button",[[769,"dropi-button",{"type":[1],"severity":[1],"size":[1],"state":[1],"preIcon":[1,"pre-icon"],"postIcon":[1,"post-icon"],"text":[1]}]]]], options);
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export { defineCustomElements };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-accordion
|
|
4
|
+
* Collapsible section with animated expand/collapse.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <dropi-accordion header="¿Cómo funciona?">
|
|
8
|
+
* <p>Contenido del acordeón aquí.</p>
|
|
9
|
+
* </dropi-accordion>
|
|
10
|
+
*/
|
|
11
|
+
export declare class DropiAccordion {
|
|
12
|
+
/** Title shown in the header button */
|
|
13
|
+
header: string;
|
|
14
|
+
/** Whether the section is expanded */
|
|
15
|
+
open: boolean;
|
|
16
|
+
/** Disable toggling */
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/** Icon name from dropi-icon sprite (shown before title) */
|
|
19
|
+
preIcon: string;
|
|
20
|
+
/** Emitted when toggled. e.detail = new open state */
|
|
21
|
+
dropiToggle: EventEmitter<boolean>;
|
|
22
|
+
private contentHeight;
|
|
23
|
+
private contentRef?;
|
|
24
|
+
openChanged(val: boolean): void;
|
|
25
|
+
componentDidLoad(): void;
|
|
26
|
+
private updateHeight;
|
|
27
|
+
private handleToggle;
|
|
28
|
+
render(): any;
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-empty-state
|
|
4
|
+
* Empty state illustration with title, description and optional action button.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DropiEmptyState {
|
|
7
|
+
/** Title text */
|
|
8
|
+
header: string;
|
|
9
|
+
/** Description text */
|
|
10
|
+
description: string;
|
|
11
|
+
/** URL of the illustration image */
|
|
12
|
+
imageUrl: string;
|
|
13
|
+
/** Alt text for the image */
|
|
14
|
+
imageAlt: string;
|
|
15
|
+
/** Primary action button label (empty = hidden) */
|
|
16
|
+
actionLabel: string;
|
|
17
|
+
/** Secondary action button label (empty = hidden) */
|
|
18
|
+
secondaryLabel: string;
|
|
19
|
+
/** Emitted when primary action button is clicked */
|
|
20
|
+
dropiAction: EventEmitter<void>;
|
|
21
|
+
/** Emitted when secondary action button is clicked */
|
|
22
|
+
dropiSecondaryAction: EventEmitter<void>;
|
|
23
|
+
render(): any;
|
|
24
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export type ModalPosition = 'center' | 'right' | 'left' | 'top' | 'bottom';
|
|
3
|
+
export type ModalSize = 'full' | 'xxl' | 'l' | 'm' | 's' | 'drawer-s' | 'drawer-m' | 'drawer-l' | 'drawer-xxl' | 'sidebar-half';
|
|
4
|
+
/**
|
|
5
|
+
* @component dropi-modal
|
|
6
|
+
* Modal/dialog with backdrop, close button, and header/content/footer slots.
|
|
7
|
+
* Slots: (default) body, "header" custom header, "footer" actions.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DropiModal {
|
|
10
|
+
visible: boolean;
|
|
11
|
+
header: string;
|
|
12
|
+
showCloseIcon: boolean;
|
|
13
|
+
dismissable: boolean;
|
|
14
|
+
closeOnEscape: boolean;
|
|
15
|
+
modal: boolean;
|
|
16
|
+
showHeader: boolean;
|
|
17
|
+
position: ModalPosition;
|
|
18
|
+
size: ModalSize;
|
|
19
|
+
dropiShow: EventEmitter<void>;
|
|
20
|
+
dropiHide: EventEmitter<void>;
|
|
21
|
+
visibleChange: EventEmitter<boolean>;
|
|
22
|
+
private isOpen;
|
|
23
|
+
private isClosing;
|
|
24
|
+
private mounted;
|
|
25
|
+
private closeTimer;
|
|
26
|
+
private keyHandler;
|
|
27
|
+
visibleChanged(val: boolean): void;
|
|
28
|
+
componentDidLoad(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
hide(): Promise<void>;
|
|
31
|
+
show(): Promise<void>;
|
|
32
|
+
private openModal;
|
|
33
|
+
private startClose;
|
|
34
|
+
private addKeyHandler;
|
|
35
|
+
private removeKeyHandler;
|
|
36
|
+
render(): any;
|
|
37
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-paginator
|
|
4
|
+
* Pagination control with page numbers, prev/next buttons and items-per-page selector.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DropiPaginator {
|
|
7
|
+
/** Total number of items */
|
|
8
|
+
total: number;
|
|
9
|
+
/** Items per page */
|
|
10
|
+
pageSize: number;
|
|
11
|
+
/** Current page (1-based) */
|
|
12
|
+
page: number;
|
|
13
|
+
/** Max page buttons to show at once */
|
|
14
|
+
maxPages: number;
|
|
15
|
+
/** Whether to show the items-per-page selector */
|
|
16
|
+
showPageSizeSelector: boolean;
|
|
17
|
+
/** Options for items per page */
|
|
18
|
+
pageSizeOptions: number[] | string;
|
|
19
|
+
/** Emitted when page changes. e.detail = { page, pageSize } */
|
|
20
|
+
dropiPageChange: EventEmitter<{
|
|
21
|
+
page: number;
|
|
22
|
+
pageSize: number;
|
|
23
|
+
}>;
|
|
24
|
+
private parsedOptions;
|
|
25
|
+
optionsChanged(val: number[] | string): void;
|
|
26
|
+
componentWillLoad(): void;
|
|
27
|
+
private get totalPages();
|
|
28
|
+
private get pageNumbers();
|
|
29
|
+
private goTo;
|
|
30
|
+
private onPageSizeChange;
|
|
31
|
+
render(): any;
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type SkeletonVariant = 'text' | 'circle' | 'rect';
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-skeleton
|
|
4
|
+
* Loading placeholder with shimmer animation.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DropiSkeleton {
|
|
7
|
+
/** Shape variant: 'text' | 'circle' | 'rect' */
|
|
8
|
+
variant: SkeletonVariant;
|
|
9
|
+
/** Width (CSS value, e.g. "100%", "200px") */
|
|
10
|
+
width: string;
|
|
11
|
+
/** Height (CSS value, e.g. "16px", "48px") */
|
|
12
|
+
height: string;
|
|
13
|
+
/** Border radius override */
|
|
14
|
+
borderRadius: string;
|
|
15
|
+
/** Number of lines to repeat (text variant only) */
|
|
16
|
+
lines: number;
|
|
17
|
+
private getRadius;
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export interface TabItem {
|
|
3
|
+
/** Unique identifier */
|
|
4
|
+
id: string | number;
|
|
5
|
+
/** Display label */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Whether the tab is disabled */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Optional numeric counter badge */
|
|
10
|
+
counter?: number;
|
|
11
|
+
/** Whether to show completed checkmark (requires showIcon) */
|
|
12
|
+
completed?: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @component dropi-tabs
|
|
16
|
+
* Horizontal tab navigation with optional counter badges and completed state icons.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* <dropi-tabs
|
|
20
|
+
* tabs='[{"id":1,"label":"Activos"},{"id":2,"label":"Histórico","counter":5}]'
|
|
21
|
+
* active-tab="1"
|
|
22
|
+
* />
|
|
23
|
+
*/
|
|
24
|
+
export declare class DropiTabs {
|
|
25
|
+
/** Array of TabItem or JSON string */
|
|
26
|
+
tabs: TabItem[] | string;
|
|
27
|
+
/** Id of the active tab */
|
|
28
|
+
activeTab: string | number;
|
|
29
|
+
/** Whether to show a check/pending icon per tab */
|
|
30
|
+
showIcon: boolean;
|
|
31
|
+
/** Emitted on tab click. e.detail = TabItem */
|
|
32
|
+
dropiTabChange: EventEmitter<TabItem>;
|
|
33
|
+
private parsedTabs;
|
|
34
|
+
tabsChanged(val: TabItem[] | string): void;
|
|
35
|
+
componentWillLoad(): void;
|
|
36
|
+
private handleClick;
|
|
37
|
+
render(): any;
|
|
38
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type ToastSeverity = 'success' | 'error' | 'warn' | 'info';
|
|
2
|
+
export interface ToastMessage {
|
|
3
|
+
id?: string;
|
|
4
|
+
/** Visual style and icon */
|
|
5
|
+
severity: ToastSeverity;
|
|
6
|
+
/** Bold title */
|
|
7
|
+
summary: string;
|
|
8
|
+
/** Optional body text */
|
|
9
|
+
detail?: string;
|
|
10
|
+
/** Whether to show a close button. Default: true */
|
|
11
|
+
closable?: boolean;
|
|
12
|
+
/** Auto-close after N ms. 0 = manual only. Default: uses component `life` prop */
|
|
13
|
+
life?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @component dropi-toast
|
|
17
|
+
* Global toast notification stack. Place once in the app root, call show() from JS.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const t = document.querySelector('dropi-toast');
|
|
21
|
+
* t.show({ severity: 'success', summary: '¡Guardado!', detail: 'Cambios aplicados.' });
|
|
22
|
+
*/
|
|
23
|
+
export declare class DropiToast {
|
|
24
|
+
/** Toast position */
|
|
25
|
+
position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
26
|
+
/** Default auto-close ms (0 = manual) */
|
|
27
|
+
life: number;
|
|
28
|
+
private items;
|
|
29
|
+
private idCounter;
|
|
30
|
+
/** Show a toast */
|
|
31
|
+
show(msg: ToastMessage): Promise<void>;
|
|
32
|
+
/** Remove all toasts */
|
|
33
|
+
clear(): Promise<void>;
|
|
34
|
+
private remove;
|
|
35
|
+
private readonly lottieMap;
|
|
36
|
+
private getLottieHtml;
|
|
37
|
+
render(): any;
|
|
38
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-tooltip
|
|
4
|
+
* Wraps content and shows a tooltip bubble on hover/focus.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <dropi-tooltip text="Más información" position="top">
|
|
8
|
+
* <dropi-button text="Hover" />
|
|
9
|
+
* </dropi-tooltip>
|
|
10
|
+
*/
|
|
11
|
+
export declare class DropiTooltip {
|
|
12
|
+
/** Tooltip text */
|
|
13
|
+
text: string;
|
|
14
|
+
/** Position: top | bottom | left | right */
|
|
15
|
+
position: TooltipPosition;
|
|
16
|
+
/** Max CSS width of the bubble */
|
|
17
|
+
maxWidth: string;
|
|
18
|
+
/** Delay in ms before showing */
|
|
19
|
+
showDelay: number;
|
|
20
|
+
private visible;
|
|
21
|
+
private showTimer;
|
|
22
|
+
private show;
|
|
23
|
+
private hide;
|
|
24
|
+
render(): any;
|
|
25
|
+
}
|