@haiilo/catalyst 6.4.7 → 6.5.1
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/catalyst/catalyst.css +1 -1
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +1 -1
- package/dist/catalyst/index.esm.js.map +1 -1
- package/dist/catalyst/p-19fad7af.js +2 -0
- package/dist/catalyst/p-19fad7af.js.map +1 -0
- package/dist/catalyst/p-376b504c.js +3 -0
- package/dist/catalyst/p-376b504c.js.map +1 -0
- package/dist/catalyst/p-877627af.entry.js +10 -0
- package/dist/catalyst/p-877627af.entry.js.map +1 -0
- package/dist/cjs/cat-alert_26.cjs.entry.js +173 -86
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +3 -3
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-6ec4ef6d.js → index-329a3380.js} +111 -29
- package/dist/cjs/index-329a3380.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{of-eda6baf8.js → of-8545b523.js} +2 -2
- package/dist/cjs/of-8545b523.js.map +1 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.css +10 -20
- package/dist/collection/components/cat-avatar/cat-avatar.css +2 -2
- package/dist/collection/components/cat-badge/cat-badge.css +6 -11
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +4 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +1 -0
- package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +2 -4
- package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.js.map +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js +1 -1
- package/dist/collection/components/cat-form-hint/cat-form-hint.spec.js.map +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js +1 -1
- package/dist/collection/components/cat-i18n/cat-i18n-registry.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.js +20 -4
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-notification/cat-notification.js +1 -2
- package/dist/collection/components/cat-notification/cat-notification.js.map +1 -1
- package/dist/collection/components/cat-radio/cat-radio.js +4 -1
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +19 -11
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +1 -3
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.css +3 -0
- package/dist/collection/components/cat-select/cat-select.js +13 -8
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +113 -28
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +5 -2
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +4 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +2 -4
- package/dist/collection/components/cat-tooltip/cat-tooltip.js.map +1 -1
- package/dist/components/cat-alert.js +1 -1
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +3 -1
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +1 -1
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +3 -1
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-checkbox2.js +4 -1
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker-inline.js +4 -0
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +6 -0
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-datepicker.locale.js +1 -0
- package/dist/components/cat-datepicker.locale.js.map +1 -1
- package/dist/components/cat-dropdown2.js +44 -25
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +3 -0
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js +1 -1
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js +1 -1
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-input2.js +22 -4
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-radio-group.js +25 -12
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +4 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-select2.js +18 -6
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-tabs.js +43 -27
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +7 -2
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +4 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/floating-ui.dom.esm.js +16 -5
- package/dist/components/floating-ui.dom.esm.js.map +1 -1
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +173 -86
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/dist/esm/catalyst.js +4 -4
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/{index-b424aa97.js → index-6af09649.js} +111 -29
- package/dist/esm/index-6af09649.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{of-246f9b35.js → of-a965d8fb.js} +2 -2
- package/dist/esm/of-a965d8fb.js.map +1 -0
- package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -0
- package/dist/types/components/cat-i18n/cat-i18n-registry.d.ts +1 -0
- package/dist/types/components/cat-input/cat-input.d.ts +2 -0
- package/dist/types/components/cat-radio/cat-radio.d.ts +1 -0
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +3 -0
- package/dist/types/components/cat-select/cat-select.d.ts +1 -0
- package/dist/types/components/cat-tabs/cat-tabs.d.ts +23 -4
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +1 -0
- package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -0
- package/dist/types/components.d.ts +18 -0
- package/dist/types/stencil-public-runtime.d.ts +5 -3
- package/package.json +18 -18
- package/dist/catalyst/p-77eee134.entry.js +0 -10
- package/dist/catalyst/p-77eee134.entry.js.map +0 -1
- package/dist/catalyst/p-8929f28a.js +0 -2
- package/dist/catalyst/p-8929f28a.js.map +0 -1
- package/dist/catalyst/p-f0bcebed.js +0 -3
- package/dist/catalyst/p-f0bcebed.js.map +0 -1
- package/dist/cjs/index-6ec4ef6d.js.map +0 -1
- package/dist/cjs/of-eda6baf8.js.map +0 -1
- package/dist/esm/index-b424aa97.js.map +0 -1
- package/dist/esm/of-246f9b35.js.map +0 -1
|
@@ -4,6 +4,7 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class CatRadioGroup {
|
|
6
6
|
private catRadioGroup;
|
|
7
|
+
private mutationObserver?;
|
|
7
8
|
hostElement: HTMLElement;
|
|
8
9
|
/**
|
|
9
10
|
* The name of the radio group component.
|
|
@@ -43,10 +44,12 @@ export declare class CatRadioGroup {
|
|
|
43
44
|
onDisabledChanged(disabled: boolean): void;
|
|
44
45
|
onLabelLeftChanged(labelLeft: boolean): void;
|
|
45
46
|
componentDidLoad(): void;
|
|
47
|
+
disconnectedCallback(): void;
|
|
46
48
|
onKeydown(event: KeyboardEvent): void;
|
|
47
49
|
onInput(event: MouseEvent): void;
|
|
48
50
|
onFocus(event: FocusEvent): void;
|
|
49
51
|
onBlur(event: FocusEvent): void;
|
|
50
52
|
render(): any;
|
|
53
|
+
private init;
|
|
51
54
|
private updateTabIndex;
|
|
52
55
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
1
2
|
/**
|
|
2
3
|
* Tabs are used to display multiple panels to be contained within a single
|
|
3
4
|
* window, using tabs as a navigational element.
|
|
@@ -5,11 +6,9 @@
|
|
|
5
6
|
* @part tab - The header of the tab.
|
|
6
7
|
*/
|
|
7
8
|
export declare class CatTabs {
|
|
8
|
-
private buttons;
|
|
9
9
|
private mutationObserver?;
|
|
10
10
|
hostElement: HTMLElement;
|
|
11
11
|
tabs: HTMLCatTabElement[];
|
|
12
|
-
activeTabId?: string;
|
|
13
12
|
/**
|
|
14
13
|
* The ID of the active tab.
|
|
15
14
|
*/
|
|
@@ -18,12 +17,32 @@ export declare class CatTabs {
|
|
|
18
17
|
* The alignment of the tabs.
|
|
19
18
|
*/
|
|
20
19
|
tabsAlign: 'left' | 'center' | 'right' | 'justify';
|
|
21
|
-
onActiveTabIdChanged(newActiveTab: string): void;
|
|
22
20
|
componentWillLoad(): void;
|
|
23
21
|
componentDidLoad(): void;
|
|
24
22
|
disconnectedCallback(): void;
|
|
23
|
+
onActiveTabChange(id: string): void;
|
|
25
24
|
onKeydown(event: KeyboardEvent): void;
|
|
25
|
+
/**
|
|
26
|
+
* Activates the tab with the given id.
|
|
27
|
+
*
|
|
28
|
+
* @param id The tab id.
|
|
29
|
+
*/
|
|
30
|
+
setActive(id: string): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* Activates the tab with the given index.
|
|
33
|
+
*
|
|
34
|
+
* @param index The tab index.
|
|
35
|
+
*/
|
|
36
|
+
setActiveIndex(index: number): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Emitted when active tab is changed.
|
|
39
|
+
*/
|
|
40
|
+
catChange: EventEmitter<{
|
|
41
|
+
id: string;
|
|
42
|
+
index: number;
|
|
43
|
+
}>;
|
|
26
44
|
render(): any;
|
|
27
|
-
private updateButtonsRef;
|
|
28
45
|
private syncTabs;
|
|
46
|
+
private canActivate;
|
|
47
|
+
private activate;
|
|
29
48
|
}
|
|
@@ -966,6 +966,16 @@ export namespace Components {
|
|
|
966
966
|
* The ID of the active tab.
|
|
967
967
|
*/
|
|
968
968
|
"activeTab": string;
|
|
969
|
+
/**
|
|
970
|
+
* Activates the tab with the given id.
|
|
971
|
+
* @param id The tab id.
|
|
972
|
+
*/
|
|
973
|
+
"setActive": (id: string) => Promise<void>;
|
|
974
|
+
/**
|
|
975
|
+
* Activates the tab with the given index.
|
|
976
|
+
* @param index The tab index.
|
|
977
|
+
*/
|
|
978
|
+
"setActiveIndex": (index: number) => Promise<void>;
|
|
969
979
|
/**
|
|
970
980
|
* The alignment of the tabs.
|
|
971
981
|
*/
|
|
@@ -1209,6 +1219,10 @@ export interface CatTabCustomEvent<T> extends CustomEvent<T> {
|
|
|
1209
1219
|
detail: T;
|
|
1210
1220
|
target: HTMLCatTabElement;
|
|
1211
1221
|
}
|
|
1222
|
+
export interface CatTabsCustomEvent<T> extends CustomEvent<T> {
|
|
1223
|
+
detail: T;
|
|
1224
|
+
target: HTMLCatTabsElement;
|
|
1225
|
+
}
|
|
1212
1226
|
export interface CatTextareaCustomEvent<T> extends CustomEvent<T> {
|
|
1213
1227
|
detail: T;
|
|
1214
1228
|
target: HTMLCatTextareaElement;
|
|
@@ -2492,6 +2506,10 @@ declare namespace LocalJSX {
|
|
|
2492
2506
|
* The ID of the active tab.
|
|
2493
2507
|
*/
|
|
2494
2508
|
"activeTab"?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* Emitted when active tab is changed.
|
|
2511
|
+
*/
|
|
2512
|
+
"onCatChange"?: (event: CatTabsCustomEvent<{ id: string; index: number }>) => void;
|
|
2495
2513
|
/**
|
|
2496
2514
|
* The alignment of the tabs.
|
|
2497
2515
|
*/
|
|
@@ -62,7 +62,7 @@ export interface PropOptions {
|
|
|
62
62
|
/**
|
|
63
63
|
* The name of the associated DOM attribute.
|
|
64
64
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
65
|
+
* but using this property, you can override the default behavior.
|
|
66
66
|
*/
|
|
67
67
|
attribute?: string | null;
|
|
68
68
|
/**
|
|
@@ -128,7 +128,7 @@ export interface ListenOptions {
|
|
|
128
128
|
* By default, Stencil uses several heuristics to determine if
|
|
129
129
|
* it must attach a `passive` event listener or not.
|
|
130
130
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
131
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
132
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
133
|
*/
|
|
134
134
|
passive?: boolean;
|
|
@@ -471,7 +471,7 @@ export interface FunctionalUtilities {
|
|
|
471
471
|
/**
|
|
472
472
|
* Utility for reading the children of a functional component at runtime.
|
|
473
473
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
474
|
+
* not recommended to read the children directly, and is preferable to use
|
|
475
475
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
476
|
*/
|
|
477
477
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -872,6 +872,8 @@ export declare namespace JSXBase {
|
|
|
872
872
|
}
|
|
873
873
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
874
874
|
alt?: string;
|
|
875
|
+
crossOrigin?: string;
|
|
876
|
+
crossorigin?: string;
|
|
875
877
|
decoding?: 'async' | 'auto' | 'sync';
|
|
876
878
|
importance?: 'low' | 'auto' | 'high';
|
|
877
879
|
height?: number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.1",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,49 +24,49 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@haiilo/catalyst-icons": ">=0.
|
|
27
|
+
"@haiilo/catalyst-icons": ">=1.0.0",
|
|
28
28
|
"rxjs": "^7.5.5"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@floating-ui/dom": "1.5.
|
|
32
|
-
"@stencil/core": "4.
|
|
31
|
+
"@floating-ui/dom": "1.5.3",
|
|
32
|
+
"@stencil/core": "4.4.1",
|
|
33
33
|
"autosize": "6.0.1",
|
|
34
34
|
"autosize-input": "1.0.2",
|
|
35
35
|
"flatpickr": "4.6.13",
|
|
36
|
-
"focus-trap": "7.5.
|
|
36
|
+
"focus-trap": "7.5.4",
|
|
37
37
|
"loglevel": "1.8.1",
|
|
38
38
|
"sanitize.css": "13.0.0",
|
|
39
39
|
"tabbable": "6.2.0",
|
|
40
40
|
"toastify-js": "1.12.0",
|
|
41
|
-
"@haiilo/catalyst-tokens": "6.
|
|
41
|
+
"@haiilo/catalyst-tokens": "6.5.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/core": "^7.19.6",
|
|
45
45
|
"@haiilo/catalyst-icons": "^1.0.7",
|
|
46
|
-
"@stencil/angular-output-target": "^0.8.
|
|
46
|
+
"@stencil/angular-output-target": "^0.8.2",
|
|
47
47
|
"@stencil/react-output-target": "^0.5.3",
|
|
48
|
-
"@stencil/sass": "^3.0.
|
|
48
|
+
"@stencil/sass": "^3.0.6",
|
|
49
49
|
"@stencil/vue-output-target": "^0.8.6",
|
|
50
50
|
"@types/autosize": "^4.0.1",
|
|
51
|
-
"@types/jest": "^27.5.
|
|
52
|
-
"@types/node": "^18.
|
|
53
|
-
"@types/toastify-js": "^1.12.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
55
|
-
"@typescript-eslint/parser": "^6.
|
|
51
|
+
"@types/jest": "^27.5.1",
|
|
52
|
+
"@types/node": "^18.18.5",
|
|
53
|
+
"@types/toastify-js": "^1.12.1",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
55
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
56
56
|
"babel-loader": "^9.1.3",
|
|
57
|
-
"eslint": "^8.
|
|
57
|
+
"eslint": "^8.51.0",
|
|
58
58
|
"eslint-config-prettier": "^9.0.0",
|
|
59
59
|
"jest": "^27.5.1",
|
|
60
60
|
"jest-cli": "^27.5.1",
|
|
61
|
-
"prettier": "^3.0.
|
|
61
|
+
"prettier": "^3.0.3",
|
|
62
62
|
"puppeteer": "^20.7.3",
|
|
63
63
|
"replace-in-file": "^7.0.1",
|
|
64
64
|
"rxjs": "^7.5.5",
|
|
65
65
|
"stencil-inline-svg": "^1.1.0",
|
|
66
|
-
"stylelint": "^15.10.
|
|
66
|
+
"stylelint": "^15.10.3",
|
|
67
67
|
"stylelint-config-prettier-scss": "^1.0.0",
|
|
68
|
-
"stylelint-config-standard-scss": "^
|
|
69
|
-
"typescript": "~
|
|
68
|
+
"stylelint-config-standard-scss": "^11.0.0",
|
|
69
|
+
"typescript": "~5.2.2"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "stencil build --docs",
|