@mgdis/mg-components 6.7.0 → 6.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/README.md +1 -1
- package/dist/cjs/index-1a5a1081.js +2 -2
- package/dist/cjs/{index-b7923724.js → index-234e834a.js} +75 -39
- package/dist/cjs/index-234e834a.js.map +1 -0
- package/dist/cjs/{index.es-903492c5.js → index.es-b90f74d4.js} +2 -2
- package/dist/cjs/index.es-b90f74d4.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{mg-action-more_36.cjs.entry.js → mg-action-more_37.cjs.entry.js} +477 -91
- package/dist/cjs/mg-action-more_37.cjs.entry.js.map +1 -0
- package/dist/cjs/mg-alert.cjs.entry.js +2 -2
- package/dist/cjs/mg-components.cjs.js +1 -1
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +2 -2
- package/dist/cjs/mg-loader.cjs.entry.js +3 -3
- package/dist/cjs/mg-loader.cjs.entry.js.map +1 -1
- package/dist/cjs/mg-progress.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/atoms/mg-button/mg-button.js +10 -10
- package/dist/collection/components/atoms/mg-button/mg-button.js.map +1 -1
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +21 -6
- package/dist/collection/components/atoms/mg-icon/mg-icon.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +2 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +46 -19
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +57 -28
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js +7 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.conf.js.map +1 -1
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +43 -12
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-loader/mg-loader.js.map +1 -1
- package/dist/collection/components/molecules/mg-table/mg-table.conf.js +13 -0
- package/dist/collection/components/molecules/mg-table/mg-table.conf.js.map +1 -0
- package/dist/collection/components/molecules/mg-table/mg-table.js +364 -0
- package/dist/collection/components/molecules/mg-table/mg-table.js.map +1 -0
- package/dist/collection/locales/en/messages.json +33 -16
- package/dist/collection/locales/fr/messages.json +36 -19
- package/dist/components/index.es.js +1 -1
- package/dist/components/index.es.js.map +1 -1
- package/dist/components/index2.js +73 -37
- package/dist/components/index2.js.map +1 -1
- package/dist/components/mg-button2.js +10 -10
- package/dist/components/mg-button2.js.map +1 -1
- package/dist/components/mg-icon2.js +21 -6
- package/dist/components/mg-icon2.js.map +1 -1
- package/dist/components/mg-input-checkbox-paginated2.js +2 -2
- package/dist/components/mg-input-checkbox-paginated2.js.map +1 -1
- package/dist/components/mg-input-date.js +47 -19
- package/dist/components/mg-input-date.js.map +1 -1
- package/dist/components/mg-input-numeric.js +58 -29
- package/dist/components/mg-input-numeric.js.map +1 -1
- package/dist/components/mg-input-text2.js +50 -14
- package/dist/components/mg-input-text2.js.map +1 -1
- package/dist/components/mg-loader.js +1 -1
- package/dist/components/mg-loader.js.map +1 -1
- package/dist/components/mg-table.d.ts +11 -0
- package/dist/components/mg-table.js +320 -0
- package/dist/components/mg-table.js.map +1 -0
- package/dist/esm/index-5059254f.js +2 -2
- package/dist/esm/{index-a58f8b91.js → index-544778a7.js} +75 -39
- package/dist/esm/index-544778a7.js.map +1 -0
- package/dist/esm/{index.es-b80b758c.js → index.es-517b1bf2.js} +2 -2
- package/dist/esm/index.es-517b1bf2.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mg-action-more_36.entry.js → mg-action-more_37.entry.js} +477 -92
- package/dist/esm/mg-action-more_37.entry.js.map +1 -0
- package/dist/esm/mg-alert.entry.js +2 -2
- package/dist/esm/mg-components.js +1 -1
- package/dist/esm/mg-input-rich-text-editor.entry.js +2 -2
- package/dist/esm/mg-loader.entry.js +3 -3
- package/dist/esm/mg-loader.entry.js.map +1 -1
- package/dist/esm/mg-progress.entry.js +1 -1
- package/dist/mg-components/locales/en/messages.json +33 -16
- package/dist/mg-components/locales/fr/messages.json +36 -19
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/mg-components.esm.js.map +1 -1
- package/dist/mg-components/{p-3c6710be.js → p-12a1edee.js} +2 -2
- package/dist/mg-components/p-12a1edee.js.map +1 -0
- package/dist/mg-components/p-9bc53279.js +2 -0
- package/dist/mg-components/{p-ac8a5083.js.map → p-9bc53279.js.map} +1 -1
- package/dist/mg-components/{p-bc6ec847.entry.js → p-ad98f3d8.entry.js} +2 -2
- package/dist/mg-components/p-ad98f3d8.entry.js.map +1 -0
- package/dist/mg-components/{p-2a633b29.entry.js → p-c10433db.entry.js} +2 -2
- package/dist/mg-components/{p-f2e6e7ae.entry.js → p-c67e4934.entry.js} +2 -2
- package/dist/mg-components/p-f72efb64.entry.js +2 -0
- package/dist/mg-components/p-f72efb64.entry.js.map +1 -0
- package/dist/mg-components/{p-361cc090.entry.js → p-fd4a7980.entry.js} +2 -2
- package/dist/types/components/atoms/mg-button/mg-button.d.ts +1 -1
- package/dist/types/components/molecules/inputs/mg-input-date/mg-input-date.conf.d.ts +1 -0
- package/dist/types/components/molecules/inputs/mg-input-numeric/mg-input-numeric.d.ts +6 -5
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.conf.d.ts +4 -2
- package/dist/types/components/molecules/inputs/mg-input-text/mg-input-text.d.ts +8 -2
- package/dist/types/components/molecules/mg-table/mg-table.conf.d.ts +19 -0
- package/dist/types/components/molecules/mg-table/mg-table.d.ts +58 -0
- package/dist/types/components.d.ts +39 -0
- package/ide/intellij/web-types.json +69 -5
- package/ide/vscode/html-custom-data.json +85 -1
- package/package.json +22 -22
- package/dist/cjs/index-b7923724.js.map +0 -1
- package/dist/cjs/index.es-903492c5.js.map +0 -1
- package/dist/cjs/mg-action-more_36.cjs.entry.js.map +0 -1
- package/dist/esm/index-a58f8b91.js.map +0 -1
- package/dist/esm/index.es-b80b758c.js.map +0 -1
- package/dist/esm/mg-action-more_36.entry.js.map +0 -1
- package/dist/mg-components/p-3afebdab.entry.js +0 -2
- package/dist/mg-components/p-3afebdab.entry.js.map +0 -1
- package/dist/mg-components/p-3c6710be.js.map +0 -1
- package/dist/mg-components/p-ac8a5083.js +0 -2
- package/dist/mg-components/p-bc6ec847.entry.js.map +0 -1
- /package/dist/mg-components/{p-2a633b29.entry.js.map → p-c10433db.entry.js.map} +0 -0
- /package/dist/mg-components/{p-f2e6e7ae.entry.js.map → p-c67e4934.entry.js.map} +0 -0
- /package/dist/mg-components/{p-361cc090.entry.js.map → p-fd4a7980.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r,h as e,H as s}from"./p-e39791fa.js";import{m as a,V as o,e as i}from"./p-
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r,h as e,H as s}from"./p-e39791fa.js";import{m as a,V as o,e as i}from"./p-12a1edee.js";const t=["progressbar","meter"];const c="/*!\n * @prop --mg-c-progress-size: Defines the size of the progress bar. Default value is `--mg-b-size-8`.\n * @prop --mg-c-progress-border-color: Defines the color of the progress bar border. Default value is `--mg-b-color-neutral-80`.\n * @prop --mg-c-progress-bar-color-background: Defines the color of the progress bar. Default value is `--mg-b-color-neutral-30`.\n * @prop --mg-c-progress-fill-color-background: Defines the color of the progress bar fill background. Default value is `--mg-b-color-app`.\n */.mg-c-progress{min-width:calc(var(--mg-b-size-16)*4)}.mg-c-progress__bar{position:relative;overflow:hidden;height:var(--mg-c-progress-size);border-width:var(--mg-b-size-border);border-style:solid;border-color:var(--mg-c-progress-border-color);border-radius:calc((var(--mg-c-progress-size) + var(--mg-b-size-border)*2)/2);background-color:var(--mg-c-progress-bar-color-background)}.mg-c-progress__fill{height:100%;border-radius:calc((var(--mg-c-progress-size) + var(--mg-b-size-border)*2)/2);transition:width 300ms ease-in-out}.mg-c-progress__bar.mg-c-progress__bar--active .mg-c-progress__fill{background-color:var(--mg-c-progress-fill-color-background)}";const g=c;const l=class{constructor(e){r(this,e);this.ariaRole="progressbar";this.value=0;this.min=0;this.max=100}watchLabel(r){if(!a(r)){throw new Error(`<mg-progress> prop "label" must be a valid string. Passed value: ${o(r)}.`)}}watchAriaRole(r){if(r&&!t.includes(r)){throw new Error(`<mg-progress> prop "ariaRole" must be one of: ${t.join(", ")}. Passed value: ${o(r)}.`)}}watchValue(r){if(r!==undefined&&(!i(r)||!(r>=this.min&&r<=this.max)))throw new Error(`<mg-progress> prop “value” must be a number within the range ${this.min} to ${this.max}. Passed value: ${o(r)}.`)}watchMin(r){if(r!==0&&r!==undefined&&(!i(r)||r>=this.max))throw new Error(`<mg-progress> prop “min” must be a number lower than: ${this.max}. Passed value: ${o(r)}.`)}watchMax(r){if(r!==100&&r!==undefined&&(!i(r)||r<=this.min))throw new Error(`<mg-progress> prop “max” must be a number greater than: ${this.min}. Passed value: ${o(r)}.`)}componentWillLoad(){this.watchLabel(this.label);this.watchAriaRole(this.ariaRole);this.watchMin(this.min);this.watchMax(this.max);this.watchValue(this.value)}render(){return e(s,{key:"53468a3432308e0e255a2a3ed8164091a414ba99",role:this.ariaRole,"aria-label":this.label,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max},e("div",{key:"c96350a559b88cbe3ff8db5df277284034772ac9",class:"mg-c-progress"},e("div",{key:"9a5cb4e8f0d18ea2ba26b3689035e00ce2a52a15",class:{"mg-c-progress__bar":true,"mg-c-progress__bar--active":this.value>this.min}},e("div",{key:"fb1908f24f86754a3a7359669205e86e7e44c6ab",class:"mg-c-progress__fill",style:{width:`${Math.round((this.value-this.min)/(this.max-this.min)*100)}%`}}))))}static get watchers(){return{label:["watchLabel"],ariaRole:["watchAriaRole"],value:["watchValue"],min:["watchMin"],max:["watchMax"]}}};l.style=g;export{l as mg_progress};
|
|
2
|
+
//# sourceMappingURL=p-fd4a7980.entry.js.map
|
|
@@ -58,7 +58,7 @@ export declare class MgButton {
|
|
|
58
58
|
* Used for icon button.
|
|
59
59
|
*/
|
|
60
60
|
isIcon: boolean;
|
|
61
|
-
watchIsIcon(): void;
|
|
61
|
+
watchIsIcon(newValue: boolean): void;
|
|
62
62
|
/**
|
|
63
63
|
* Option to set input disable on click, in order to prevent multi-click.
|
|
64
64
|
* Parent component have to remove the attribute 'disabled' when the process ends.
|
|
@@ -190,11 +190,6 @@ export declare class MgInputNumeric {
|
|
|
190
190
|
* @returns Returns true if the value is valid, otherwise false.
|
|
191
191
|
*/
|
|
192
192
|
private isValidValue;
|
|
193
|
-
/**
|
|
194
|
-
* Handles invalid input values and returns a corrected value.
|
|
195
|
-
* @returns The corrected value.
|
|
196
|
-
*/
|
|
197
|
-
private handleInvalidValue;
|
|
198
193
|
/**
|
|
199
194
|
* Updates the component values based on the validated input value.
|
|
200
195
|
* @param newValue - The validated input value.
|
|
@@ -248,6 +243,12 @@ export declare class MgInputNumeric {
|
|
|
248
243
|
* Validate append slot
|
|
249
244
|
*/
|
|
250
245
|
private validateAppendSlot;
|
|
246
|
+
/**
|
|
247
|
+
* Format help text to display
|
|
248
|
+
* @param helpText - help text format
|
|
249
|
+
* @returns formatted help text with range information if applicable
|
|
250
|
+
*/
|
|
251
|
+
private formatHelpText;
|
|
251
252
|
/*************
|
|
252
253
|
* Lifecycle *
|
|
253
254
|
*************/
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Option } from '../../../../types';
|
|
1
|
+
import type { Option } from '../../../../types';
|
|
2
2
|
/**
|
|
3
3
|
* TextType from text types
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export declare const helpTextTypes: readonly ["email", "emails", "url"];
|
|
6
|
+
export declare const textTypes: readonly ["text", "search", "tel", "email", "emails", "url"];
|
|
7
|
+
export type TextType = (typeof textTypes)[number];
|
|
6
8
|
/**
|
|
7
9
|
* Option type
|
|
8
10
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { ClassList } from '@mgdis/stencil-helpers';
|
|
3
|
-
import { OptionType, TextType } from './mg-input-text.conf';
|
|
3
|
+
import { type OptionType, type TextType } from './mg-input-text.conf';
|
|
4
4
|
import { type TooltipPosition, type Width } from '../mg-input/mg-input.conf';
|
|
5
5
|
import { IconType } from '../../../../components';
|
|
6
6
|
/**
|
|
@@ -51,6 +51,7 @@ export declare class MgInputText {
|
|
|
51
51
|
* Input type
|
|
52
52
|
*/
|
|
53
53
|
type: TextType;
|
|
54
|
+
validateType(newValue: TextType): void;
|
|
54
55
|
/**
|
|
55
56
|
* Input icon
|
|
56
57
|
*/
|
|
@@ -107,7 +108,7 @@ export declare class MgInputText {
|
|
|
107
108
|
* Define input pattern error message
|
|
108
109
|
*/
|
|
109
110
|
patternErrorMessage?: string;
|
|
110
|
-
|
|
111
|
+
watchPattern(): void;
|
|
111
112
|
/**
|
|
112
113
|
* Add a tooltip message next to the input
|
|
113
114
|
*/
|
|
@@ -124,6 +125,7 @@ export declare class MgInputText {
|
|
|
124
125
|
* Add a help text under the input, usually expected data format and example
|
|
125
126
|
*/
|
|
126
127
|
helpText?: string;
|
|
128
|
+
watchHelpText(newValue: string): void;
|
|
127
129
|
/**
|
|
128
130
|
* Define input valid state
|
|
129
131
|
*/
|
|
@@ -174,6 +176,10 @@ export declare class MgInputText {
|
|
|
174
176
|
* @param newValue - valid new value
|
|
175
177
|
*/
|
|
176
178
|
private setValidity;
|
|
179
|
+
/**
|
|
180
|
+
* Validate pattern configuration
|
|
181
|
+
*/
|
|
182
|
+
private validatePattern;
|
|
177
183
|
/**
|
|
178
184
|
* Handle input event
|
|
179
185
|
*/
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Size } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Sizes
|
|
4
|
+
*/
|
|
5
|
+
export declare const sizes: readonly ["small", "medium", "large", "xlarge"];
|
|
6
|
+
export type TableSizeType = Size & (typeof sizes)[number];
|
|
7
|
+
/**
|
|
8
|
+
* Columns
|
|
9
|
+
*/
|
|
10
|
+
export declare const textAlignments: readonly ["left", "center", "right"];
|
|
11
|
+
export declare const dataTypes: readonly ["string", "numeric", "date"];
|
|
12
|
+
export type datatypesType = (typeof dataTypes)[number];
|
|
13
|
+
export type ColumnsType = {
|
|
14
|
+
[key: number]: {
|
|
15
|
+
align?: (typeof textAlignments)[number];
|
|
16
|
+
sortable?: boolean;
|
|
17
|
+
datatype?: datatypesType;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ClassList } from '@mgdis/stencil-helpers';
|
|
2
|
+
import { type TableSizeType, type ColumnsType } from './mg-table.conf';
|
|
3
|
+
/**
|
|
4
|
+
* @slot - Table content
|
|
5
|
+
*/
|
|
6
|
+
export declare class MgTable {
|
|
7
|
+
/************
|
|
8
|
+
* Internal *
|
|
9
|
+
************/
|
|
10
|
+
private messages;
|
|
11
|
+
private readonly componentClass;
|
|
12
|
+
private readonly componentWrapperClass;
|
|
13
|
+
private readonly classFullWidth;
|
|
14
|
+
private alignmentStylesheet;
|
|
15
|
+
/**************
|
|
16
|
+
* Decorators *
|
|
17
|
+
**************/
|
|
18
|
+
/**
|
|
19
|
+
* Get component DOM element
|
|
20
|
+
*/
|
|
21
|
+
element: HTMLMgTableElement;
|
|
22
|
+
/**
|
|
23
|
+
* Define table size
|
|
24
|
+
*/
|
|
25
|
+
size: TableSizeType;
|
|
26
|
+
watchSize(newValue: MgTable['size'], oldValue?: MgTable['size']): void;
|
|
27
|
+
/**
|
|
28
|
+
* Define if table fits its parent element
|
|
29
|
+
*/
|
|
30
|
+
fullWidth: boolean;
|
|
31
|
+
watchFullWidth(newValue: MgTable['fullWidth']): void;
|
|
32
|
+
/**
|
|
33
|
+
* Define column properties
|
|
34
|
+
*/
|
|
35
|
+
columns: ColumnsType;
|
|
36
|
+
watchColumns(newValue: ColumnsType): void;
|
|
37
|
+
/**
|
|
38
|
+
* Class collection
|
|
39
|
+
*/
|
|
40
|
+
classCollection: ClassList;
|
|
41
|
+
/**
|
|
42
|
+
* Render Table
|
|
43
|
+
* @param table - Table element
|
|
44
|
+
*/
|
|
45
|
+
private renderTable;
|
|
46
|
+
/*************
|
|
47
|
+
* Lifecycle *
|
|
48
|
+
*************/
|
|
49
|
+
componentWillLoad(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Set variables and validate props
|
|
52
|
+
*/
|
|
53
|
+
componentDidLoad(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Update table
|
|
56
|
+
*/
|
|
57
|
+
componentWillUpdate(): void;
|
|
58
|
+
}
|
|
@@ -31,6 +31,7 @@ import { ExpandToggleDisplayType, TitlePositionType } from "./components/molecul
|
|
|
31
31
|
import { PopoverPlacementType } from "./components/molecules/mg-popover/mg-popover.conf";
|
|
32
32
|
import { AriaRoleType as AriaRoleType1 } from "./components/molecules/mg-progress/mg-progress.conf";
|
|
33
33
|
import { SkipLink } from "./components/molecules/mg-skip-links/mg-skip-links.conf";
|
|
34
|
+
import { ColumnsType, TableSizeType } from "./components/molecules/mg-table/mg-table.conf";
|
|
34
35
|
import { SizeType as SizeType2, TabItem } from "./components/molecules/mg-tabs/mg-tabs.conf";
|
|
35
36
|
import { TagVariantType } from "./components/atoms/mg-tag/mg-tag.conf";
|
|
36
37
|
import { TooltipPlacementType } from "./components/atoms/mg-tooltip/mg-tooltip.conf";
|
|
@@ -60,6 +61,7 @@ export { ExpandToggleDisplayType, TitlePositionType } from "./components/molecul
|
|
|
60
61
|
export { PopoverPlacementType } from "./components/molecules/mg-popover/mg-popover.conf";
|
|
61
62
|
export { AriaRoleType as AriaRoleType1 } from "./components/molecules/mg-progress/mg-progress.conf";
|
|
62
63
|
export { SkipLink } from "./components/molecules/mg-skip-links/mg-skip-links.conf";
|
|
64
|
+
export { ColumnsType, TableSizeType } from "./components/molecules/mg-table/mg-table.conf";
|
|
63
65
|
export { SizeType as SizeType2, TabItem } from "./components/molecules/mg-tabs/mg-tabs.conf";
|
|
64
66
|
export { TagVariantType } from "./components/atoms/mg-tag/mg-tag.conf";
|
|
65
67
|
export { TooltipPlacementType } from "./components/atoms/mg-tooltip/mg-tooltip.conf";
|
|
@@ -1513,6 +1515,20 @@ export namespace Components {
|
|
|
1513
1515
|
*/
|
|
1514
1516
|
"links": SkipLink[];
|
|
1515
1517
|
}
|
|
1518
|
+
interface MgTable {
|
|
1519
|
+
/**
|
|
1520
|
+
* Define column properties
|
|
1521
|
+
*/
|
|
1522
|
+
"columns": ColumnsType;
|
|
1523
|
+
/**
|
|
1524
|
+
* Define if table fits its parent element
|
|
1525
|
+
*/
|
|
1526
|
+
"fullWidth": boolean;
|
|
1527
|
+
/**
|
|
1528
|
+
* Define table size
|
|
1529
|
+
*/
|
|
1530
|
+
"size": TableSizeType;
|
|
1531
|
+
}
|
|
1516
1532
|
interface MgTabs {
|
|
1517
1533
|
/**
|
|
1518
1534
|
* Active tab number
|
|
@@ -2150,6 +2166,12 @@ declare global {
|
|
|
2150
2166
|
prototype: HTMLMgSkipLinksElement;
|
|
2151
2167
|
new (): HTMLMgSkipLinksElement;
|
|
2152
2168
|
};
|
|
2169
|
+
interface HTMLMgTableElement extends Components.MgTable, HTMLStencilElement {
|
|
2170
|
+
}
|
|
2171
|
+
var HTMLMgTableElement: {
|
|
2172
|
+
prototype: HTMLMgTableElement;
|
|
2173
|
+
new (): HTMLMgTableElement;
|
|
2174
|
+
};
|
|
2153
2175
|
interface HTMLMgTabsElementEventMap {
|
|
2154
2176
|
"active-tab-change": HTMLMgTabsElement['activeTab'];
|
|
2155
2177
|
}
|
|
@@ -2222,6 +2244,7 @@ declare global {
|
|
|
2222
2244
|
"mg-popover-content": HTMLMgPopoverContentElement;
|
|
2223
2245
|
"mg-progress": HTMLMgProgressElement;
|
|
2224
2246
|
"mg-skip-links": HTMLMgSkipLinksElement;
|
|
2247
|
+
"mg-table": HTMLMgTableElement;
|
|
2225
2248
|
"mg-tabs": HTMLMgTabsElement;
|
|
2226
2249
|
"mg-tag": HTMLMgTagElement;
|
|
2227
2250
|
"mg-tooltip": HTMLMgTooltipElement;
|
|
@@ -3680,6 +3703,20 @@ declare namespace LocalJSX {
|
|
|
3680
3703
|
*/
|
|
3681
3704
|
"onGo-to-anchor"?: (event: MgSkipLinksCustomEvent<string>) => void;
|
|
3682
3705
|
}
|
|
3706
|
+
interface MgTable {
|
|
3707
|
+
/**
|
|
3708
|
+
* Define column properties
|
|
3709
|
+
*/
|
|
3710
|
+
"columns"?: ColumnsType;
|
|
3711
|
+
/**
|
|
3712
|
+
* Define if table fits its parent element
|
|
3713
|
+
*/
|
|
3714
|
+
"fullWidth"?: boolean;
|
|
3715
|
+
/**
|
|
3716
|
+
* Define table size
|
|
3717
|
+
*/
|
|
3718
|
+
"size"?: TableSizeType;
|
|
3719
|
+
}
|
|
3683
3720
|
interface MgTabs {
|
|
3684
3721
|
/**
|
|
3685
3722
|
* Active tab number
|
|
@@ -3785,6 +3822,7 @@ declare namespace LocalJSX {
|
|
|
3785
3822
|
"mg-popover-content": MgPopoverContent;
|
|
3786
3823
|
"mg-progress": MgProgress;
|
|
3787
3824
|
"mg-skip-links": MgSkipLinks;
|
|
3825
|
+
"mg-table": MgTable;
|
|
3788
3826
|
"mg-tabs": MgTabs;
|
|
3789
3827
|
"mg-tag": MgTag;
|
|
3790
3828
|
"mg-tooltip": MgTooltip;
|
|
@@ -3834,6 +3872,7 @@ declare module "@stencil/core" {
|
|
|
3834
3872
|
"mg-popover-content": LocalJSX.MgPopoverContent & JSXBase.HTMLAttributes<HTMLMgPopoverContentElement>;
|
|
3835
3873
|
"mg-progress": LocalJSX.MgProgress & JSXBase.HTMLAttributes<HTMLMgProgressElement>;
|
|
3836
3874
|
"mg-skip-links": LocalJSX.MgSkipLinks & JSXBase.HTMLAttributes<HTMLMgSkipLinksElement>;
|
|
3875
|
+
"mg-table": LocalJSX.MgTable & JSXBase.HTMLAttributes<HTMLMgTableElement>;
|
|
3837
3876
|
"mg-tabs": LocalJSX.MgTabs & JSXBase.HTMLAttributes<HTMLMgTabsElement>;
|
|
3838
3877
|
"mg-tag": LocalJSX.MgTag & JSXBase.HTMLAttributes<HTMLMgTagElement>;
|
|
3839
3878
|
"mg-tooltip": LocalJSX.MgTooltip & JSXBase.HTMLAttributes<HTMLMgTooltipElement>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@mgdis/mg-components",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.8.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -4206,10 +4206,10 @@
|
|
|
4206
4206
|
},
|
|
4207
4207
|
{
|
|
4208
4208
|
"name": "type",
|
|
4209
|
-
"description": "Input type\n\nType: `\"search\" | \"text\"`",
|
|
4209
|
+
"description": "Input type\n\nType: `\"email\" | \"emails\" | \"search\" | \"tel\" | \"text\" | \"url\"`",
|
|
4210
4210
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-text--docs",
|
|
4211
4211
|
"value": {
|
|
4212
|
-
"type": "\"search\" | \"text\"",
|
|
4212
|
+
"type": "\"email\" | \"emails\" | \"search\" | \"tel\" | \"text\" | \"url\"",
|
|
4213
4213
|
"default": "'text'",
|
|
4214
4214
|
"required": false
|
|
4215
4215
|
}
|
|
@@ -4426,10 +4426,10 @@
|
|
|
4426
4426
|
},
|
|
4427
4427
|
{
|
|
4428
4428
|
"name": "type",
|
|
4429
|
-
"description": "Input type\n\nType: `\"search\" | \"text\"`",
|
|
4429
|
+
"description": "Input type\n\nType: `\"email\" | \"emails\" | \"search\" | \"tel\" | \"text\" | \"url\"`",
|
|
4430
4430
|
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-inputs-mg-input-text--docs",
|
|
4431
4431
|
"value": {
|
|
4432
|
-
"type": "\"search\" | \"text\"",
|
|
4432
|
+
"type": "\"email\" | \"emails\" | \"search\" | \"tel\" | \"text\" | \"url\"",
|
|
4433
4433
|
"default": "'text'",
|
|
4434
4434
|
"required": false
|
|
4435
4435
|
}
|
|
@@ -6335,6 +6335,70 @@
|
|
|
6335
6335
|
"properties": []
|
|
6336
6336
|
}
|
|
6337
6337
|
},
|
|
6338
|
+
{
|
|
6339
|
+
"name": "mg-table",
|
|
6340
|
+
"description": "Attributes:\n- `full-width`: Define if table fits its parent element\n- `size`: Define table size\n\nProperties:\n- `columns`: Define column properties\n\nSlots:\n- ``: Table content\n\n",
|
|
6341
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs",
|
|
6342
|
+
"attributes": [
|
|
6343
|
+
{
|
|
6344
|
+
"name": "full-width",
|
|
6345
|
+
"description": "Define if table fits its parent element\n\nType: `boolean`",
|
|
6346
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs",
|
|
6347
|
+
"value": {
|
|
6348
|
+
"type": "boolean",
|
|
6349
|
+
"default": "false",
|
|
6350
|
+
"required": false
|
|
6351
|
+
}
|
|
6352
|
+
},
|
|
6353
|
+
{
|
|
6354
|
+
"name": "size",
|
|
6355
|
+
"description": "Define table size\n\nType: `\"large\" | \"medium\" | \"small\" | \"xlarge\"`",
|
|
6356
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs",
|
|
6357
|
+
"value": {
|
|
6358
|
+
"type": "\"large\" | \"medium\" | \"small\" | \"xlarge\"",
|
|
6359
|
+
"default": "'medium'",
|
|
6360
|
+
"required": false
|
|
6361
|
+
}
|
|
6362
|
+
}
|
|
6363
|
+
],
|
|
6364
|
+
"js": {
|
|
6365
|
+
"properties": [
|
|
6366
|
+
{
|
|
6367
|
+
"name": "columns",
|
|
6368
|
+
"description": "Define column properties\n\nType: `{ [key: number]: { align?: \"center\" | \"right\" | \"left\"; sortable?: boolean; datatype?: \"string\" | \"numeric\" | \"date\"; }; }`",
|
|
6369
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs",
|
|
6370
|
+
"value": {
|
|
6371
|
+
"type": "{ [key: number]: { align?: \"center\" | \"right\" | \"left\"; sortable?: boolean; datatype?: \"string\" | \"numeric\" | \"date\"; }; }",
|
|
6372
|
+
"required": false
|
|
6373
|
+
}
|
|
6374
|
+
},
|
|
6375
|
+
{
|
|
6376
|
+
"name": "fullWidth",
|
|
6377
|
+
"description": "Define if table fits its parent element\n\nType: `boolean`",
|
|
6378
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs",
|
|
6379
|
+
"value": {
|
|
6380
|
+
"type": "boolean",
|
|
6381
|
+
"default": "false",
|
|
6382
|
+
"required": false
|
|
6383
|
+
}
|
|
6384
|
+
},
|
|
6385
|
+
{
|
|
6386
|
+
"name": "size",
|
|
6387
|
+
"description": "Define table size\n\nType: `\"large\" | \"medium\" | \"small\" | \"xlarge\"`",
|
|
6388
|
+
"doc-url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs",
|
|
6389
|
+
"value": {
|
|
6390
|
+
"type": "\"large\" | \"medium\" | \"small\" | \"xlarge\"",
|
|
6391
|
+
"default": "'medium'",
|
|
6392
|
+
"required": false
|
|
6393
|
+
}
|
|
6394
|
+
}
|
|
6395
|
+
],
|
|
6396
|
+
"events": []
|
|
6397
|
+
},
|
|
6398
|
+
"css": {
|
|
6399
|
+
"properties": []
|
|
6400
|
+
}
|
|
6401
|
+
},
|
|
6338
6402
|
{
|
|
6339
6403
|
"name": "mg-tabs",
|
|
6340
6404
|
"description": "Attributes:\n- `active-tab`: Active tab number\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\nIf not set, it will be created.\n- `label`: Tabs label. Include short tabs description.\nRequired for accessibility\n- `size`: Define tabs size\n\nProperties:\n- `items`: Tabs items\n\nEvents:\n- `active-tab-change`: Emited event when active tab change\n\nSlots:\n- `tab_content-n`: Tab content, where `n` represents the position of the tab content. It starts at 1.\n\n",
|
|
@@ -4794,13 +4794,25 @@
|
|
|
4794
4794
|
},
|
|
4795
4795
|
{
|
|
4796
4796
|
"name": "type",
|
|
4797
|
-
"description": "Input type\n\nType: `\"search\" | \"text\"`",
|
|
4797
|
+
"description": "Input type\n\nType: `\"email\" | \"emails\" | \"search\" | \"tel\" | \"text\" | \"url\"`",
|
|
4798
4798
|
"values": [
|
|
4799
|
+
{
|
|
4800
|
+
"name": "email"
|
|
4801
|
+
},
|
|
4802
|
+
{
|
|
4803
|
+
"name": "emails"
|
|
4804
|
+
},
|
|
4799
4805
|
{
|
|
4800
4806
|
"name": "search"
|
|
4801
4807
|
},
|
|
4808
|
+
{
|
|
4809
|
+
"name": "tel"
|
|
4810
|
+
},
|
|
4802
4811
|
{
|
|
4803
4812
|
"name": "text"
|
|
4813
|
+
},
|
|
4814
|
+
{
|
|
4815
|
+
"name": "url"
|
|
4804
4816
|
}
|
|
4805
4817
|
],
|
|
4806
4818
|
"references": [
|
|
@@ -6372,6 +6384,78 @@
|
|
|
6372
6384
|
}
|
|
6373
6385
|
]
|
|
6374
6386
|
},
|
|
6387
|
+
{
|
|
6388
|
+
"name": "mg-table",
|
|
6389
|
+
"description": "Attributes:\n- `full-width`: Define if table fits its parent element\n- `size`: Define table size\n\nProperties:\n- `columns`: Define column properties\n\nSlots:\n- ``: Table content\n\n",
|
|
6390
|
+
"attributes": [
|
|
6391
|
+
{
|
|
6392
|
+
"name": "columns",
|
|
6393
|
+
"description": "Define column properties\n\nType: `{ [key: number]: { align?: \"center\" | \"right\" | \"left\"; sortable?: boolean; datatype?: \"string\" | \"numeric\" | \"date\"; }; }`",
|
|
6394
|
+
"references": [
|
|
6395
|
+
{
|
|
6396
|
+
"name": "Storybook",
|
|
6397
|
+
"url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs"
|
|
6398
|
+
},
|
|
6399
|
+
{
|
|
6400
|
+
"name": "Sources",
|
|
6401
|
+
"url": "https://gitlab.mgdis.fr/core/core-ui/core-ui/-/tree/master/packages/mg-components/src/components/molecules/mg-table/mg-table.tsx"
|
|
6402
|
+
}
|
|
6403
|
+
]
|
|
6404
|
+
},
|
|
6405
|
+
{
|
|
6406
|
+
"name": "full-width",
|
|
6407
|
+
"description": "Define if table fits its parent element\n\nType: `boolean`",
|
|
6408
|
+
"references": [
|
|
6409
|
+
{
|
|
6410
|
+
"name": "Storybook",
|
|
6411
|
+
"url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs"
|
|
6412
|
+
},
|
|
6413
|
+
{
|
|
6414
|
+
"name": "Sources",
|
|
6415
|
+
"url": "https://gitlab.mgdis.fr/core/core-ui/core-ui/-/tree/master/packages/mg-components/src/components/molecules/mg-table/mg-table.tsx"
|
|
6416
|
+
}
|
|
6417
|
+
]
|
|
6418
|
+
},
|
|
6419
|
+
{
|
|
6420
|
+
"name": "size",
|
|
6421
|
+
"description": "Define table size\n\nType: `\"large\" | \"medium\" | \"small\" | \"xlarge\"`",
|
|
6422
|
+
"values": [
|
|
6423
|
+
{
|
|
6424
|
+
"name": "large"
|
|
6425
|
+
},
|
|
6426
|
+
{
|
|
6427
|
+
"name": "medium"
|
|
6428
|
+
},
|
|
6429
|
+
{
|
|
6430
|
+
"name": "small"
|
|
6431
|
+
},
|
|
6432
|
+
{
|
|
6433
|
+
"name": "xlarge"
|
|
6434
|
+
}
|
|
6435
|
+
],
|
|
6436
|
+
"references": [
|
|
6437
|
+
{
|
|
6438
|
+
"name": "Storybook",
|
|
6439
|
+
"url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs"
|
|
6440
|
+
},
|
|
6441
|
+
{
|
|
6442
|
+
"name": "Sources",
|
|
6443
|
+
"url": "https://gitlab.mgdis.fr/core/core-ui/core-ui/-/tree/master/packages/mg-components/src/components/molecules/mg-table/mg-table.tsx"
|
|
6444
|
+
}
|
|
6445
|
+
]
|
|
6446
|
+
}
|
|
6447
|
+
],
|
|
6448
|
+
"references": [
|
|
6449
|
+
{
|
|
6450
|
+
"name": "Storybook",
|
|
6451
|
+
"url": "http://core.pages.mgdis.fr/core-ui/core-ui/storybook/?path=/docs/molecules-mg-table--docs"
|
|
6452
|
+
},
|
|
6453
|
+
{
|
|
6454
|
+
"name": "Sources",
|
|
6455
|
+
"url": "https://gitlab.mgdis.fr/core/core-ui/core-ui/-/tree/master/packages/mg-components/src/components/molecules/mg-table/mg-table.tsx"
|
|
6456
|
+
}
|
|
6457
|
+
]
|
|
6458
|
+
},
|
|
6375
6459
|
{
|
|
6376
6460
|
"name": "mg-tabs",
|
|
6377
6461
|
"description": "Attributes:\n- `active-tab`: Active tab number\n- `identifier`: Identifier is used for the element ID (id is a reserved prop in Stencil.js)\nIf not set, it will be created.\n- `label`: Tabs label. Include short tabs description.\nRequired for accessibility\n- `size`: Define tabs size\n\nProperties:\n- `items`: Tabs items\n\nEvents:\n- `active-tab-change`: Emited event when active tab change\n\nSlots:\n- `tab_content-n`: Tab content, where `n` represents the position of the tab content. It starts at 1.\n\n",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mgdis/mg-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "MG Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -36,41 +36,41 @@
|
|
|
36
36
|
"@floating-ui/dom": "1.6.13",
|
|
37
37
|
"@stencil/core": "4.25.1",
|
|
38
38
|
"quill": "2.0.3",
|
|
39
|
-
"@mgdis/stencil-helpers": "2.2.5",
|
|
40
39
|
"@mgdis/img": "2.3.0",
|
|
41
|
-
"@mgdis/styles": "2.
|
|
40
|
+
"@mgdis/styles": "2.4.0",
|
|
41
|
+
"@mgdis/stencil-helpers": "2.2.6"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@playwright/test": "1.
|
|
45
|
-
"@storybook/addon-a11y": "8.6.
|
|
46
|
-
"@storybook/addon-actions": "8.6.
|
|
47
|
-
"@storybook/addon-essentials": "8.6.
|
|
48
|
-
"@storybook/addon-interactions": "8.6.
|
|
49
|
-
"@storybook/addon-links": "8.6.
|
|
50
|
-
"@storybook/blocks": "8.6.
|
|
51
|
-
"@storybook/html": "8.6.
|
|
52
|
-
"@storybook/html-vite": "8.6.
|
|
53
|
-
"@storybook/manager-api": "8.6.
|
|
54
|
-
"@storybook/theming": "8.6.
|
|
44
|
+
"@playwright/test": "1.51.1",
|
|
45
|
+
"@storybook/addon-a11y": "8.6.7",
|
|
46
|
+
"@storybook/addon-actions": "8.6.7",
|
|
47
|
+
"@storybook/addon-essentials": "8.6.7",
|
|
48
|
+
"@storybook/addon-interactions": "8.6.7",
|
|
49
|
+
"@storybook/addon-links": "8.6.7",
|
|
50
|
+
"@storybook/blocks": "8.6.7",
|
|
51
|
+
"@storybook/html": "8.6.7",
|
|
52
|
+
"@storybook/html-vite": "8.6.7",
|
|
53
|
+
"@storybook/manager-api": "8.6.7",
|
|
54
|
+
"@storybook/theming": "8.6.7",
|
|
55
55
|
"@types/jest": "29.5.14",
|
|
56
|
-
"@types/node": "22.13.
|
|
56
|
+
"@types/node": "22.13.10",
|
|
57
57
|
"chromatic": "11.27.0",
|
|
58
58
|
"eslint": "8.57.1",
|
|
59
|
-
"eslint-plugin-storybook": "0.11.
|
|
59
|
+
"eslint-plugin-storybook": "0.11.4",
|
|
60
60
|
"jest": "29.7.0",
|
|
61
61
|
"jest-cli": "29.7.0",
|
|
62
62
|
"jest-junit": "16.0.0",
|
|
63
63
|
"jest-transform-stub": "2.0.0",
|
|
64
64
|
"react": "18.3.1",
|
|
65
65
|
"react-dom": "18.3.1",
|
|
66
|
-
"sass": "1.
|
|
67
|
-
"storybook": "8.6.
|
|
66
|
+
"sass": "1.86.0",
|
|
67
|
+
"storybook": "8.6.7",
|
|
68
68
|
"storybook-addon-tag-badges": "1.4.0",
|
|
69
|
-
"typescript": "5.
|
|
70
|
-
"vite": "6.2.
|
|
69
|
+
"typescript": "5.8.2",
|
|
70
|
+
"vite": "6.2.2",
|
|
71
71
|
"@core-ui/jest-config": "1.0.9",
|
|
72
|
-
"@mgdis/linting-stencil": "1.3.
|
|
73
|
-
"@mgdis/playwright-helpers": "1.1.
|
|
72
|
+
"@mgdis/linting-stencil": "1.3.5",
|
|
73
|
+
"@mgdis/playwright-helpers": "1.1.1"
|
|
74
74
|
},
|
|
75
75
|
"license": "BSD-3-Clause",
|
|
76
76
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"index-b7923724.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,QAAQ,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAE5B;;;;;MAKa,WAAW,GAAGA,WAAa,CAAC,QAAQ,EAAE,aAAa;;;;","names":["defineLocales"],"sources":["src/locales/index.ts"],"sourcesContent":["import en from './en/messages.json';\nimport fr from './fr/messages.json';\nimport { defineLocales } from '@mgdis/stencil-helpers';\n\nconst defaultLocale = 'en';\nconst messages = { en, fr };\n\n/**\n * Get Intl object\n * @param element - element we need to get the language\n * @returns messages object\n */\nexport const initLocales = defineLocales(messages, defaultLocale);\n"],"version":3}
|