@cscfi/csc-ui 1.3.8 → 1.3.10
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/dist/cjs/c-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/c-alert.cjs.entry.js +1 -1
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +54 -18
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/cjs/c-data-table.cjs.entry.js +1 -1
- package/dist/cjs/c-menu_2.cjs.entry.js +25 -3
- package/dist/cjs/c-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/c-pagination.cjs.entry.js +1 -1
- package/dist/cjs/c-swiper.cjs.entry.js +1 -1
- package/dist/cjs/c-tabs.cjs.entry.js +1 -1
- package/dist/cjs/c-tag.cjs.entry.js +4 -2
- package/dist/cjs/c-tag.cjs.entry.js.map +1 -1
- package/dist/cjs/c-tags.cjs.entry.js +11 -1
- package/dist/cjs/c-tags.cjs.entry.js.map +1 -1
- package/dist/cjs/c-toast.cjs.entry.js +1 -1
- package/dist/cjs/csc-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{mdi-16842afc.js → mdi-66dcba4d.js} +21 -21
- package/dist/cjs/mdi-66dcba4d.js.map +1 -0
- package/dist/collection/components/c-button/c-button.css +1 -0
- package/dist/collection/components/c-dropdown/c-dropdown.js +20 -3
- package/dist/collection/components/c-dropdown/c-dropdown.js.map +1 -1
- package/dist/collection/components/c-otp-input/c-otp-input.js +69 -10
- package/dist/collection/components/c-otp-input/c-otp-input.js.map +1 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.css +1 -4
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js +1 -1
- package/dist/collection/components/c-side-navigation-item/c-side-navigation-item.js.map +1 -1
- package/dist/collection/components/c-tag/c-tag.css +30 -5
- package/dist/collection/components/c-tag/c-tag.js +20 -0
- package/dist/collection/components/c-tag/c-tag.js.map +1 -1
- package/dist/collection/components/c-tags/c-tags.css +1 -2
- package/dist/collection/components/c-tags/c-tags.js +34 -0
- package/dist/collection/components/c-tags/c-tags.js.map +1 -1
- package/dist/components/c-button.js +1 -1
- package/dist/components/c-button.js.map +1 -1
- package/dist/components/c-dropdown2.js +20 -3
- package/dist/components/c-dropdown2.js.map +1 -1
- package/dist/components/c-menu-items2.js +23 -1
- package/dist/components/c-menu-items2.js.map +1 -1
- package/dist/components/c-otp-input.js +35 -13
- package/dist/components/c-otp-input.js.map +1 -1
- package/dist/components/c-side-navigation-item.js +9 -3
- package/dist/components/c-side-navigation-item.js.map +1 -1
- package/dist/components/c-tag.js +5 -2
- package/dist/components/c-tag.js.map +1 -1
- package/dist/components/c-tags.js +14 -2
- package/dist/components/c-tags.js.map +1 -1
- package/dist/components/mdi.js +20 -20
- package/dist/components/mdi.js.map +1 -1
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/csc-ui.esm.js.map +1 -1
- package/dist/csc-ui/p-0ad7a08a.entry.js +2 -0
- package/dist/csc-ui/p-0ad7a08a.entry.js.map +1 -0
- package/dist/csc-ui/p-15830fd5.entry.js +2 -0
- package/dist/csc-ui/p-15830fd5.entry.js.map +1 -0
- package/dist/csc-ui/{p-ed924115.entry.js → p-1b131625.entry.js} +2 -2
- package/dist/csc-ui/p-384747dc.entry.js +2 -0
- package/dist/csc-ui/p-384747dc.entry.js.map +1 -0
- package/dist/csc-ui/{p-6a6a89ef.entry.js → p-512ab32d.entry.js} +2 -2
- package/dist/csc-ui/{p-ddff8326.entry.js → p-61b96bb4.entry.js} +2 -2
- package/dist/csc-ui/p-77ee7a57.entry.js +2 -0
- package/dist/csc-ui/p-77ee7a57.entry.js.map +1 -0
- package/dist/csc-ui/{p-a7aa8fcf.entry.js → p-91057659.entry.js} +2 -2
- package/dist/csc-ui/{p-c2767e00.entry.js → p-9b186504.entry.js} +2 -2
- package/dist/csc-ui/{p-49a7a96d.entry.js → p-b483a551.entry.js} +2 -2
- package/dist/csc-ui/{p-aae874cf.entry.js → p-c579ce63.entry.js} +2 -2
- package/dist/csc-ui/{p-1c767310.js → p-f2ecd5ac.js} +1 -1
- package/dist/csc-ui/p-f2ecd5ac.js.map +1 -0
- package/dist/esm/c-accordion-item.entry.js +1 -1
- package/dist/esm/c-alert.entry.js +1 -1
- package/dist/esm/c-autocomplete_34.entry.js +54 -18
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/esm/c-data-table.entry.js +1 -1
- package/dist/esm/c-menu_2.entry.js +24 -2
- package/dist/esm/c-menu_2.entry.js.map +1 -1
- package/dist/esm/c-pagination.entry.js +1 -1
- package/dist/esm/c-swiper.entry.js +1 -1
- package/dist/esm/c-tabs.entry.js +1 -1
- package/dist/esm/c-tag.entry.js +4 -2
- package/dist/esm/c-tag.entry.js.map +1 -1
- package/dist/esm/c-tags.entry.js +12 -2
- package/dist/esm/c-tags.entry.js.map +1 -1
- package/dist/esm/c-toast.entry.js +1 -1
- package/dist/esm/csc-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mdi-e10c3ab4.js → mdi-b4859722.js} +21 -21
- package/dist/esm/mdi-b4859722.js.map +1 -0
- package/dist/types/components/c-dropdown/c-dropdown.d.ts +3 -1
- package/dist/types/components/c-otp-input/c-otp-input.d.ts +5 -1
- package/dist/types/components/c-tag/c-tag.d.ts +1 -0
- package/dist/types/components/c-tags/c-tags.d.ts +3 -0
- package/dist/types/components.d.ts +28 -0
- package/loader/index.d.ts +10 -2
- package/loader/package.json +2 -1
- package/package.json +1 -1
- package/vscode-data.json +30 -1
- package/dist/cjs/getScrollParent-5d488045.js +0 -28
- package/dist/cjs/getScrollParent-5d488045.js.map +0 -1
- package/dist/cjs/mdi-16842afc.js.map +0 -1
- package/dist/components/getScrollParent.js +0 -26
- package/dist/components/getScrollParent.js.map +0 -1
- package/dist/csc-ui/p-1c767310.js.map +0 -1
- package/dist/csc-ui/p-3f0e51ff.js +0 -2
- package/dist/csc-ui/p-3f0e51ff.js.map +0 -1
- package/dist/csc-ui/p-7f97a326.entry.js +0 -2
- package/dist/csc-ui/p-7f97a326.entry.js.map +0 -1
- package/dist/csc-ui/p-b67f8551.entry.js +0 -2
- package/dist/csc-ui/p-b67f8551.entry.js.map +0 -1
- package/dist/csc-ui/p-c28fe9f0.entry.js +0 -2
- package/dist/csc-ui/p-c28fe9f0.entry.js.map +0 -1
- package/dist/csc-ui/p-fc47b970.entry.js +0 -2
- package/dist/csc-ui/p-fc47b970.entry.js.map +0 -1
- package/dist/esm/getScrollParent-f876ad1b.js +0 -26
- package/dist/esm/getScrollParent-f876ad1b.js.map +0 -1
- package/dist/esm/mdi-e10c3ab4.js.map +0 -1
- /package/dist/csc-ui/{p-ed924115.entry.js.map → p-1b131625.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-6a6a89ef.entry.js.map → p-512ab32d.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-ddff8326.entry.js.map → p-61b96bb4.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-a7aa8fcf.entry.js.map → p-91057659.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-c2767e00.entry.js.map → p-9b186504.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-49a7a96d.entry.js.map → p-b483a551.entry.js.map} +0 -0
- /package/dist/csc-ui/{p-aae874cf.entry.js.map → p-c579ce63.entry.js.map} +0 -0
|
@@ -18,9 +18,9 @@ export declare class CDropdown {
|
|
|
18
18
|
private _resizeObserver;
|
|
19
19
|
private _inputElement;
|
|
20
20
|
private _dummyElement;
|
|
21
|
-
private _scrollParent;
|
|
22
21
|
private _isMobile;
|
|
23
22
|
private _listItems;
|
|
23
|
+
private _originalOverflowValue;
|
|
24
24
|
renderedList: any;
|
|
25
25
|
isOpen: boolean;
|
|
26
26
|
statusText: string;
|
|
@@ -34,6 +34,8 @@ export declare class CDropdown {
|
|
|
34
34
|
private _setIsMobile;
|
|
35
35
|
private _isOpening;
|
|
36
36
|
private _handleOpen;
|
|
37
|
+
private _disableScroll;
|
|
38
|
+
private _enableScroll;
|
|
37
39
|
componentDidLoad(): void;
|
|
38
40
|
selectItem(index: number): Promise<boolean>;
|
|
39
41
|
updateList(): Promise<void>;
|
|
@@ -7,16 +7,18 @@ export declare class COtpInput {
|
|
|
7
7
|
length: number;
|
|
8
8
|
valid: boolean;
|
|
9
9
|
validation: string;
|
|
10
|
+
value: string;
|
|
10
11
|
changeValue: EventEmitter<string>;
|
|
11
12
|
completion: EventEmitter<string>;
|
|
12
13
|
statusText: string;
|
|
14
|
+
reset(): Promise<void>;
|
|
13
15
|
private _backSpacePressed;
|
|
14
16
|
private _debounce;
|
|
15
17
|
private _isPasting;
|
|
16
18
|
private _inputs;
|
|
17
19
|
private static _uniqueId;
|
|
18
|
-
private _value;
|
|
19
20
|
onValidationMessageChange(): void;
|
|
21
|
+
onValueChange(value: string): void;
|
|
20
22
|
private _emitValue;
|
|
21
23
|
private _getElements;
|
|
22
24
|
private _onFocus;
|
|
@@ -25,7 +27,9 @@ export declare class COtpInput {
|
|
|
25
27
|
private _onInput;
|
|
26
28
|
private _onPaste;
|
|
27
29
|
private _updateStatusText;
|
|
30
|
+
private _handleValueChange;
|
|
28
31
|
private _renderInput;
|
|
29
32
|
componentWillLoad(): void;
|
|
33
|
+
componentDidLoad(): void;
|
|
30
34
|
render(): any;
|
|
31
35
|
}
|
|
@@ -1013,6 +1013,10 @@ export namespace Components {
|
|
|
1013
1013
|
* Length of the OTP code
|
|
1014
1014
|
*/
|
|
1015
1015
|
"length": number;
|
|
1016
|
+
/**
|
|
1017
|
+
* Reset input value
|
|
1018
|
+
*/
|
|
1019
|
+
"reset": () => Promise<void>;
|
|
1016
1020
|
/**
|
|
1017
1021
|
* Set the validíty of the input
|
|
1018
1022
|
*/
|
|
@@ -1021,6 +1025,10 @@ export namespace Components {
|
|
|
1021
1025
|
* Custom validation message
|
|
1022
1026
|
*/
|
|
1023
1027
|
"validation": string;
|
|
1028
|
+
/**
|
|
1029
|
+
* Value of the input
|
|
1030
|
+
*/
|
|
1031
|
+
"value": string;
|
|
1024
1032
|
}
|
|
1025
1033
|
/**
|
|
1026
1034
|
* @group Layout
|
|
@@ -1694,11 +1702,19 @@ export namespace Components {
|
|
|
1694
1702
|
* Remove the hover effect
|
|
1695
1703
|
*/
|
|
1696
1704
|
"flat": boolean;
|
|
1705
|
+
/**
|
|
1706
|
+
* Size of the tag
|
|
1707
|
+
*/
|
|
1708
|
+
"size": 'default' | 'small';
|
|
1697
1709
|
}
|
|
1698
1710
|
/**
|
|
1699
1711
|
* @group buttons
|
|
1700
1712
|
*/
|
|
1701
1713
|
interface CTags {
|
|
1714
|
+
/**
|
|
1715
|
+
* Size of the tags
|
|
1716
|
+
*/
|
|
1717
|
+
"size": 'default' | 'small';
|
|
1702
1718
|
}
|
|
1703
1719
|
/**
|
|
1704
1720
|
* @group Form
|
|
@@ -4044,6 +4060,10 @@ declare namespace LocalJSX {
|
|
|
4044
4060
|
* Custom validation message
|
|
4045
4061
|
*/
|
|
4046
4062
|
"validation"?: string;
|
|
4063
|
+
/**
|
|
4064
|
+
* Value of the input
|
|
4065
|
+
*/
|
|
4066
|
+
"value"?: string;
|
|
4047
4067
|
}
|
|
4048
4068
|
/**
|
|
4049
4069
|
* @group Layout
|
|
@@ -4776,11 +4796,19 @@ declare namespace LocalJSX {
|
|
|
4776
4796
|
* Emit close event on close icon click
|
|
4777
4797
|
*/
|
|
4778
4798
|
"onClose"?: (event: CTagCustomEvent<any>) => void;
|
|
4799
|
+
/**
|
|
4800
|
+
* Size of the tag
|
|
4801
|
+
*/
|
|
4802
|
+
"size"?: 'default' | 'small';
|
|
4779
4803
|
}
|
|
4780
4804
|
/**
|
|
4781
4805
|
* @group buttons
|
|
4782
4806
|
*/
|
|
4783
4807
|
interface CTags {
|
|
4808
|
+
/**
|
|
4809
|
+
* Size of the tags
|
|
4810
|
+
*/
|
|
4811
|
+
"size"?: 'default' | 'small';
|
|
4784
4812
|
}
|
|
4785
4813
|
/**
|
|
4786
4814
|
* @group Form
|
package/loader/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
export * from '../dist/types/components';
|
|
3
2
|
export interface CustomElementsDefineOptions {
|
|
4
3
|
exclude?: string[];
|
|
@@ -9,5 +8,14 @@ export interface CustomElementsDefineOptions {
|
|
|
9
8
|
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
9
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
11
10
|
}
|
|
12
|
-
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions):
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
13
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
package/loader/package.json
CHANGED
package/package.json
CHANGED
package/vscode-data.json
CHANGED
|
@@ -1217,6 +1217,10 @@
|
|
|
1217
1217
|
{
|
|
1218
1218
|
"name": "validation",
|
|
1219
1219
|
"description": "Custom validation message"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"name": "value",
|
|
1223
|
+
"description": "Value of the input"
|
|
1220
1224
|
}
|
|
1221
1225
|
]
|
|
1222
1226
|
},
|
|
@@ -2034,6 +2038,18 @@
|
|
|
2034
2038
|
{
|
|
2035
2039
|
"name": "flat",
|
|
2036
2040
|
"description": "Remove the hover effect"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"name": "size",
|
|
2044
|
+
"description": "Size of the tag",
|
|
2045
|
+
"values": [
|
|
2046
|
+
{
|
|
2047
|
+
"name": "default"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"name": "small"
|
|
2051
|
+
}
|
|
2052
|
+
]
|
|
2037
2053
|
}
|
|
2038
2054
|
]
|
|
2039
2055
|
},
|
|
@@ -2043,7 +2059,20 @@
|
|
|
2043
2059
|
"kind": "markdown",
|
|
2044
2060
|
"value": ""
|
|
2045
2061
|
},
|
|
2046
|
-
"attributes": [
|
|
2062
|
+
"attributes": [
|
|
2063
|
+
{
|
|
2064
|
+
"name": "size",
|
|
2065
|
+
"description": "Size of the tags",
|
|
2066
|
+
"values": [
|
|
2067
|
+
{
|
|
2068
|
+
"name": "default"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"name": "small"
|
|
2072
|
+
}
|
|
2073
|
+
]
|
|
2074
|
+
}
|
|
2075
|
+
]
|
|
2047
2076
|
},
|
|
2048
2077
|
{
|
|
2049
2078
|
"name": "c-text-field",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const getScrollParent = (element) => {
|
|
4
|
-
return new Promise((resolve) => {
|
|
5
|
-
if (!element) {
|
|
6
|
-
resolve(undefined);
|
|
7
|
-
}
|
|
8
|
-
let parent = element.parentNode;
|
|
9
|
-
while (parent) {
|
|
10
|
-
if (parent.shadowRoot === undefined) {
|
|
11
|
-
parent = parent.host;
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
const { overflow, overflowX } = window.getComputedStyle(parent);
|
|
15
|
-
if (overflowX !== 'scroll' &&
|
|
16
|
-
overflow.split(' ').every((o) => o === 'auto' || o === 'scroll')) {
|
|
17
|
-
resolve(parent);
|
|
18
|
-
}
|
|
19
|
-
parent = parent.parentNode;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
resolve(document.documentElement);
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
exports.getScrollParent = getScrollParent;
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=getScrollParent-5d488045.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"getScrollParent-5d488045.js","mappings":";;MAAa,eAAe,GAAG,CAAC,OAAO;EACrC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO;IACzB,IAAI,CAAC,OAAO,EAAE;MACZ,OAAO,CAAC,SAAS,CAAC,CAAC;KACpB;IAED,IAAI,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAEhC,OAAO,MAAM,EAAE;MACb,IAAI,MAAM,CAAC,UAAU,KAAK,SAAS,EAAE;QACnC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;OACtB;WAAM;QACL,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;QAEhE,IACE,SAAS,KAAK,QAAQ;UACtB,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,MAAM,IAAI,CAAC,KAAK,QAAQ,CAAC,EAChE;UACA,OAAO,CAAC,MAAM,CAAC,CAAC;SACjB;QAED,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC;OAC5B;KACF;IAED,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;GACnC,CAAC,CAAC;AACL;;;;","names":[],"sources":["src/utils/getScrollParent.ts"],"sourcesContent":["export const getScrollParent = (element): Promise<HTMLElement> => {\n return new Promise((resolve) => {\n if (!element) {\n resolve(undefined);\n }\n\n let parent = element.parentNode;\n\n while (parent) {\n if (parent.shadowRoot === undefined) {\n parent = parent.host;\n } else {\n const { overflow, overflowX } = window.getComputedStyle(parent);\n\n if (\n overflowX !== 'scroll' &&\n overflow.split(' ').every((o) => o === 'auto' || o === 'scroll')\n ) {\n resolve(parent);\n }\n\n parent = parent.parentNode;\n }\n }\n\n resolve(document.documentElement);\n });\n};\n"],"version":3}
|