@foxeltech/angular-ui 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { HttpClient, HttpEvent, HttpErrorResponse, HttpInterceptor, HttpRequest,
|
|
|
9
9
|
import * as rxjs from 'rxjs';
|
|
10
10
|
import { Observable, Subject } from 'rxjs';
|
|
11
11
|
import * as i30 from '@angular/forms';
|
|
12
|
-
import { NgForm, NgControl, ControlValueAccessor
|
|
12
|
+
import { NgForm, ValidationErrors, NgControl, ControlValueAccessor } from '@angular/forms';
|
|
13
13
|
import * as i46 from '@angular/material/dialog';
|
|
14
14
|
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
15
15
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
@@ -196,10 +196,10 @@ declare class BaseDialogComponent<T = any> extends BaseComponent implements Afte
|
|
|
196
196
|
constructor(ref: MatDialogRef<any>, bindings: any, toastr: FxToastrService, api: HttpWrapper, dialog: MatDialog);
|
|
197
197
|
ngAfterViewInit(): void;
|
|
198
198
|
ngOnInit(): void;
|
|
199
|
-
accept(form: NgForm, params?: null): void
|
|
200
|
-
create(params?: any): void
|
|
201
|
-
update(params?: any): void
|
|
202
|
-
updateInfo(params?: any): void
|
|
199
|
+
accept(form: NgForm, params?: null): Promise<void>;
|
|
200
|
+
create(params?: any): Promise<void>;
|
|
201
|
+
update(params?: any): Promise<void>;
|
|
202
|
+
updateInfo(params?: any): Promise<void>;
|
|
203
203
|
cancel(): void;
|
|
204
204
|
validate(): boolean;
|
|
205
205
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseDialogComponent<any>, never>;
|
|
@@ -248,6 +248,63 @@ declare class FxUtils {
|
|
|
248
248
|
static formatSizeUnits(bytes: number): string;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
declare class FxValidators {
|
|
252
|
+
/**
|
|
253
|
+
* Name fields: firstName, lastName, groupName, projectName, displayName
|
|
254
|
+
* Allows: letters (Unicode), spaces, hyphens, apostrophes, periods
|
|
255
|
+
*/
|
|
256
|
+
static validateName(value: string): ValidationErrors | null;
|
|
257
|
+
/**
|
|
258
|
+
* Description fields
|
|
259
|
+
* Allows: letters, digits, spaces, basic punctuation
|
|
260
|
+
*/
|
|
261
|
+
static validateDescription(value: string): ValidationErrors | null;
|
|
262
|
+
/**
|
|
263
|
+
* Email fields
|
|
264
|
+
*/
|
|
265
|
+
static validateEmail(value: string): ValidationErrors | null;
|
|
266
|
+
/**
|
|
267
|
+
* Phone fields
|
|
268
|
+
* Allows: digits, optional leading +, spaces, hyphens, parentheses (7-15 digits)
|
|
269
|
+
*/
|
|
270
|
+
static validatePhone(value: string): ValidationErrors | null;
|
|
271
|
+
/**
|
|
272
|
+
* Code/identifier fields: server code, template code, templateId
|
|
273
|
+
* Allows: alphanumeric, hyphens, underscores
|
|
274
|
+
*/
|
|
275
|
+
static validateCode(value: string): ValidationErrors | null;
|
|
276
|
+
/**
|
|
277
|
+
* Domain fields
|
|
278
|
+
* Standard domain pattern with optional port
|
|
279
|
+
*/
|
|
280
|
+
static validateDomain(value: string): ValidationErrors | null;
|
|
281
|
+
/**
|
|
282
|
+
* Subject fields (email subject)
|
|
283
|
+
* Allows: letters, digits, spaces, common punctuation, template placeholders {{}}
|
|
284
|
+
*/
|
|
285
|
+
static validateSubject(value: string): ValidationErrors | null;
|
|
286
|
+
/**
|
|
287
|
+
* Tag fields
|
|
288
|
+
* Allows: alphanumeric, hyphens, underscores, dots, spaces
|
|
289
|
+
*/
|
|
290
|
+
static validateTag(value: string): ValidationErrors | null;
|
|
291
|
+
/**
|
|
292
|
+
* URL fields: proxy, masterUrl
|
|
293
|
+
* Standard URL pattern
|
|
294
|
+
*/
|
|
295
|
+
static validateUrl(value: string): ValidationErrors | null;
|
|
296
|
+
/**
|
|
297
|
+
* Numeric string fields: timeout, memoryLimit, cpuCores
|
|
298
|
+
* Allows: digits, optional decimal point
|
|
299
|
+
*/
|
|
300
|
+
static validateNumeric(value: string): ValidationErrors | null;
|
|
301
|
+
/**
|
|
302
|
+
* Version fields (semver-like)
|
|
303
|
+
* Allows: digits, dots, hyphens, plus, letters
|
|
304
|
+
*/
|
|
305
|
+
static validateVersion(value: string): ValidationErrors | null;
|
|
306
|
+
}
|
|
307
|
+
|
|
251
308
|
declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
|
|
252
309
|
declare class TranslationModule {
|
|
253
310
|
static forRoot(): ModuleWithProviders<TranslationModule>;
|
|
@@ -774,6 +831,7 @@ declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
774
831
|
private intersectionObserver?;
|
|
775
832
|
private canInit;
|
|
776
833
|
private isMobile;
|
|
834
|
+
private containerWidth;
|
|
777
835
|
constructor(ref: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
|
|
778
836
|
ngAfterViewInit(): void;
|
|
779
837
|
ngOnChanges(): void;
|
|
@@ -785,6 +843,7 @@ declare class ChartComponent implements OnChanges, AfterViewInit, OnDestroy {
|
|
|
785
843
|
private forceMediaRecalc;
|
|
786
844
|
private rebuildChart;
|
|
787
845
|
private registry;
|
|
846
|
+
private calcPieLayout;
|
|
788
847
|
private detectType;
|
|
789
848
|
private buildOptions;
|
|
790
849
|
private resolvePalette;
|
|
@@ -1019,5 +1078,5 @@ declare class UiModule {
|
|
|
1019
1078
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiModule>;
|
|
1020
1079
|
}
|
|
1021
1080
|
|
|
1022
|
-
export { AuthInterceptor, AuthStateService, BaseComponent, BaseDialogComponent, BaseResolver, BaseTableComponent, BreadcrumbService, ButtonComponent, ChartComponent, CheckboxComponent, CircleProgressBar, ConfirmationDialogComponent, DatetimePicker, DndUploadComponent, DrawerComponent, FlowConnection, FxLoadingService, FxStorageService, FxToastrService, FxUtils, HasPermissionDirective, HeroIconComponent, HttpLoaderFactory, HttpWrapper, InputComponent, KanbanBoardComponent, LoadingPanel, MY_MOMENT_FORMATS, NotificationService, PermissionGuard, PermissionService, QuillStyleLoaderService, RadioButtonComponent, RadioButtonToggleComponent, RichTextAreaComponent, SearchBarComponent, SelectComponent, SkeletonTableLoadingComponent, SliderComponent, SwitchComponent, TabComponent, TabGroupComponent, TableCell, TagComponent, ThemeService, ToastComponent, ToastContainerComponent, TranslationModule, TranslationService, TreeDiagram, TrimOnBlurDirective, UiModule };
|
|
1081
|
+
export { AuthInterceptor, AuthStateService, BaseComponent, BaseDialogComponent, BaseResolver, BaseTableComponent, BreadcrumbService, ButtonComponent, ChartComponent, CheckboxComponent, CircleProgressBar, ConfirmationDialogComponent, DatetimePicker, DndUploadComponent, DrawerComponent, FlowConnection, FxLoadingService, FxStorageService, FxToastrService, FxUtils, FxValidators, HasPermissionDirective, HeroIconComponent, HttpLoaderFactory, HttpWrapper, InputComponent, KanbanBoardComponent, LoadingPanel, MY_MOMENT_FORMATS, NotificationService, PermissionGuard, PermissionService, QuillStyleLoaderService, RadioButtonComponent, RadioButtonToggleComponent, RichTextAreaComponent, SearchBarComponent, SelectComponent, SkeletonTableLoadingComponent, SliderComponent, SwitchComponent, TabComponent, TabGroupComponent, TableCell, TagComponent, ThemeService, ToastComponent, ToastContainerComponent, TranslationModule, TranslationService, TreeDiagram, TrimOnBlurDirective, UiModule };
|
|
1023
1082
|
export type { Breadcrumb, ColumnChangedEvent, IChartType, IRadioButton, KanbanColumn, TableResult, TagType, ToastData, TreeNode, UploadResult };
|
package/package.json
CHANGED
|
@@ -12,7 +12,13 @@
|
|
|
12
12
|
class="relative z-10 flex flex-col items-center gap-4 p-6 rounded-2xl shadow-xl bg-bg-primary/70 border border-border-strong backdrop-bg-primary/70"
|
|
13
13
|
style="min-width: 220px; max-width: 90%"
|
|
14
14
|
>
|
|
15
|
-
<svg fill="
|
|
15
|
+
<svg fill="url(#spinner-gradient)" width="50" height="50" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
16
|
+
<defs>
|
|
17
|
+
<linearGradient id="spinner-gradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
18
|
+
<stop offset="0%" style="stop-color: rgb(var(--gradient-primary-start)); stop-opacity: 1" />
|
|
19
|
+
<stop offset="100%" style="stop-color: rgb(var(--gradient-primary-end)); stop-opacity: 1" />
|
|
20
|
+
</linearGradient>
|
|
21
|
+
</defs>
|
|
16
22
|
<circle cx="4" cy="12" r="0">
|
|
17
23
|
<animate begin="0;spinner_z0Or.end" attributeName="r" calcMode="spline" dur="0.5s" keySplines=".36,.6,.31,1" values="0;3" fill="freeze"/>
|
|
18
24
|
<animate begin="spinner_OLMs.end" attributeName="cx" calcMode="spline" dur="0.5s" keySplines=".36,.6,.31,1" values="4;12" fill="freeze"/>
|