@mgdis/mg-components 6.6.1 → 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-019dd5c0.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} +522 -98
- 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/assets/icons/index.js +1 -1
- package/dist/collection/assets/icons/index.js.map +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 +22 -7
- 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 +44 -13
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js.map +1 -1
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +1 -1
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +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-popover/mg-popover.js +41 -5
- package/dist/collection/components/molecules/mg-popover/mg-popover.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/collection/utils/floating-ui.utils.js +2 -0
- package/dist/collection/utils/floating-ui.utils.js.map +1 -1
- package/dist/components/floating-ui.utils.js +5 -3
- package/dist/components/floating-ui.utils.js.map +1 -1
- 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 +22 -7
- 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-popover2.js +41 -5
- package/dist/components/mg-popover2.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/components/mg-tooltip2.js +1 -1
- package/dist/esm/index-5059254f.js +2 -2
- package/dist/esm/{index-6b7bdd63.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} +522 -99
- 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-4049bd40.js.map → p-9bc53279.js.map} +1 -1
- package/dist/mg-components/{p-c4f37d1f.entry.js → p-ad98f3d8.entry.js} +2 -2
- package/dist/mg-components/p-ad98f3d8.entry.js.map +1 -0
- package/dist/mg-components/{p-0ae49cc4.entry.js → p-c10433db.entry.js} +2 -2
- package/dist/mg-components/{p-17f0b7eb.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/assets/icons/index.d.ts +4 -0
- 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-popover/mg-popover.d.ts +14 -0
- 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/dist/types/utils/floating-ui.utils.d.ts +1 -0
- package/ide/intellij/web-types.json +79 -15
- package/ide/vscode/html-custom-data.json +112 -4
- package/package.json +26 -24
- package/dist/cjs/index-019dd5c0.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-6b7bdd63.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-3c6710be.js.map +0 -1
- package/dist/mg-components/p-4049bd40.js +0 -2
- package/dist/mg-components/p-8dbb78aa.entry.js +0 -2
- package/dist/mg-components/p-8dbb78aa.entry.js.map +0 -1
- package/dist/mg-components/p-c4f37d1f.entry.js.map +0 -1
- /package/dist/mg-components/{p-0ae49cc4.entry.js.map → p-c10433db.entry.js.map} +0 -0
- /package/dist/mg-components/{p-17f0b7eb.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
|
|
@@ -25,6 +25,7 @@ export declare const icons: {
|
|
|
25
25
|
'arrows-right-left': string;
|
|
26
26
|
'arrows-rotate': string;
|
|
27
27
|
'arrows-rotate-backward': string;
|
|
28
|
+
'arrows-up-down': string;
|
|
28
29
|
ban: string;
|
|
29
30
|
bell: string;
|
|
30
31
|
'bell-outline': string;
|
|
@@ -105,6 +106,8 @@ export declare const icons: {
|
|
|
105
106
|
filter: string;
|
|
106
107
|
'filter-outline': string;
|
|
107
108
|
'floppy-disk': string;
|
|
109
|
+
'floppy-disk-checked': string;
|
|
110
|
+
'floppy-disk-checked-outline': string;
|
|
108
111
|
'floppy-disk-outline': string;
|
|
109
112
|
folder: string;
|
|
110
113
|
'folder-check': string;
|
|
@@ -204,6 +207,7 @@ export declare const icons: {
|
|
|
204
207
|
user: string;
|
|
205
208
|
'user-circle': string;
|
|
206
209
|
'user-group': string;
|
|
210
|
+
'user-group-outline': string;
|
|
207
211
|
'user-lock': string;
|
|
208
212
|
'user-outline': string;
|
|
209
213
|
'user-pen-fancy-outline': string;
|
|
@@ -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
|
*/
|
|
@@ -62,6 +62,11 @@ export declare class MgPopover {
|
|
|
62
62
|
* @param event - mouse event
|
|
63
63
|
*/
|
|
64
64
|
private clickOutside;
|
|
65
|
+
/**
|
|
66
|
+
* Update aria-expanded attribute on interactive element
|
|
67
|
+
* @param expanded - expanded state
|
|
68
|
+
*/
|
|
69
|
+
private updateAriaExpanded;
|
|
65
70
|
/**
|
|
66
71
|
* Show popover
|
|
67
72
|
*/
|
|
@@ -83,6 +88,15 @@ export declare class MgPopover {
|
|
|
83
88
|
* Render popover content element
|
|
84
89
|
*/
|
|
85
90
|
private renderPopoverContent;
|
|
91
|
+
/**
|
|
92
|
+
* Get alternative placements ordered by proximity to initial placement
|
|
93
|
+
* First check fallbackPlacement attribute, then generate alternatives:
|
|
94
|
+
* 1. Same side with different alignments (start, center, end)
|
|
95
|
+
* 2. Other sides in order
|
|
96
|
+
* @param placement - initial placement
|
|
97
|
+
* @returns array of alternative placements
|
|
98
|
+
*/
|
|
99
|
+
private getClosestPlacements;
|
|
86
100
|
/**
|
|
87
101
|
* Set up Floating UI positioning and arrow behavior
|
|
88
102
|
* @param interactiveElement - Element that triggers the popover
|
|
@@ -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>;
|
|
@@ -17,3 +17,4 @@ export type ExtendedPlacement = Placement | (typeof placements)[number];
|
|
|
17
17
|
* @returns truthy if placement is valid
|
|
18
18
|
*/
|
|
19
19
|
export declare const isFloatingUIPlacement: (placement: any) => placement is Placement;
|
|
20
|
+
export declare const alignments: readonly ["start", any, "end"];
|