cps-ui-kit 21.7.0 → 21.8.0
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/cps-ui-kit.mjs +167 -57
- package/fesm2022/cps-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cps-ui-kit.d.ts +74 -16
package/package.json
CHANGED
package/types/cps-ui-kit.d.ts
CHANGED
|
@@ -1401,21 +1401,25 @@ declare class CpsDividerComponent {
|
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Determines whether the divider is vertically aligned.
|
|
1403
1403
|
* @group Props
|
|
1404
|
+
* @default false
|
|
1404
1405
|
*/
|
|
1405
1406
|
vertical: i0.InputSignal<boolean>;
|
|
1406
1407
|
/**
|
|
1407
1408
|
* Color of the divider.
|
|
1408
1409
|
* @group Props
|
|
1410
|
+
* @default line-mid
|
|
1409
1411
|
*/
|
|
1410
1412
|
color: i0.InputSignal<string>;
|
|
1411
1413
|
/**
|
|
1412
1414
|
* Type of the divider.
|
|
1413
1415
|
* @group Props
|
|
1416
|
+
* @default solid
|
|
1414
1417
|
*/
|
|
1415
1418
|
type: i0.InputSignal<CpsDividerType>;
|
|
1416
1419
|
/**
|
|
1417
1420
|
* Thickness of the divider, a number denoting pixels or a string.
|
|
1418
1421
|
* @group Props
|
|
1422
|
+
* @default 1px
|
|
1419
1423
|
*/
|
|
1420
1424
|
thickness: i0.InputSignal<string | number>;
|
|
1421
1425
|
constructor(document: Document);
|
|
@@ -1513,7 +1517,7 @@ declare class CpsExpansionPanelComponent implements OnInit, AfterViewInit {
|
|
|
1513
1517
|
* CpsFileUploadComponent is an advanced uploader with dragdrop support.
|
|
1514
1518
|
* @group Components
|
|
1515
1519
|
*/
|
|
1516
|
-
declare class CpsFileUploadComponent implements OnInit, OnChanges {
|
|
1520
|
+
declare class CpsFileUploadComponent implements OnInit, OnChanges, OnDestroy {
|
|
1517
1521
|
/**
|
|
1518
1522
|
* Expected extensions of a file to be uploaded. E.g. 'doc or .doc'.
|
|
1519
1523
|
* @group Props
|
|
@@ -1525,15 +1529,20 @@ declare class CpsFileUploadComponent implements OnInit, OnChanges {
|
|
|
1525
1529
|
*/
|
|
1526
1530
|
fileDesc: string;
|
|
1527
1531
|
/**
|
|
1528
|
-
*
|
|
1532
|
+
* Aria label for the component, used for accessibility.
|
|
1529
1533
|
* @group Props
|
|
1530
1534
|
*/
|
|
1531
|
-
|
|
1535
|
+
ariaLabel: string;
|
|
1532
1536
|
/**
|
|
1533
1537
|
* Expected file info block, explaining some extra stuff about file.
|
|
1534
1538
|
* @group Props
|
|
1535
1539
|
*/
|
|
1536
1540
|
fileInfo: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* Whether the component is disabled.
|
|
1543
|
+
* @group Props
|
|
1544
|
+
*/
|
|
1545
|
+
disabled: boolean;
|
|
1537
1546
|
/**
|
|
1538
1547
|
* Callback for uploaded file processing.
|
|
1539
1548
|
* @group Props
|
|
@@ -1549,6 +1558,12 @@ declare class CpsFileUploadComponent implements OnInit, OnChanges {
|
|
|
1549
1558
|
* @group Props
|
|
1550
1559
|
*/
|
|
1551
1560
|
fileNameTooltipOffset: number;
|
|
1561
|
+
/**
|
|
1562
|
+
* Width of the component, a number denoting pixels or a string.
|
|
1563
|
+
* @group Props
|
|
1564
|
+
* @default 100%
|
|
1565
|
+
*/
|
|
1566
|
+
width: i0.InputSignal<string | number>;
|
|
1552
1567
|
/**
|
|
1553
1568
|
* Callback to invoke when file is uploaded.
|
|
1554
1569
|
* @param {File} File
|
|
@@ -1561,6 +1576,24 @@ declare class CpsFileUploadComponent implements OnInit, OnChanges {
|
|
|
1561
1576
|
* @group Emits
|
|
1562
1577
|
*/
|
|
1563
1578
|
fileUploadFailed: EventEmitter<string>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Callback to invoke when file is processed.
|
|
1581
|
+
* @param {File} File
|
|
1582
|
+
* @group Emits
|
|
1583
|
+
*/
|
|
1584
|
+
fileProcessed: EventEmitter<File>;
|
|
1585
|
+
/**
|
|
1586
|
+
* Callback to invoke when file processing fails.
|
|
1587
|
+
* @param {string} - file name
|
|
1588
|
+
* @group Emits
|
|
1589
|
+
*/
|
|
1590
|
+
fileProcessingFailed: EventEmitter<string>;
|
|
1591
|
+
/**
|
|
1592
|
+
* Callback to invoke when file processing is cancelled.
|
|
1593
|
+
* @param {string} - file name
|
|
1594
|
+
* @group Emits
|
|
1595
|
+
*/
|
|
1596
|
+
fileProcessingCancelled: EventEmitter<string>;
|
|
1564
1597
|
/**
|
|
1565
1598
|
* Callback to invoke when uploaded file is removed.
|
|
1566
1599
|
* @param {string} - file name
|
|
@@ -1568,20 +1601,36 @@ declare class CpsFileUploadComponent implements OnInit, OnChanges {
|
|
|
1568
1601
|
*/
|
|
1569
1602
|
uploadedFileRemoved: EventEmitter<string>;
|
|
1570
1603
|
fileInput?: ElementRef<HTMLInputElement>;
|
|
1604
|
+
dropzoneButton?: ElementRef<HTMLButtonElement>;
|
|
1571
1605
|
isDragoverFile: boolean;
|
|
1572
1606
|
uploadedFile?: File;
|
|
1573
1607
|
extensionsString: string;
|
|
1574
1608
|
extensionsStringAsterisks: string;
|
|
1575
|
-
cvtWidth: string
|
|
1609
|
+
cvtWidth: i0.Signal<string>;
|
|
1576
1610
|
isProcessingFile: boolean;
|
|
1611
|
+
errorMessage: string;
|
|
1612
|
+
private dragCounter;
|
|
1613
|
+
private readonly cancelProcessing$;
|
|
1577
1614
|
ngOnInit(): void;
|
|
1615
|
+
ngOnDestroy(): void;
|
|
1578
1616
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1617
|
+
resetState(): void;
|
|
1618
|
+
openFilePicker(): void;
|
|
1619
|
+
onDragEnter(): void;
|
|
1620
|
+
onDragLeave(): void;
|
|
1621
|
+
onDragEnd(): void;
|
|
1622
|
+
onDragOver(event: DragEvent): void;
|
|
1623
|
+
onDrop(event: Event): void;
|
|
1579
1624
|
updateExtensionsString(): void;
|
|
1580
1625
|
tryUploadFile(event: Event): void;
|
|
1626
|
+
onRemoveUploadedFile(event: Event): void;
|
|
1627
|
+
onCancelFileProcessing(event: Event): void;
|
|
1628
|
+
cancelFileProcessing(): void;
|
|
1581
1629
|
removeUploadedFile(): void;
|
|
1582
1630
|
private _isFileExtensionValid;
|
|
1583
1631
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsFileUploadComponent, never>;
|
|
1584
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsFileUploadComponent, "cps-file-upload", never, { "extensions": { "alias": "extensions"; "required": false; }; "fileDesc": { "alias": "fileDesc"; "required": false; }; "
|
|
1632
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsFileUploadComponent, "cps-file-upload", never, { "extensions": { "alias": "extensions"; "required": false; }; "fileDesc": { "alias": "fileDesc"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "fileInfo": { "alias": "fileInfo"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fileProcessingCallback": { "alias": "fileProcessingCallback"; "required": false; }; "fileNameTooltipPosition": { "alias": "fileNameTooltipPosition"; "required": false; }; "fileNameTooltipOffset": { "alias": "fileNameTooltipOffset"; "required": false; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "fileUploaded": "fileUploaded"; "fileUploadFailed": "fileUploadFailed"; "fileProcessed": "fileProcessed"; "fileProcessingFailed": "fileProcessingFailed"; "fileProcessingCancelled": "fileProcessingCancelled"; "uploadedFileRemoved": "uploadedFileRemoved"; }, never, never, true, never>;
|
|
1633
|
+
static ngAcceptInputType_disabled: unknown;
|
|
1585
1634
|
static ngAcceptInputType_fileNameTooltipOffset: unknown;
|
|
1586
1635
|
}
|
|
1587
1636
|
|
|
@@ -1761,42 +1810,51 @@ declare class CpsProgressCircularComponent implements OnInit {
|
|
|
1761
1810
|
* CpsProgressLinearComponent is a process status indicator of a rectangular form.
|
|
1762
1811
|
* @group Components
|
|
1763
1812
|
*/
|
|
1764
|
-
declare class CpsProgressLinearComponent
|
|
1765
|
-
private document;
|
|
1813
|
+
declare class CpsProgressLinearComponent {
|
|
1766
1814
|
/**
|
|
1767
1815
|
* Width of the progress bar, of type number denoting pixels or string.
|
|
1768
1816
|
* @group Props
|
|
1817
|
+
* @default 100%
|
|
1769
1818
|
*/
|
|
1770
|
-
width:
|
|
1819
|
+
width: i0.InputSignal<string | number>;
|
|
1771
1820
|
/**
|
|
1772
1821
|
* Height of the progress bar, of type number denoting pixels or string.
|
|
1773
1822
|
* @group Props
|
|
1823
|
+
* @default 0.5rem
|
|
1774
1824
|
*/
|
|
1775
|
-
height:
|
|
1825
|
+
height: i0.InputSignal<string | number>;
|
|
1776
1826
|
/**
|
|
1777
1827
|
* Color of the progress bar.
|
|
1778
1828
|
* @group Props
|
|
1829
|
+
* @default var(--cps-accent-primary)
|
|
1779
1830
|
*/
|
|
1780
|
-
color: string
|
|
1831
|
+
color: i0.InputSignal<string>;
|
|
1781
1832
|
/**
|
|
1782
1833
|
* Background color of the progress bar.
|
|
1783
1834
|
* @group Props
|
|
1835
|
+
* @default white
|
|
1784
1836
|
*/
|
|
1785
|
-
bgColor: string
|
|
1837
|
+
bgColor: i0.InputSignal<string>;
|
|
1786
1838
|
/**
|
|
1787
1839
|
* Option to control the opacity of the progress bar.
|
|
1788
1840
|
* @group Props
|
|
1841
|
+
* @default 1
|
|
1789
1842
|
*/
|
|
1790
|
-
opacity:
|
|
1843
|
+
opacity: i0.InputSignal<string | number>;
|
|
1791
1844
|
/**
|
|
1792
1845
|
* Border radius of the progress bar, of type number denoting pixels or string.
|
|
1793
1846
|
* @group Props
|
|
1847
|
+
* @default 0
|
|
1794
1848
|
*/
|
|
1795
|
-
radius:
|
|
1796
|
-
|
|
1797
|
-
|
|
1849
|
+
radius: i0.InputSignal<string | number>;
|
|
1850
|
+
private readonly document;
|
|
1851
|
+
cvtWidth: i0.Signal<string>;
|
|
1852
|
+
cvtHeight: i0.Signal<string>;
|
|
1853
|
+
cvtRadius: i0.Signal<string>;
|
|
1854
|
+
cssColor: i0.Signal<string>;
|
|
1855
|
+
cssBgColor: i0.Signal<string>;
|
|
1798
1856
|
static ɵfac: i0.ɵɵFactoryDeclaration<CpsProgressLinearComponent, never>;
|
|
1799
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CpsProgressLinearComponent, "cps-progress-linear", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "color": { "alias": "color"; "required": false; }; "bgColor": { "alias": "bgColor"; "required": false; }; "opacity": { "alias": "opacity"; "required": false; }; "radius": { "alias": "radius"; "required": false; }; }, {}, never, never, true, never>;
|
|
1857
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CpsProgressLinearComponent, "cps-progress-linear", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "opacity": { "alias": "opacity"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1800
1858
|
}
|
|
1801
1859
|
|
|
1802
1860
|
/**
|