@eduboxpro/studio 0.1.27 → 0.1.30
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/fesm2022/eduboxpro-studio.mjs +313 -22
- package/fesm2022/eduboxpro-studio.mjs.map +1 -1
- package/index.d.ts +81 -6
- package/package.json +1 -1
- package/src/styles/_tokens.scss +2 -1
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { Params, IsActiveMatchOptions } from '@angular/router';
|
|
|
4
4
|
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
5
|
import { icons } from 'lucide-angular';
|
|
6
6
|
import { Placement } from '@floating-ui/dom';
|
|
7
|
+
import * as _eduboxpro_studio from '@eduboxpro/studio';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Theme mode: light or dark
|
|
@@ -2234,8 +2235,6 @@ declare class PaginationComponent {
|
|
|
2234
2235
|
firstLabel: _angular_core.InputSignal<string>;
|
|
2235
2236
|
lastLabel: _angular_core.InputSignal<string>;
|
|
2236
2237
|
infoTemplate: _angular_core.InputSignal<string>;
|
|
2237
|
-
pageChange: _angular_core.OutputEmitterRef<PaginationPageChangeEvent>;
|
|
2238
|
-
pageSizeChange: _angular_core.OutputEmitterRef<PaginationPageSizeChangeEvent>;
|
|
2239
2238
|
protected totalPages: _angular_core.Signal<number>;
|
|
2240
2239
|
protected isFirstPage: _angular_core.Signal<boolean>;
|
|
2241
2240
|
protected isLastPage: _angular_core.Signal<boolean>;
|
|
@@ -2249,9 +2248,8 @@ declare class PaginationComponent {
|
|
|
2249
2248
|
goToPrevious(): void;
|
|
2250
2249
|
goToNext(): void;
|
|
2251
2250
|
onPageSizeChange(newSize: number): void;
|
|
2252
|
-
private emitPageChange;
|
|
2253
2251
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
2254
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "studio-pagination", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "maxVisiblePages": { "alias": "maxVisiblePages"; "required": false; "isSignal": true; }; "showPageSizeSelector": { "alias": "showPageSizeSelector"; "required": false; "isSignal": true; }; "showPageNumbers": { "alias": "showPageNumbers"; "required": false; "isSignal": true; }; "showInfo": { "alias": "showInfo"; "required": false; "isSignal": true; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; "isSignal": true; }; "pageSizeLabel": { "alias": "pageSizeLabel"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "firstLabel": { "alias": "firstLabel"; "required": false; "isSignal": true; }; "lastLabel": { "alias": "lastLabel"; "required": false; "isSignal": true; }; "infoTemplate": { "alias": "infoTemplate"; "required": false; "isSignal": true; }; }, { "page": "pageChange"; "pageSize": "pageSizeChange";
|
|
2252
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "studio-pagination", never, { "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "maxVisiblePages": { "alias": "maxVisiblePages"; "required": false; "isSignal": true; }; "showPageSizeSelector": { "alias": "showPageSizeSelector"; "required": false; "isSignal": true; }; "showPageNumbers": { "alias": "showPageNumbers"; "required": false; "isSignal": true; }; "showInfo": { "alias": "showInfo"; "required": false; "isSignal": true; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; "isSignal": true; }; "pageSizeLabel": { "alias": "pageSizeLabel"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "firstLabel": { "alias": "firstLabel"; "required": false; "isSignal": true; }; "lastLabel": { "alias": "lastLabel"; "required": false; "isSignal": true; }; "infoTemplate": { "alias": "infoTemplate"; "required": false; "isSignal": true; }; }, { "page": "pageChange"; "pageSize": "pageSizeChange"; }, never, never, true, never>;
|
|
2255
2253
|
}
|
|
2256
2254
|
|
|
2257
2255
|
/**
|
|
@@ -2765,6 +2763,49 @@ type TextareaSize = 'sm' | 'md' | 'lg';
|
|
|
2765
2763
|
type TextareaColor = 'primary' | 'secondary' | 'success' | 'error';
|
|
2766
2764
|
type TextareaRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
2767
2765
|
|
|
2766
|
+
type ToastSeverity = 'success' | 'info' | 'warning' | 'error';
|
|
2767
|
+
type ToastPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center';
|
|
2768
|
+
interface ToastMessage {
|
|
2769
|
+
id: string;
|
|
2770
|
+
severity: ToastSeverity;
|
|
2771
|
+
summary: string;
|
|
2772
|
+
detail?: string;
|
|
2773
|
+
life?: number;
|
|
2774
|
+
sticky?: boolean;
|
|
2775
|
+
closable?: boolean;
|
|
2776
|
+
}
|
|
2777
|
+
interface ToastConfig {
|
|
2778
|
+
position?: ToastPosition;
|
|
2779
|
+
life?: number;
|
|
2780
|
+
closable?: boolean;
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
declare class ToastService {
|
|
2784
|
+
private _messages;
|
|
2785
|
+
readonly messages: _angular_core.Signal<ToastMessage[]>;
|
|
2786
|
+
private defaultLife;
|
|
2787
|
+
private counter;
|
|
2788
|
+
private generateId;
|
|
2789
|
+
show(severity: ToastSeverity, summary: string, detail?: string, config?: Partial<ToastConfig>): void;
|
|
2790
|
+
success(summary: string, detail?: string, config?: Partial<ToastConfig>): void;
|
|
2791
|
+
info(summary: string, detail?: string, config?: Partial<ToastConfig>): void;
|
|
2792
|
+
warning(summary: string, detail?: string, config?: Partial<ToastConfig>): void;
|
|
2793
|
+
error(summary: string, detail?: string, config?: Partial<ToastConfig>): void;
|
|
2794
|
+
remove(id: string): void;
|
|
2795
|
+
clear(): void;
|
|
2796
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastService, never>;
|
|
2797
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ToastService>;
|
|
2798
|
+
}
|
|
2799
|
+
|
|
2800
|
+
declare class ToastComponent {
|
|
2801
|
+
protected toastService: ToastService;
|
|
2802
|
+
position: _angular_core.InputSignal<ToastPosition>;
|
|
2803
|
+
protected hostClasses: _angular_core.Signal<string>;
|
|
2804
|
+
getIcon(severity: ToastSeverity): string;
|
|
2805
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
2806
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "studio-toast", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2807
|
+
}
|
|
2808
|
+
|
|
2768
2809
|
declare class TooltipComponent {
|
|
2769
2810
|
content: _angular_core.InputSignal<string>;
|
|
2770
2811
|
trigger: _angular_core.InputSignal<"click" | "hover" | "focus">;
|
|
@@ -2780,6 +2821,40 @@ declare class TooltipComponent {
|
|
|
2780
2821
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TooltipComponent, "studio-tooltip", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; "trigger": { "alias": "trigger"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "openDelay": { "alias": "openDelay"; "required": false; "isSignal": true; }; "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; "arrow": { "alias": "arrow"; "required": false; "isSignal": true; }; "arrowSize": { "alias": "arrowSize"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2781
2822
|
}
|
|
2782
2823
|
|
|
2824
|
+
type ConfirmDialogVariant = 'default' | 'danger' | 'warning';
|
|
2825
|
+
interface ConfirmDialogConfig {
|
|
2826
|
+
title: string;
|
|
2827
|
+
message: string;
|
|
2828
|
+
confirmText?: string;
|
|
2829
|
+
cancelText?: string;
|
|
2830
|
+
variant?: ConfirmDialogVariant;
|
|
2831
|
+
icon?: string;
|
|
2832
|
+
onConfirm?: () => void;
|
|
2833
|
+
onCancel?: () => void;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
declare class ConfirmDialogService {
|
|
2837
|
+
private _config;
|
|
2838
|
+
private _visible;
|
|
2839
|
+
readonly config: _angular_core.Signal<ConfirmDialogConfig | null>;
|
|
2840
|
+
readonly visible: _angular_core.Signal<boolean>;
|
|
2841
|
+
confirm(config: ConfirmDialogConfig): void;
|
|
2842
|
+
accept(): void;
|
|
2843
|
+
reject(): void;
|
|
2844
|
+
close(): void;
|
|
2845
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogService, never>;
|
|
2846
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ConfirmDialogService>;
|
|
2847
|
+
}
|
|
2848
|
+
|
|
2849
|
+
declare class ConfirmDialogComponent {
|
|
2850
|
+
protected confirmService: ConfirmDialogService;
|
|
2851
|
+
protected config: _angular_core.Signal<_eduboxpro_studio.ConfirmDialogConfig | null>;
|
|
2852
|
+
protected handleEscape(): void;
|
|
2853
|
+
getIcon(): string;
|
|
2854
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
2855
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfirmDialogComponent, "studio-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2783
2858
|
interface ButtonToggleGroupOption {
|
|
2784
2859
|
value: string | number;
|
|
2785
2860
|
label: string;
|
|
@@ -3127,5 +3202,5 @@ declare function loadGoogleFonts(fonts: Array<{
|
|
|
3127
3202
|
display?: 'auto' | 'block' | 'swap' | 'fallback' | 'optional';
|
|
3128
3203
|
}>): void;
|
|
3129
3204
|
|
|
3130
|
-
export { BadgeComponent, BadgeWrapperComponent, BottomNavigationComponent, ButtonComponent, ButtonGroupComponent, ButtonToggleGroupComponent, COUNTRY_OPTIONS, CardComponent, ChatComponent, ChatInputComponent, ChatMessageComponent, CheckboxComponent, ColorPickerCompactComponent, ColorPickerComponent, DEFAULT_COLOR_PRESETS, DrawerComponent, DrawerService, DropdownComponent, IconComponent, InputComponent, InspectorComponent, MASK_PRESETS, MaskDirective, MaskEngine, MenuComponent, ModalComponent, NavbarComponent, PaginationComponent, PhoneInputComponent, PopoverComponent, RadioButtonComponent, STUDIO_CONFIG, SelectComponent, SidebarComponent, StudioConfigService, SwitchComponent, TableColumnDirective, TableComponent, TabsComponent, TextareaComponent, ThemeSwitchComponent, TooltipComponent, classNames, isSafeUrl, loadGoogleFont, loadGoogleFonts, provideStudioConfig, provideStudioIcons, sanitizeUrl, withConfigDefault };
|
|
3131
|
-
export type { BadgeColor, BadgeDefaultsConfig, BadgeIconPosition, BadgeRadius, BadgeSize, BadgeVariant, BadgeWrapperPosition, BadgeWrapperSize, BottomNavigationDefaultsConfig, BottomNavigationFabPosition, BottomNavigationItem, BottomNavigationLabelMode, BottomNavigationSize, BottomNavigationVariant, ButtonDefaultsConfig, ButtonGroupDefaultsConfig, ButtonToggleGroupDefaultsConfig, ButtonToggleGroupOption, ButtonToggleGroupValue, CardColor, CardDefaultsConfig, CardImagePosition, CardOrientation, CardPadding, CardRadius, CardShadow, CardSize, CardVariant, ChatMessage, ChatSize, ChatUser, ChatVariant, CheckboxColor, CheckboxDefaultsConfig, CheckboxRadius, CheckboxSize, CheckboxVariant, ColorConfig, ColorFormat, ColorPickerDefaultsConfig, ColorPickerSize, ColorPickerVariant, ColorPreset, ColorSwatchGroup, ColorValue, ComponentsConfig, CountryOption, DrawerAnimationEasing, DrawerCloseButtonPosition, DrawerConfig, DrawerDefaultsConfig, DrawerPosition, DrawerRadius, DrawerRole, DrawerShadowSize, DrawerSize, DropdownDefaultsConfig, DropdownItem, DropdownPosition, EmptyStateConfig, HSL, InputDefaultsConfig, InputMode, InputType, InspectorComponentSize, InspectorComponentVariant, InspectorData, InspectorGroup, InspectorGroupDivider, InspectorOption, InspectorParameter, InspectorParameterType, InspectorSection, InspectorSpacing, MaskConfig, MaskPreset, MaskResult, MaskToken, MenuColor, MenuExpandEvent, MenuExpandIconPosition, MenuItem, MenuItemBadgeColor, MenuItemClickEvent, MenuItemCommandEvent, MenuItemIconPosition, MenuItemTarget, MenuItemTooltipPosition, MenuMode, MenuOrientation, MenuRadius, MenuSize, MenuSpacing, MenuVariant, ModalAnimation, ModalDefaultsConfig, ModalPosition, ModalSize, ModalVariant, NavbarColor, NavbarShadow, NavbarSize, NavbarVariant, PaginationPageChangeEvent, PaginationPageSizeChangeEvent, PaginationSize, PaginationVariant, PhoneCountry, PopoverAnimation, PopoverBoundary, PopoverConfig, PopoverDefaultsConfig, PopoverPosition, PopoverSize, PopoverTrigger, PopoverVariant, PopoverWidth, RGB, RadioButtonColor, RadioButtonDefaultsConfig, RadioButtonRadius, RadioButtonSize, RadioButtonVariant, RowAction, RowExpansion, SelectDefaultsConfig, SelectDisplayContext, SelectOption, SelectOptionGroup, SelectPosition, SelectSize, SelectVariant, SelectionEvent, SelectionMode, SidebarConfig, SidebarDefaultsConfig, SidebarPosition, SidebarSize, SidebarVariant, SortDirection, SortEvent, StudioConfig, StudioThemeConfig, SwitchDefaultsConfig, TabItem, TableCellContext, TableColumn, TableDefaultsConfig, TableDensity, TableHeaderContext, TableSort, TableState, TableVariant, TabsDefaultsConfig, TabsOrientation, TabsSize, TabsVariant, TextareaColor, TextareaDefaultsConfig, TextareaRadius, TextareaSize, TextareaVariant, ThemeMode, TooltipDefaultsConfig };
|
|
3205
|
+
export { BadgeComponent, BadgeWrapperComponent, BottomNavigationComponent, ButtonComponent, ButtonGroupComponent, ButtonToggleGroupComponent, COUNTRY_OPTIONS, CardComponent, ChatComponent, ChatInputComponent, ChatMessageComponent, CheckboxComponent, ColorPickerCompactComponent, ColorPickerComponent, ConfirmDialogComponent, ConfirmDialogService, DEFAULT_COLOR_PRESETS, DrawerComponent, DrawerService, DropdownComponent, IconComponent, InputComponent, InspectorComponent, MASK_PRESETS, MaskDirective, MaskEngine, MenuComponent, ModalComponent, NavbarComponent, PaginationComponent, PhoneInputComponent, PopoverComponent, RadioButtonComponent, STUDIO_CONFIG, SelectComponent, SidebarComponent, StudioConfigService, SwitchComponent, TableColumnDirective, TableComponent, TabsComponent, TextareaComponent, ThemeSwitchComponent, ToastComponent, ToastService, TooltipComponent, classNames, isSafeUrl, loadGoogleFont, loadGoogleFonts, provideStudioConfig, provideStudioIcons, sanitizeUrl, withConfigDefault };
|
|
3206
|
+
export type { BadgeColor, BadgeDefaultsConfig, BadgeIconPosition, BadgeRadius, BadgeSize, BadgeVariant, BadgeWrapperPosition, BadgeWrapperSize, BottomNavigationDefaultsConfig, BottomNavigationFabPosition, BottomNavigationItem, BottomNavigationLabelMode, BottomNavigationSize, BottomNavigationVariant, ButtonDefaultsConfig, ButtonGroupDefaultsConfig, ButtonToggleGroupDefaultsConfig, ButtonToggleGroupOption, ButtonToggleGroupValue, CardColor, CardDefaultsConfig, CardImagePosition, CardOrientation, CardPadding, CardRadius, CardShadow, CardSize, CardVariant, ChatMessage, ChatSize, ChatUser, ChatVariant, CheckboxColor, CheckboxDefaultsConfig, CheckboxRadius, CheckboxSize, CheckboxVariant, ColorConfig, ColorFormat, ColorPickerDefaultsConfig, ColorPickerSize, ColorPickerVariant, ColorPreset, ColorSwatchGroup, ColorValue, ComponentsConfig, ConfirmDialogConfig, ConfirmDialogVariant, CountryOption, DrawerAnimationEasing, DrawerCloseButtonPosition, DrawerConfig, DrawerDefaultsConfig, DrawerPosition, DrawerRadius, DrawerRole, DrawerShadowSize, DrawerSize, DropdownDefaultsConfig, DropdownItem, DropdownPosition, EmptyStateConfig, HSL, InputDefaultsConfig, InputMode, InputType, InspectorComponentSize, InspectorComponentVariant, InspectorData, InspectorGroup, InspectorGroupDivider, InspectorOption, InspectorParameter, InspectorParameterType, InspectorSection, InspectorSpacing, MaskConfig, MaskPreset, MaskResult, MaskToken, MenuColor, MenuExpandEvent, MenuExpandIconPosition, MenuItem, MenuItemBadgeColor, MenuItemClickEvent, MenuItemCommandEvent, MenuItemIconPosition, MenuItemTarget, MenuItemTooltipPosition, MenuMode, MenuOrientation, MenuRadius, MenuSize, MenuSpacing, MenuVariant, ModalAnimation, ModalDefaultsConfig, ModalPosition, ModalSize, ModalVariant, NavbarColor, NavbarShadow, NavbarSize, NavbarVariant, PaginationPageChangeEvent, PaginationPageSizeChangeEvent, PaginationSize, PaginationVariant, PhoneCountry, PopoverAnimation, PopoverBoundary, PopoverConfig, PopoverDefaultsConfig, PopoverPosition, PopoverSize, PopoverTrigger, PopoverVariant, PopoverWidth, RGB, RadioButtonColor, RadioButtonDefaultsConfig, RadioButtonRadius, RadioButtonSize, RadioButtonVariant, RowAction, RowExpansion, SelectDefaultsConfig, SelectDisplayContext, SelectOption, SelectOptionGroup, SelectPosition, SelectSize, SelectVariant, SelectionEvent, SelectionMode, SidebarConfig, SidebarDefaultsConfig, SidebarPosition, SidebarSize, SidebarVariant, SortDirection, SortEvent, StudioConfig, StudioThemeConfig, SwitchDefaultsConfig, TabItem, TableCellContext, TableColumn, TableDefaultsConfig, TableDensity, TableHeaderContext, TableSort, TableState, TableVariant, TabsDefaultsConfig, TabsOrientation, TabsSize, TabsVariant, TextareaColor, TextareaDefaultsConfig, TextareaRadius, TextareaSize, TextareaVariant, ThemeMode, ToastConfig, ToastMessage, ToastPosition, ToastSeverity, TooltipDefaultsConfig };
|
package/package.json
CHANGED
package/src/styles/_tokens.scss
CHANGED