commons-shared-web-ui 0.0.34 → 0.0.36
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
|
@@ -1312,6 +1312,61 @@ declare class FormSectionComponent implements OnInit, OnDestroy {
|
|
|
1312
1312
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "lib-form-section", never, { "config": { "alias": "config"; "required": false; }; "controller": { "alias": "controller"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, false, never>;
|
|
1313
1313
|
}
|
|
1314
1314
|
|
|
1315
|
+
interface ConfirmationModalConfig {
|
|
1316
|
+
title: string;
|
|
1317
|
+
headerTheme?: 'light' | 'dark';
|
|
1318
|
+
icon?: string | {
|
|
1319
|
+
type: 'material' | 'custom';
|
|
1320
|
+
value: string;
|
|
1321
|
+
color?: string;
|
|
1322
|
+
};
|
|
1323
|
+
width?: string;
|
|
1324
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
1325
|
+
customClass?: string;
|
|
1326
|
+
type?: 'modal' | 'side-panel';
|
|
1327
|
+
panelPosition?: 'left' | 'right' | 'top' | 'bottom';
|
|
1328
|
+
panelSpacing?: string;
|
|
1329
|
+
panelWidth?: string;
|
|
1330
|
+
panelHeight?: string;
|
|
1331
|
+
backgroundColor?: string;
|
|
1332
|
+
borderRadius?: string;
|
|
1333
|
+
borderTopLeftRadius?: string;
|
|
1334
|
+
borderTopRightRadius?: string;
|
|
1335
|
+
borderBottomLeftRadius?: string;
|
|
1336
|
+
borderBottomRightRadius?: string;
|
|
1337
|
+
padding?: string;
|
|
1338
|
+
headerBackgroundColor?: string;
|
|
1339
|
+
headerTextColor?: string;
|
|
1340
|
+
headerBorderBottom?: string;
|
|
1341
|
+
bodyTextColor?: string;
|
|
1342
|
+
footerBackgroundColor?: string;
|
|
1343
|
+
footerBorderTop?: string;
|
|
1344
|
+
confirmButton: {
|
|
1345
|
+
label: string;
|
|
1346
|
+
type: 'primary' | 'danger' | 'warning';
|
|
1347
|
+
disabled?: boolean;
|
|
1348
|
+
loading?: boolean;
|
|
1349
|
+
};
|
|
1350
|
+
cancelButton?: {
|
|
1351
|
+
label?: string;
|
|
1352
|
+
show?: boolean;
|
|
1353
|
+
};
|
|
1354
|
+
customFooter?: boolean;
|
|
1355
|
+
formMode?: boolean;
|
|
1356
|
+
closeOnBackdrop?: boolean;
|
|
1357
|
+
closeOnEsc?: boolean;
|
|
1358
|
+
showCloseButton?: boolean;
|
|
1359
|
+
showCodeSnippetButton?: boolean;
|
|
1360
|
+
ariaLabel?: string;
|
|
1361
|
+
ariaDescribedBy?: string;
|
|
1362
|
+
labels?: {
|
|
1363
|
+
closeAriaLabel?: string;
|
|
1364
|
+
codeSnippetAriaLabel?: string;
|
|
1365
|
+
codeSnippetTitle?: string;
|
|
1366
|
+
iconAltText?: string;
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1315
1370
|
declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
1316
1371
|
private fb;
|
|
1317
1372
|
private expressionService;
|
|
@@ -1338,6 +1393,8 @@ declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
1338
1393
|
multiSaveError: string;
|
|
1339
1394
|
private destroy$;
|
|
1340
1395
|
mediaDeviceInput: ElementRef<HTMLInputElement>;
|
|
1396
|
+
/** Host div for the library picker — always in DOM, moved to body to escape parent transforms */
|
|
1397
|
+
libraryModalRef: ElementRef<HTMLDivElement>;
|
|
1341
1398
|
showMediaMenu: boolean;
|
|
1342
1399
|
showYoutubeInput: boolean;
|
|
1343
1400
|
youtubeUrlInput: string;
|
|
@@ -1424,6 +1481,7 @@ declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
1424
1481
|
id: number;
|
|
1425
1482
|
fg: FormGroup;
|
|
1426
1483
|
}): number;
|
|
1484
|
+
ngAfterViewInit(): void;
|
|
1427
1485
|
ngOnDestroy(): void;
|
|
1428
1486
|
registerControl(): void;
|
|
1429
1487
|
getValidators(): ValidatorFn[];
|
|
@@ -1532,6 +1590,8 @@ declare class FormFieldComponent implements OnInit, OnDestroy {
|
|
|
1532
1590
|
* Returns `null` when not configured; the caller skips the API call.
|
|
1533
1591
|
*/
|
|
1534
1592
|
private buildLibraryUploadRequest;
|
|
1593
|
+
/** Config object for the cc-confirmation-modal used as the library picker. */
|
|
1594
|
+
get libraryModalConfig(): ConfirmationModalConfig;
|
|
1535
1595
|
onMediaMenuLibrary(): void;
|
|
1536
1596
|
private _loadLibraryImages;
|
|
1537
1597
|
getLibraryItemUrl(item: any): string;
|
|
@@ -1911,6 +1971,7 @@ declare class DropdownComponent implements ControlValueAccessor, OnInit, OnChang
|
|
|
1911
1971
|
onTouched: () => void;
|
|
1912
1972
|
ngOnInit(): void;
|
|
1913
1973
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1974
|
+
private get validOptions();
|
|
1914
1975
|
private updateFromConfig;
|
|
1915
1976
|
private updateFromLabels;
|
|
1916
1977
|
get requiredMarker(): string;
|
|
@@ -2027,6 +2088,7 @@ declare class CheckboxComponent implements ControlValueAccessor, OnInit, OnChang
|
|
|
2027
2088
|
private updateFromConfig;
|
|
2028
2089
|
private updateFromLabels;
|
|
2029
2090
|
get isGroup(): boolean;
|
|
2091
|
+
get visibleOptions(): CheckboxOption[];
|
|
2030
2092
|
get requiredMarker(): string;
|
|
2031
2093
|
writeValue(value: any): void;
|
|
2032
2094
|
registerOnChange(fn: any): void;
|
|
@@ -2113,6 +2175,7 @@ declare class RadioComponent implements ControlValueAccessor, OnInit {
|
|
|
2113
2175
|
ngOnChanges(changes: any): void;
|
|
2114
2176
|
private updateFromConfig;
|
|
2115
2177
|
get requiredMarker(): string;
|
|
2178
|
+
get visibleOptions(): RadioOption[];
|
|
2116
2179
|
writeValue(value: any): void;
|
|
2117
2180
|
registerOnChange(fn: any): void;
|
|
2118
2181
|
registerOnTouched(fn: any): void;
|
|
@@ -2460,61 +2523,6 @@ interface DropdownAction {
|
|
|
2460
2523
|
confirmationTitle?: string;
|
|
2461
2524
|
}
|
|
2462
2525
|
|
|
2463
|
-
interface ConfirmationModalConfig {
|
|
2464
|
-
title: string;
|
|
2465
|
-
headerTheme?: 'light' | 'dark';
|
|
2466
|
-
icon?: string | {
|
|
2467
|
-
type: 'material' | 'custom';
|
|
2468
|
-
value: string;
|
|
2469
|
-
color?: string;
|
|
2470
|
-
};
|
|
2471
|
-
width?: string;
|
|
2472
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
2473
|
-
customClass?: string;
|
|
2474
|
-
type?: 'modal' | 'side-panel';
|
|
2475
|
-
panelPosition?: 'left' | 'right' | 'top' | 'bottom';
|
|
2476
|
-
panelSpacing?: string;
|
|
2477
|
-
panelWidth?: string;
|
|
2478
|
-
panelHeight?: string;
|
|
2479
|
-
backgroundColor?: string;
|
|
2480
|
-
borderRadius?: string;
|
|
2481
|
-
borderTopLeftRadius?: string;
|
|
2482
|
-
borderTopRightRadius?: string;
|
|
2483
|
-
borderBottomLeftRadius?: string;
|
|
2484
|
-
borderBottomRightRadius?: string;
|
|
2485
|
-
padding?: string;
|
|
2486
|
-
headerBackgroundColor?: string;
|
|
2487
|
-
headerTextColor?: string;
|
|
2488
|
-
headerBorderBottom?: string;
|
|
2489
|
-
bodyTextColor?: string;
|
|
2490
|
-
footerBackgroundColor?: string;
|
|
2491
|
-
footerBorderTop?: string;
|
|
2492
|
-
confirmButton: {
|
|
2493
|
-
label: string;
|
|
2494
|
-
type: 'primary' | 'danger' | 'warning';
|
|
2495
|
-
disabled?: boolean;
|
|
2496
|
-
loading?: boolean;
|
|
2497
|
-
};
|
|
2498
|
-
cancelButton?: {
|
|
2499
|
-
label?: string;
|
|
2500
|
-
show?: boolean;
|
|
2501
|
-
};
|
|
2502
|
-
customFooter?: boolean;
|
|
2503
|
-
formMode?: boolean;
|
|
2504
|
-
closeOnBackdrop?: boolean;
|
|
2505
|
-
closeOnEsc?: boolean;
|
|
2506
|
-
showCloseButton?: boolean;
|
|
2507
|
-
showCodeSnippetButton?: boolean;
|
|
2508
|
-
ariaLabel?: string;
|
|
2509
|
-
ariaDescribedBy?: string;
|
|
2510
|
-
labels?: {
|
|
2511
|
-
closeAriaLabel?: string;
|
|
2512
|
-
codeSnippetAriaLabel?: string;
|
|
2513
|
-
codeSnippetTitle?: string;
|
|
2514
|
-
iconAltText?: string;
|
|
2515
|
-
};
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
2526
|
declare class ButtonDropdownComponent {
|
|
2519
2527
|
private elementRef;
|
|
2520
2528
|
private router;
|
|
@@ -2570,6 +2578,7 @@ declare class ConfirmationModalComponent implements OnInit, OnDestroy {
|
|
|
2570
2578
|
mergedConfig: ConfirmationModalConfig;
|
|
2571
2579
|
private previousActiveElement;
|
|
2572
2580
|
private isSubmitting;
|
|
2581
|
+
private _resetSubmittingTimer?;
|
|
2573
2582
|
ngOnInit(): void;
|
|
2574
2583
|
ngOnChanges(): void;
|
|
2575
2584
|
private updateConfig;
|
|
@@ -3614,6 +3623,7 @@ declare class SmartTableComponent implements OnInit, OnChanges, AfterViewInit, O
|
|
|
3614
3623
|
value: any;
|
|
3615
3624
|
} | null): void;
|
|
3616
3625
|
getFilterDisplay(filter: any): string;
|
|
3626
|
+
getValidFilterOptions(filter: any): any[];
|
|
3617
3627
|
isFilterActive(filter: any): boolean;
|
|
3618
3628
|
/**
|
|
3619
3629
|
* Assembles the current table state into a `TableDataChangeEvent` object.
|
package/package.json
CHANGED
|
@@ -199,7 +199,7 @@ $default-smart-form-config: (
|
|
|
199
199
|
|
|
200
200
|
// ── Form action bar (submit / previous) ─────────────────────────────────────
|
|
201
201
|
actions-border: 1px solid #E5E7EB,
|
|
202
|
-
actions-padding: 20px
|
|
202
|
+
actions-padding: 20px 10px 0,
|
|
203
203
|
actions-gap: 12px,
|
|
204
204
|
|
|
205
205
|
btn-primary-bg: #3B82F6,
|
|
@@ -436,7 +436,7 @@ $theme-2-smart-form-config: (
|
|
|
436
436
|
|
|
437
437
|
// ── Actions bar ─────────────────────────────────────────────────────────────
|
|
438
438
|
actions-border: 1px solid #1E293B,
|
|
439
|
-
actions-padding: 20px
|
|
439
|
+
actions-padding: 20px 10px 0,
|
|
440
440
|
actions-gap: 12px,
|
|
441
441
|
|
|
442
442
|
btn-primary-bg: #818CF8,
|