@mgdis/mg-components 6.22.0 → 6.23.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/cjs/{index-C2viYwrR.js → index-BEF-cqV9.js} +325 -1789
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{mg-action-more_37.cjs.entry.js → mg-action-more_36.cjs.entry.js} +242 -172
- package/dist/cjs/mg-alert.cjs.entry.js +6 -2
- package/dist/cjs/mg-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/mg-components.cjs.js +3 -3
- package/dist/cjs/mg-fieldset.cjs.entry.js +4 -3
- package/dist/cjs/mg-input-combobox.cjs.entry.js +4 -3
- package/dist/cjs/mg-input-file.cjs.entry.js +5 -4
- package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +7491 -6367
- package/dist/cjs/mg-input.conf-wgTh7iBb.js +84 -0
- package/dist/cjs/mg-loader.cjs.entry.js +2 -2
- package/dist/cjs/mg-progress.cjs.entry.js +2 -2
- package/dist/collection/assets/icons/index.js +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/atoms/internals/mg-input-title/mg-input-title.js +5 -2
- package/dist/collection/components/atoms/mg-badge/mg-badge.js +12 -3
- package/dist/collection/components/atoms/mg-button/mg-button.js +9 -4
- package/dist/collection/components/atoms/mg-card/mg-card.js +16 -7
- package/dist/collection/components/atoms/mg-icon/mg-icon.js +16 -9
- package/dist/collection/components/atoms/mg-tag/mg-tag.js +2 -1
- package/dist/collection/components/atoms/mg-tooltip/mg-tooltip.js +9 -3
- package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +15 -13
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.js +38 -0
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.js +3 -2
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +49 -26
- package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +16 -8
- package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +6 -3
- package/dist/collection/components/molecules/inputs/mg-input-file/mg-input-file.js +7 -4
- package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +11 -5
- package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +9 -4
- package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +61 -19
- package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +15 -8
- package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +7 -3
- package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +9 -4
- package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +5 -3
- package/dist/collection/components/molecules/menus/mg-menu/mg-menu.js +5 -3
- package/dist/collection/components/molecules/menus/mg-menu-item/mg-menu-item.js +8 -4
- package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +11 -7
- package/dist/collection/components/molecules/mg-alert/mg-alert.js +29 -3
- package/dist/collection/components/molecules/mg-breadcrumb/mg-breadcrumb.js +3 -2
- package/dist/collection/components/molecules/mg-details/mg-details.js +3 -1
- package/dist/collection/components/molecules/mg-fieldset/mg-fieldset.js +5 -2
- package/dist/collection/components/molecules/mg-form/mg-form.js +8 -4
- package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +5 -3
- package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
- package/dist/collection/components/molecules/mg-message/mg-message.js +43 -4
- package/dist/collection/components/molecules/mg-modal/mg-modal.js +4 -3
- package/dist/collection/components/molecules/mg-pagination/mg-pagination.js +2 -1
- package/dist/collection/components/molecules/mg-panel/mg-panel.js +20 -6
- package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
- package/dist/collection/components/molecules/mg-popover/mg-popover.js +3 -2
- package/dist/collection/components/molecules/mg-progress/mg-progress.js +3 -2
- package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +3 -2
- package/dist/collection/components/molecules/mg-table/mg-table.js +4 -2
- package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +3 -2
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -0
- package/dist/components/mg-action-more.js +1 -1
- package/dist/components/mg-alert.js +1 -1
- package/dist/components/mg-badge2.js +1 -1
- package/dist/components/mg-breadcrumb.js +1 -1
- package/dist/components/mg-button2.js +1 -1
- package/dist/components/mg-card2.js +1 -1
- package/dist/components/mg-character-left2.js +1 -1
- package/dist/components/mg-details.js +1 -1
- package/dist/components/mg-divider2.js +1 -1
- package/dist/components/mg-fieldset.js +1 -1
- package/dist/components/mg-form.js +1 -1
- package/dist/components/mg-icon2.js +1 -1
- package/dist/components/mg-illustrated-message.js +1 -1
- package/dist/components/mg-input-checkbox.js +1 -1
- package/dist/components/mg-input-combobox.js +1 -1
- package/dist/components/mg-input-date.js +1 -1
- package/dist/components/mg-input-file.js +1 -1
- package/dist/components/mg-input-numeric.js +1 -1
- package/dist/components/mg-input-password.js +1 -1
- package/dist/components/mg-input-radio.js +1 -1
- package/dist/components/mg-input-rich-text-editor.js +284 -284
- package/dist/components/mg-input-select2.js +1 -1
- package/dist/components/mg-input-text2.js +1 -1
- package/dist/components/mg-input-textarea.js +1 -1
- package/dist/components/mg-input-title2.js +1 -1
- package/dist/components/mg-input-toggle.js +1 -1
- package/dist/components/mg-input2.js +1 -1
- package/dist/components/mg-item-more2.js +1 -1
- package/dist/components/mg-loader2.js +1 -1
- package/dist/components/mg-menu-item2.js +1 -1
- package/dist/components/mg-message2.js +1 -1
- package/dist/components/mg-modal.js +1 -1
- package/dist/components/mg-pagination.js +1 -1
- package/dist/components/mg-panel.js +1 -1
- package/dist/components/mg-popover-content2.js +1 -1
- package/dist/components/mg-popover2.js +1 -1
- package/dist/components/mg-progress.js +1 -1
- package/dist/components/mg-skip-links.js +1 -1
- package/dist/components/mg-table.js +1 -1
- package/dist/components/mg-tabs2.js +1 -1
- package/dist/components/mg-tooltip2.js +1 -1
- package/dist/custom-elements.json +8828 -0
- package/dist/esm/{index-DFwaH2hS.js → index-DshvCiTL.js} +325 -1789
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{mg-action-more_37.entry.js → mg-action-more_36.entry.js} +244 -173
- package/dist/esm/mg-alert.entry.js +6 -2
- package/dist/esm/mg-breadcrumb.entry.js +2 -2
- package/dist/esm/mg-components.js +4 -4
- package/dist/esm/mg-fieldset.entry.js +4 -3
- package/dist/esm/mg-input-combobox.entry.js +4 -3
- package/dist/esm/mg-input-file.entry.js +5 -4
- package/dist/esm/mg-input-rich-text-editor.entry.js +7491 -6367
- package/dist/esm/mg-input.conf-DOi9lJXy.js +73 -0
- package/dist/esm/mg-loader.entry.js +2 -2
- package/dist/esm/mg-progress.entry.js +2 -2
- package/dist/mg-components/mg-components.esm.js +1 -1
- package/dist/mg-components/{p-d5e69c95.entry.js → p-13feb37a.entry.js} +1 -1
- package/dist/mg-components/{p-c8c8cfc1.entry.js → p-236bb1d2.entry.js} +1 -1
- package/dist/mg-components/p-79265ad3.entry.js +1 -0
- package/dist/mg-components/{p-adec7fcc.entry.js → p-7c63e469.entry.js} +1 -1
- package/dist/mg-components/p-7fd3e519.entry.js +1 -0
- package/dist/mg-components/p-DOi9lJXy.js +1 -0
- package/dist/mg-components/p-DshvCiTL.js +2 -0
- package/dist/mg-components/p-a0e2c886.entry.js +1 -0
- package/dist/mg-components/p-cdb01923.entry.js +1 -0
- package/dist/mg-components/p-d0b6d8f5.entry.js +1 -0
- package/dist/mg-components/{p-c63f97f0.entry.js → p-d698fa67.entry.js} +283 -283
- package/dist/types/assets/icons/index.d.ts +2 -0
- package/dist/types/components/atoms/internals/mg-input-title/mg-input-title.d.ts +4 -0
- package/dist/types/components/atoms/mg-badge/mg-badge.d.ts +4 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.d.ts +2 -2
- package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.d.ts +8 -0
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +16 -8
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +15 -5
- package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +12 -6
- package/dist/types/components/molecules/mg-alert/mg-alert.d.ts +4 -0
- package/dist/types/components/molecules/mg-message/mg-message.d.ts +6 -0
- package/dist/types/components.d.ts +547 -170
- package/dist/types/stencil-public-runtime.d.ts +53 -2
- package/ide/intellij/web-types.json +211 -3476
- package/ide/vscode/css-custom-data.json +1 -1
- package/ide/vscode/html-custom-data.json +58 -314
- package/package.json +30 -25
- package/dist/cjs/mg-input.conf-BNpeATnq.js +0 -35
- package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +0 -245
- package/dist/components/mg-input-checkbox-paginated.d.ts +0 -11
- package/dist/components/mg-input-checkbox-paginated.js +0 -1
- package/dist/components/mg-input-checkbox-paginated2.js +0 -1
- package/dist/esm/mg-input.conf-C9rmNQIL.js +0 -25
- package/dist/mg-components/p-0482eb9f.entry.js +0 -1
- package/dist/mg-components/p-2ee92f38.entry.js +0 -1
- package/dist/mg-components/p-3b653226.entry.js +0 -1
- package/dist/mg-components/p-5745fbea.entry.js +0 -1
- package/dist/mg-components/p-C9rmNQIL.js +0 -1
- package/dist/mg-components/p-DFwaH2hS.js +0 -2
- package/dist/mg-components/p-cc793586.entry.js +0 -1
- package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +0 -77
|
@@ -132,6 +132,8 @@ export declare const icons: {
|
|
|
132
132
|
'folders-outline': string;
|
|
133
133
|
gavel: string;
|
|
134
134
|
'gavel-outline': string;
|
|
135
|
+
glitters: string;
|
|
136
|
+
'glitters-outline': string;
|
|
135
137
|
'graduation-cap': string;
|
|
136
138
|
'graduation-cap-outline': string;
|
|
137
139
|
'hand-euro': string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionalComponent } from '../../../../stencil-public-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { IMgInputCheckboxListProps } from './mg-input-checkbox.conf';
|
|
3
3
|
/**
|
|
4
4
|
* Get checkboxes list template
|
|
5
5
|
* @param props - MgInputCheckboxList Interface Props
|
|
6
6
|
* @returns input template
|
|
7
7
|
*/
|
|
8
|
-
export declare const MgInputCheckboxList: FunctionalComponent<
|
|
8
|
+
export declare const MgInputCheckboxList: FunctionalComponent<IMgInputCheckboxListProps>;
|
package/dist/types/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxPaginated.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FunctionalComponent } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { IMgInputCheckboxPaginatedProps } from './mg-input-checkbox.conf';
|
|
3
|
+
/**
|
|
4
|
+
* Internal component use to manage sections instances
|
|
5
|
+
* @param props - MgInputCheckboxList Interface Props
|
|
6
|
+
* @returns input template
|
|
7
|
+
*/
|
|
8
|
+
export declare const MgInputCheckboxPaginated: FunctionalComponent<IMgInputCheckboxPaginatedProps>;
|
package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* interface
|
|
2
|
+
* interface ICheckboxValue
|
|
3
3
|
* use to match returned value
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ICheckboxValue {
|
|
6
6
|
title: string;
|
|
7
7
|
value: boolean | null;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* interface
|
|
12
|
+
* interface ICheckboxItem
|
|
13
13
|
* use to match checkbox attributes
|
|
14
14
|
*/
|
|
15
|
-
export interface
|
|
15
|
+
export interface ICheckboxItem extends ICheckboxValue {
|
|
16
16
|
_id: string;
|
|
17
17
|
_handleInput: (event: InputEvent & {
|
|
18
18
|
target: HTMLInputElement;
|
|
@@ -33,11 +33,11 @@ export type CheckboxType = (typeof checkboxTypes)[number];
|
|
|
33
33
|
/**
|
|
34
34
|
* mg-input-checkbox-paginated section kind type
|
|
35
35
|
*/
|
|
36
|
-
export type SectionKindType =
|
|
36
|
+
export type SectionKindType = Record<string, number>;
|
|
37
37
|
/**
|
|
38
38
|
* mg-input-checkbox-paginated section kind value
|
|
39
39
|
*/
|
|
40
|
-
export declare const SectionKind: Record<string,
|
|
40
|
+
export declare const SectionKind: Record<string, number>;
|
|
41
41
|
/**
|
|
42
42
|
* Base mg-input-checkbox interface
|
|
43
43
|
*/
|
|
@@ -45,12 +45,20 @@ export interface IMgInputCheckboxBase {
|
|
|
45
45
|
disabled?: boolean;
|
|
46
46
|
name?: string;
|
|
47
47
|
invalid?: boolean;
|
|
48
|
+
checkboxes: ICheckboxItem[];
|
|
49
|
+
}
|
|
50
|
+
export interface IMgInputCheckboxPaginatedProps extends IMgInputCheckboxBase {
|
|
51
|
+
readonly: boolean;
|
|
52
|
+
messages: Record<string, string>;
|
|
53
|
+
key: number;
|
|
54
|
+
limit: number;
|
|
55
|
+
handleLoadMore: () => void;
|
|
56
|
+
handleMassAction?: () => void;
|
|
48
57
|
}
|
|
49
58
|
/**
|
|
50
59
|
* mg-input-checkbox-list interface
|
|
51
60
|
*/
|
|
52
|
-
export interface
|
|
53
|
-
checkboxes: CheckboxItem[];
|
|
61
|
+
export interface IMgInputCheckboxListProps extends IMgInputCheckboxBase {
|
|
54
62
|
id: string;
|
|
55
63
|
labelledby?: string;
|
|
56
64
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
2
|
import { ClassList } from '@mgdis/core-ui-helpers/dist/utils';
|
|
3
|
-
import {
|
|
3
|
+
import { ICheckboxItem, CheckboxType, ICheckboxValue, IMgInputCheckboxListProps } from './mg-input-checkbox.conf';
|
|
4
4
|
import { type TooltipPosition } from '../mg-input/mg-input.conf';
|
|
5
|
-
export declare class MgInputCheckbox implements Omit<
|
|
5
|
+
export declare class MgInputCheckbox implements Omit<IMgInputCheckboxListProps, 'id' | 'checkboxes' | 'messages'> {
|
|
6
6
|
/************
|
|
7
7
|
* Internal *
|
|
8
8
|
************/
|
|
@@ -18,6 +18,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
18
18
|
private readonly classSearchMode;
|
|
19
19
|
private readonly multiStart;
|
|
20
20
|
private readonly searchStart;
|
|
21
|
+
private readonly paginatedStep;
|
|
21
22
|
private hasOpenedPopover;
|
|
22
23
|
private readonly checkboxesId;
|
|
23
24
|
/**************
|
|
@@ -31,7 +32,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
31
32
|
* Component value
|
|
32
33
|
* If item.value is `null`, checkbox will be indeterminate by default
|
|
33
34
|
*/
|
|
34
|
-
value:
|
|
35
|
+
value: ICheckboxValue[];
|
|
35
36
|
validateValue(newValue: MgInputCheckbox['value']): void;
|
|
36
37
|
/**
|
|
37
38
|
* Define checkbox type
|
|
@@ -133,7 +134,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
133
134
|
/**
|
|
134
135
|
* Formated value to display in list
|
|
135
136
|
*/
|
|
136
|
-
checkboxItems:
|
|
137
|
+
checkboxItems: ICheckboxItem[];
|
|
137
138
|
validateCheckboxItems(newValue: MgInputCheckbox['checkboxItems']): void;
|
|
138
139
|
/**
|
|
139
140
|
* Display search input
|
|
@@ -148,7 +149,7 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
148
149
|
/**
|
|
149
150
|
* Search current page
|
|
150
151
|
*/
|
|
151
|
-
searchResults:
|
|
152
|
+
searchResults: ICheckboxItem[];
|
|
152
153
|
/**
|
|
153
154
|
* Select values button text local key
|
|
154
155
|
*/
|
|
@@ -157,6 +158,10 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
157
158
|
* Define <mg-tabs> active-tab
|
|
158
159
|
*/
|
|
159
160
|
activeTab: number;
|
|
161
|
+
/**
|
|
162
|
+
* Paginated sections limit per key
|
|
163
|
+
*/
|
|
164
|
+
paginatedLimits: Record<number, number>;
|
|
160
165
|
/**
|
|
161
166
|
* Emitted event when value change
|
|
162
167
|
*/
|
|
@@ -283,6 +288,11 @@ export declare class MgInputCheckbox implements Omit<MgInputCheckboxListProps, '
|
|
|
283
288
|
* Reset <mg-input-checkbox-paginated> limit state
|
|
284
289
|
*/
|
|
285
290
|
private resetTabsLimit;
|
|
291
|
+
/**
|
|
292
|
+
* Handle load-more action for a paginated section
|
|
293
|
+
* @param key - section key
|
|
294
|
+
*/
|
|
295
|
+
private handlePaginatedLoadMore;
|
|
286
296
|
/*************
|
|
287
297
|
* Lifecycle *
|
|
288
298
|
*************/
|
|
@@ -159,15 +159,20 @@ export declare class MgInputSelect {
|
|
|
159
159
|
*/
|
|
160
160
|
private setValidity;
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* Get the rendered options as a flat list, in render order
|
|
163
|
+
* The select value is the position of an option in this list, so it uniquely identifies an option even when several share the same title
|
|
164
|
+
* @returns flat select options
|
|
163
165
|
*/
|
|
164
|
-
private
|
|
166
|
+
private getOptions;
|
|
167
|
+
/**
|
|
168
|
+
* Get the option matching the current select value
|
|
169
|
+
* @returns matching option or undefined
|
|
170
|
+
*/
|
|
171
|
+
private getSelectedOption;
|
|
165
172
|
/**
|
|
166
|
-
*
|
|
167
|
-
* @param item - item to compare with
|
|
168
|
-
* @returns truthy if input.value is an item
|
|
173
|
+
* Handle input event
|
|
169
174
|
*/
|
|
170
|
-
private
|
|
175
|
+
private handleInput;
|
|
171
176
|
/**
|
|
172
177
|
* Handle blur event
|
|
173
178
|
*/
|
|
@@ -197,6 +202,7 @@ export declare class MgInputSelect {
|
|
|
197
202
|
/**
|
|
198
203
|
* Render option
|
|
199
204
|
* @param option - to render
|
|
205
|
+
* @param index - option position in the flat list of rendered options, used as the option value
|
|
200
206
|
* @returns render option
|
|
201
207
|
*/
|
|
202
208
|
private renderOption;
|
|
@@ -9,6 +9,7 @@ export declare class MgMessage {
|
|
|
9
9
|
* Internal *
|
|
10
10
|
************/
|
|
11
11
|
private readonly classBase;
|
|
12
|
+
private readonly classFullWidth;
|
|
12
13
|
/**************
|
|
13
14
|
* Decorators *
|
|
14
15
|
**************/
|
|
@@ -26,6 +27,11 @@ export declare class MgMessage {
|
|
|
26
27
|
*/
|
|
27
28
|
variantStyle: VariantStyleType;
|
|
28
29
|
watchVariantStyle(newValue: MgMessage['variantStyle'], oldValue?: MgMessage['variantStyle']): void;
|
|
30
|
+
/**
|
|
31
|
+
* Define if message fits its parent element
|
|
32
|
+
*/
|
|
33
|
+
fullWidth: boolean;
|
|
34
|
+
watchFullWidth(newValue: MgMessage['fullWidth']): void;
|
|
29
35
|
/**
|
|
30
36
|
* Component classes
|
|
31
37
|
*/
|