@haiilo/catalyst 2.4.9 → 2.5.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/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.cdn.js +1 -0
- package/dist/catalyst/p-2fdb52c9.entry.js +2 -0
- package/dist/catalyst/p-2fdb52c9.entry.js.map +1 -0
- package/dist/catalyst/scss/_variables.scss +11 -11
- package/dist/cjs/{cat-alert_23.cjs.entry.js → cat-alert_24.cjs.entry.js} +63 -7
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -0
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cat-form-group/cat-form-group.css +3 -0
- package/dist/collection/components/cat-form-group/cat-form-group.js +66 -0
- package/dist/collection/components/cat-form-group/cat-form-group.js.map +1 -0
- package/dist/collection/components/cat-input/cat-input.js +27 -1
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-label/cat-label.js +27 -1
- package/dist/collection/components/cat-label/cat-label.js.map +1 -1
- package/dist/collection/components/cat-select/cat-select.js +47 -4
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +31 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/index.cdn.js +1 -0
- package/dist/collection/scss/_variables.scss +11 -11
- package/dist/components/cat-form-group.d.ts +11 -0
- package/dist/components/cat-form-group.js +64 -0
- package/dist/components/cat-form-group.js.map +1 -0
- package/dist/components/cat-input.js +6 -1
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-label.js +6 -1
- package/dist/components/cat-label.js.map +1 -1
- package/dist/components/cat-select-demo.js +1 -1
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +8 -2
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-textarea.js +7 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/esm/{cat-alert_23.entry.js → cat-alert_24.entry.js} +63 -8
- package/dist/esm/cat-alert_24.entry.js.map +1 -0
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-form-group/cat-form-group.d.ts +16 -0
- package/dist/types/components/cat-input/cat-input.d.ts +4 -0
- package/dist/types/components/cat-label/cat-label.d.ts +4 -0
- package/dist/types/components/cat-select/cat-select.d.ts +13 -5
- package/dist/types/components/cat-textarea/cat-textarea.d.ts +4 -0
- package/dist/types/components.d.ts +63 -2
- package/package.json +2 -2
- package/dist/catalyst/p-602c38be.entry.js +0 -2
- package/dist/catalyst/p-602c38be.entry.js.map +0 -1
- package/dist/cjs/cat-alert_23.cjs.entry.js.map +0 -1
- package/dist/esm/cat-alert_23.entry.js.map +0 -1
package/dist/esm/catalyst.js
CHANGED
|
@@ -13,7 +13,7 @@ const patchBrowser = () => {
|
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["cat-
|
|
16
|
+
return bootstrapLazy([["cat-alert_24",[[1,"cat-select-demo"],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"]}],[1,"cat-label",{"requiredMarker":[1,"required-marker"],"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
19
|
//# sourceMappingURL=catalyst.js.map
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["cat-
|
|
13
|
+
return bootstrapLazy([["cat-alert_24",[[1,"cat-select-demo"],[1,"cat-input",{"requiredMarker":[1,"required-marker"],"autoComplete":[1,"auto-complete"],"clearable":[4],"disabled":[4],"hint":[1],"icon":[1],"iconRight":[4,"icon-right"],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"max":[8],"maxLength":[2,"max-length"],"min":[8],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"textPrefix":[1,"text-prefix"],"textSuffix":[1,"text-suffix"],"readonly":[4],"required":[4],"round":[4],"type":[1],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64],"clear":[64]}],[1,"cat-pagination",{"page":[1026],"pageCount":[2,"page-count"],"activePadding":[2,"active-padding"],"sidePadding":[2,"side-padding"],"size":[1],"variant":[1],"round":[4],"compact":[4],"iconPrev":[1,"icon-prev"],"iconNext":[1,"icon-next"]}],[1,"cat-tabs",{"activeTab":[1,"active-tab"],"tabsAlign":[1,"tabs-align"],"tabs":[32],"activeTabId":[32]},[[0,"keydown","onKeydown"]]],[1,"cat-alert",{"color":[513],"icon":[1],"noIcon":[4,"no-icon"]}],[1,"cat-badge",{"variant":[513],"color":[513],"size":[513],"round":[516],"pulse":[516]}],[1,"cat-card"],[1,"cat-form-group",{"requiredMarker":[1,"required-marker"]}],[1,"cat-label",{"requiredMarker":[1,"required-marker"],"for":[1],"required":[4]}],[1,"cat-radio",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-radio-group",{"name":[1],"value":[1025],"disabled":[4],"a11yLabel":[1,"a11y-label"],"labelLeft":[4,"label-left"]},[[0,"keydown","onKeydown"],[0,"input","onInput"],[2,"blur","onBlur"]]],[1,"cat-tab",{"label":[513],"icon":[513],"iconOnly":[520,"icon-only"],"iconRight":[516,"icon-right"],"url":[513],"urlTarget":[513,"url-target"],"deactivated":[516]},[[0,"click","onClick"]]],[1,"cat-textarea",{"requiredMarker":[1,"required-marker"],"disabled":[4],"hint":[1],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"maxLength":[2,"max-length"],"minLength":[2,"min-length"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"value":[1032],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-toggle",{"checked":[1028],"disabled":[4],"identifier":[1],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-tooltip",{"content":[1],"disabled":[4],"placement":[1],"round":[4],"size":[1],"showDelay":[2,"show-delay"],"hideDelay":[2,"hide-delay"],"longTouchDuration":[2,"long-touch-duration"]},[[0,"keydown","handleKeyDown"]]],[1,"cat-select",{"requiredMarker":[1,"required-marker"],"multiple":[4],"debounce":[2],"placement":[1],"value":[1025],"disabled":[4],"placeholder":[1],"hint":[1],"identifier":[1],"label":[1],"name":[1],"labelHidden":[4,"label-hidden"],"required":[4],"clearable":[4],"tags":[4],"tagHint":[1,"tag-hint"],"noItems":[1,"no-items"],"connector":[32],"state":[32],"hasSlottedLabel":[32],"connect":[64]},[[0,"blur","onBlur"],[0,"keydown","onKeyDown"],[0,"keyup","onKeyUp"]]],[1,"cat-dropdown",{"placement":[1],"noAutoClose":[4,"no-auto-close"],"overflow":[4],"close":[64]},[[0,"catClick","clickHandler"]]],[1,"cat-avatar",{"size":[1],"round":[4],"label":[1],"initials":[1],"src":[1],"icon":[1],"url":[1],"urlTarget":[1,"url-target"],"backgroundImage":[32]}],[1,"cat-checkbox",{"checked":[1028],"disabled":[4],"identifier":[1],"indeterminate":[4],"label":[1],"labelHidden":[4,"label-hidden"],"name":[1],"required":[4],"value":[1032],"hint":[1],"labelLeft":[4,"label-left"],"hasSlottedLabel":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]}],[1,"cat-scrollable",{"noShadowX":[4,"no-shadow-x"],"noShadowY":[4,"no-shadow-y"],"noOverflowX":[4,"no-overflow-x"],"noOverflowY":[4,"no-overflow-y"],"noOverscroll":[4,"no-overscroll"],"noScrolledInit":[4,"no-scrolled-init"],"scrolledBuffer":[2,"scrolled-buffer"]}],[1,"cat-skeleton",{"effect":[1],"variant":[1],"size":[1],"lines":[2]}],[1,"cat-button",{"variant":[1],"color":[1],"active":[4],"size":[1],"name":[1],"value":[1],"disabled":[4],"loading":[4],"submit":[4],"noEllipsis":[4,"no-ellipsis"],"round":[4],"url":[1],"urlTarget":[1,"url-target"],"icon":[1],"iconOnly":[8,"icon-only"],"iconRight":[4,"icon-right"],"buttonId":[1,"button-id"],"a11yLabel":[1,"a11y-label"],"a11yCurrent":[1,"a11y-current"],"_iconOnly":[32],"doFocus":[64],"doBlur":[64],"doClick":[64]},[[0,"click","haltDisabledEvents"]]],[1,"cat-spinner",{"size":[1],"a11yLabel":[1,"a11y-label"]}],[1,"cat-icon",{"icon":[1],"size":[1],"a11yLabel":[1,"a11y-label"]}]]],["cat-modal",[[1,"cat-modal",{"size":[1],"isVisible":[32],"show":[64]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class CatFormGroup {
|
|
2
|
+
private formElements;
|
|
3
|
+
hostElement: HTMLElement;
|
|
4
|
+
/**
|
|
5
|
+
* Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br />
|
|
6
|
+
* By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br />
|
|
7
|
+
* - If there are more required, the optional will be marked.<br />
|
|
8
|
+
* - If there are less required, it will mark the required.<br /><br />
|
|
9
|
+
* If a form field had "!", the requiredMarked of the field would not change.
|
|
10
|
+
*/
|
|
11
|
+
requiredMarker: 'none' | 'required' | 'optional' | 'auto';
|
|
12
|
+
onRequiredMarker(newRequiredMarker: 'none' | 'required' | 'optional' | 'auto'): void;
|
|
13
|
+
render(): any;
|
|
14
|
+
private onSlotChange;
|
|
15
|
+
private calculate;
|
|
16
|
+
}
|
|
@@ -17,6 +17,10 @@ export declare class CatInput {
|
|
|
17
17
|
private input;
|
|
18
18
|
hostElement: HTMLElement;
|
|
19
19
|
hasSlottedLabel: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
22
|
+
*/
|
|
23
|
+
requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
20
24
|
/**
|
|
21
25
|
* Hint for form autofill feature.
|
|
22
26
|
*/
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class CatLabel {
|
|
5
5
|
private static readonly SHADOW_TARGETS;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
8
|
+
*/
|
|
9
|
+
requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
6
10
|
/**
|
|
7
11
|
* The unique identifier for a referenced input.
|
|
8
12
|
*/
|
|
@@ -79,6 +79,10 @@ export declare class CatSelect {
|
|
|
79
79
|
connector?: CatSelectConnector;
|
|
80
80
|
state: CatSelectState;
|
|
81
81
|
hasSlottedLabel: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the label need a marker to shown if the select is required or optional.
|
|
84
|
+
*/
|
|
85
|
+
requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
82
86
|
/**
|
|
83
87
|
* Enable multiple selection.
|
|
84
88
|
*/
|
|
@@ -92,11 +96,11 @@ export declare class CatSelect {
|
|
|
92
96
|
*/
|
|
93
97
|
placement: Placement;
|
|
94
98
|
/**
|
|
95
|
-
* The value of the select.
|
|
96
|
-
*
|
|
97
|
-
* The value of the select depends on whether it is allowed to choose a single item or several items.
|
|
98
|
-
* When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items.
|
|
99
|
-
*
|
|
99
|
+
* The value of the select. <br />
|
|
100
|
+
* <br />
|
|
101
|
+
* The value of the select depends on whether it is allowed to choose a single item or several items. <br />
|
|
102
|
+
* When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br />
|
|
103
|
+
* <br />
|
|
100
104
|
* In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item,
|
|
101
105
|
* in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
|
|
102
106
|
*/
|
|
@@ -145,6 +149,10 @@ export declare class CatSelect {
|
|
|
145
149
|
* Optional hint text to be displayed on the new item to be added.
|
|
146
150
|
*/
|
|
147
151
|
tagHint?: string;
|
|
152
|
+
/**
|
|
153
|
+
* The text to display in the dropdown if no results are found.
|
|
154
|
+
*/
|
|
155
|
+
noItems?: string;
|
|
148
156
|
onConnectorChange(connector: CatSelectConnector): void;
|
|
149
157
|
onValueChange(): void;
|
|
150
158
|
onStateChange(newState: CatSelectState, oldState: CatSelectState): void;
|
|
@@ -14,6 +14,10 @@ export declare class CatTextarea {
|
|
|
14
14
|
private textarea;
|
|
15
15
|
hostElement: HTMLElement;
|
|
16
16
|
hasSlottedLabel: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the label need a marker to shown if the textarea is required or optional.
|
|
19
|
+
*/
|
|
20
|
+
requiredMarker: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
17
21
|
/**
|
|
18
22
|
* Whether the textarea is disabled.
|
|
19
23
|
*/
|
|
@@ -251,6 +251,12 @@ export namespace Components {
|
|
|
251
251
|
*/
|
|
252
252
|
"placement": Placement;
|
|
253
253
|
}
|
|
254
|
+
interface CatFormGroup {
|
|
255
|
+
/**
|
|
256
|
+
* Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br /> By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br /> - If there are more required, the optional will be marked.<br /> - If there are less required, it will mark the required.<br /><br /> If a form field had "!", the requiredMarked of the field would not change.
|
|
257
|
+
*/
|
|
258
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'auto';
|
|
259
|
+
}
|
|
254
260
|
interface CatIcon {
|
|
255
261
|
/**
|
|
256
262
|
* Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
|
|
@@ -351,6 +357,10 @@ export namespace Components {
|
|
|
351
357
|
* A value is required or must be check for the form to be submittable.
|
|
352
358
|
*/
|
|
353
359
|
"required": boolean;
|
|
360
|
+
/**
|
|
361
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
362
|
+
*/
|
|
363
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
354
364
|
/**
|
|
355
365
|
* Use round input edges.
|
|
356
366
|
*/
|
|
@@ -381,6 +391,10 @@ export namespace Components {
|
|
|
381
391
|
* A value is required or must be check for the form to be submittable.
|
|
382
392
|
*/
|
|
383
393
|
"required": boolean;
|
|
394
|
+
/**
|
|
395
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
396
|
+
*/
|
|
397
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
384
398
|
}
|
|
385
399
|
interface CatModal {
|
|
386
400
|
/**
|
|
@@ -583,6 +597,10 @@ export namespace Components {
|
|
|
583
597
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
584
598
|
*/
|
|
585
599
|
"name"?: string;
|
|
600
|
+
/**
|
|
601
|
+
* The text to display in the dropdown if no results are found.
|
|
602
|
+
*/
|
|
603
|
+
"noItems"?: string;
|
|
586
604
|
/**
|
|
587
605
|
* The placeholder text to display within the select.
|
|
588
606
|
*/
|
|
@@ -595,6 +613,10 @@ export namespace Components {
|
|
|
595
613
|
* A value is required or must be checked for the form to be submittable.
|
|
596
614
|
*/
|
|
597
615
|
"required": boolean;
|
|
616
|
+
/**
|
|
617
|
+
* Whether the label need a marker to shown if the select is required or optional.
|
|
618
|
+
*/
|
|
619
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
598
620
|
/**
|
|
599
621
|
* Optional hint text to be displayed on the new item to be added.
|
|
600
622
|
*/
|
|
@@ -604,7 +626,7 @@ export namespace Components {
|
|
|
604
626
|
*/
|
|
605
627
|
"tags": boolean;
|
|
606
628
|
/**
|
|
607
|
-
* The value of the select.
|
|
629
|
+
* The value of the select. <br /> <br /> The value of the select depends on whether it is allowed to choose a single item or several items. <br /> When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br /> <br /> In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
|
|
608
630
|
*/
|
|
609
631
|
"value"?: string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue;
|
|
610
632
|
}
|
|
@@ -736,6 +758,10 @@ export namespace Components {
|
|
|
736
758
|
* A value is required or must be check for the form to be submittable.
|
|
737
759
|
*/
|
|
738
760
|
"required": boolean;
|
|
761
|
+
/**
|
|
762
|
+
* Whether the label need a marker to shown if the textarea is required or optional.
|
|
763
|
+
*/
|
|
764
|
+
"requiredMarker": 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
739
765
|
/**
|
|
740
766
|
* Specifies the initial number of lines in the textarea.
|
|
741
767
|
*/
|
|
@@ -922,6 +948,12 @@ declare global {
|
|
|
922
948
|
prototype: HTMLCatDropdownElement;
|
|
923
949
|
new (): HTMLCatDropdownElement;
|
|
924
950
|
};
|
|
951
|
+
interface HTMLCatFormGroupElement extends Components.CatFormGroup, HTMLStencilElement {
|
|
952
|
+
}
|
|
953
|
+
var HTMLCatFormGroupElement: {
|
|
954
|
+
prototype: HTMLCatFormGroupElement;
|
|
955
|
+
new (): HTMLCatFormGroupElement;
|
|
956
|
+
};
|
|
925
957
|
interface HTMLCatIconElement extends Components.CatIcon, HTMLStencilElement {
|
|
926
958
|
}
|
|
927
959
|
var HTMLCatIconElement: {
|
|
@@ -1032,6 +1064,7 @@ declare global {
|
|
|
1032
1064
|
"cat-card": HTMLCatCardElement;
|
|
1033
1065
|
"cat-checkbox": HTMLCatCheckboxElement;
|
|
1034
1066
|
"cat-dropdown": HTMLCatDropdownElement;
|
|
1067
|
+
"cat-form-group": HTMLCatFormGroupElement;
|
|
1035
1068
|
"cat-icon": HTMLCatIconElement;
|
|
1036
1069
|
"cat-input": HTMLCatInputElement;
|
|
1037
1070
|
"cat-label": HTMLCatLabelElement;
|
|
@@ -1294,6 +1327,12 @@ declare namespace LocalJSX {
|
|
|
1294
1327
|
*/
|
|
1295
1328
|
"placement"?: Placement;
|
|
1296
1329
|
}
|
|
1330
|
+
interface CatFormGroup {
|
|
1331
|
+
/**
|
|
1332
|
+
* Whether the labels need a marker to shown if the forms fields are required or optional.<br /><br /> By default, it is set to auto, it will display the mark depending on the number of required and optional fields: <br /> - If there are more required, the optional will be marked.<br /> - If there are less required, it will mark the required.<br /><br /> If a form field had "!", the requiredMarked of the field would not change.
|
|
1333
|
+
*/
|
|
1334
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'auto';
|
|
1335
|
+
}
|
|
1297
1336
|
interface CatIcon {
|
|
1298
1337
|
/**
|
|
1299
1338
|
* Adds accessible label for the icon that is only shown for screen readers. The `aria-hidden` attribute will be set if no label is present.
|
|
@@ -1389,6 +1428,10 @@ declare namespace LocalJSX {
|
|
|
1389
1428
|
* A value is required or must be check for the form to be submittable.
|
|
1390
1429
|
*/
|
|
1391
1430
|
"required"?: boolean;
|
|
1431
|
+
/**
|
|
1432
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1433
|
+
*/
|
|
1434
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1392
1435
|
/**
|
|
1393
1436
|
* Use round input edges.
|
|
1394
1437
|
*/
|
|
@@ -1419,6 +1462,10 @@ declare namespace LocalJSX {
|
|
|
1419
1462
|
* A value is required or must be check for the form to be submittable.
|
|
1420
1463
|
*/
|
|
1421
1464
|
"required"?: boolean;
|
|
1465
|
+
/**
|
|
1466
|
+
* Whether the label need a marker to shown if the input is required or optional.
|
|
1467
|
+
*/
|
|
1468
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1422
1469
|
}
|
|
1423
1470
|
interface CatModal {
|
|
1424
1471
|
/**
|
|
@@ -1635,6 +1682,10 @@ declare namespace LocalJSX {
|
|
|
1635
1682
|
* The name of the form control. Submitted with the form as part of a name/value pair.
|
|
1636
1683
|
*/
|
|
1637
1684
|
"name"?: string;
|
|
1685
|
+
/**
|
|
1686
|
+
* The text to display in the dropdown if no results are found.
|
|
1687
|
+
*/
|
|
1688
|
+
"noItems"?: string;
|
|
1638
1689
|
/**
|
|
1639
1690
|
* Emitted when the select loses the focus.
|
|
1640
1691
|
*/
|
|
@@ -1663,6 +1714,10 @@ declare namespace LocalJSX {
|
|
|
1663
1714
|
* A value is required or must be checked for the form to be submittable.
|
|
1664
1715
|
*/
|
|
1665
1716
|
"required"?: boolean;
|
|
1717
|
+
/**
|
|
1718
|
+
* Whether the label need a marker to shown if the select is required or optional.
|
|
1719
|
+
*/
|
|
1720
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1666
1721
|
/**
|
|
1667
1722
|
* Optional hint text to be displayed on the new item to be added.
|
|
1668
1723
|
*/
|
|
@@ -1672,7 +1727,7 @@ declare namespace LocalJSX {
|
|
|
1672
1727
|
*/
|
|
1673
1728
|
"tags"?: boolean;
|
|
1674
1729
|
/**
|
|
1675
|
-
* The value of the select.
|
|
1730
|
+
* The value of the select. <br /> <br /> The value of the select depends on whether it is allowed to choose a single item or several items. <br /> When only one item can be selected, the value is the id of the item, in case several items can be selected, the value is an array of ids of the selected items. <br /> <br /> In case the user can add new items to the select (tags activated), the value in the single select is an object (CatSelectTaggingValue) with the id of the item or the name of the created item, in the case of multiple select, it is an object (CatSelectMultipleTaggingValue) with the array of the ids of the items selected and the array of the names of the items created
|
|
1676
1731
|
*/
|
|
1677
1732
|
"value"?: string | string[] | CatSelectTaggingValue | CatSelectMultipleTaggingValue;
|
|
1678
1733
|
}
|
|
@@ -1807,6 +1862,10 @@ declare namespace LocalJSX {
|
|
|
1807
1862
|
* A value is required or must be check for the form to be submittable.
|
|
1808
1863
|
*/
|
|
1809
1864
|
"required"?: boolean;
|
|
1865
|
+
/**
|
|
1866
|
+
* Whether the label need a marker to shown if the textarea is required or optional.
|
|
1867
|
+
*/
|
|
1868
|
+
"requiredMarker"?: 'none' | 'required' | 'optional' | 'none!' | 'optional!' | 'required!';
|
|
1810
1869
|
/**
|
|
1811
1870
|
* Specifies the initial number of lines in the textarea.
|
|
1812
1871
|
*/
|
|
@@ -1912,6 +1971,7 @@ declare namespace LocalJSX {
|
|
|
1912
1971
|
"cat-card": CatCard;
|
|
1913
1972
|
"cat-checkbox": CatCheckbox;
|
|
1914
1973
|
"cat-dropdown": CatDropdown;
|
|
1974
|
+
"cat-form-group": CatFormGroup;
|
|
1915
1975
|
"cat-icon": CatIcon;
|
|
1916
1976
|
"cat-input": CatInput;
|
|
1917
1977
|
"cat-label": CatLabel;
|
|
@@ -1942,6 +2002,7 @@ declare module "@stencil/core" {
|
|
|
1942
2002
|
"cat-card": LocalJSX.CatCard & JSXBase.HTMLAttributes<HTMLCatCardElement>;
|
|
1943
2003
|
"cat-checkbox": LocalJSX.CatCheckbox & JSXBase.HTMLAttributes<HTMLCatCheckboxElement>;
|
|
1944
2004
|
"cat-dropdown": LocalJSX.CatDropdown & JSXBase.HTMLAttributes<HTMLCatDropdownElement>;
|
|
2005
|
+
"cat-form-group": LocalJSX.CatFormGroup & JSXBase.HTMLAttributes<HTMLCatFormGroupElement>;
|
|
1945
2006
|
"cat-icon": LocalJSX.CatIcon & JSXBase.HTMLAttributes<HTMLCatIconElement>;
|
|
1946
2007
|
"cat-input": LocalJSX.CatInput & JSXBase.HTMLAttributes<HTMLCatInputElement>;
|
|
1947
2008
|
"cat-label": LocalJSX.CatLabel & JSXBase.HTMLAttributes<HTMLCatLabelElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haiilo/catalyst",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Catalyst Design System",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@floating-ui/dom": "1.0.3",
|
|
48
|
-
"@haiilo/catalyst-tokens": "2.
|
|
48
|
+
"@haiilo/catalyst-tokens": "2.5.0",
|
|
49
49
|
"@stencil/core": "2.17.4",
|
|
50
50
|
"autosize": "5.0.1",
|
|
51
51
|
"autosize-input": "1.0.2",
|