@mgdis/mg-components 6.14.0 → 6.15.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.
Files changed (150) hide show
  1. package/dist/cjs/{index-DzBkSgSK.js → index-BGxkpQwi.js} +7 -1
  2. package/dist/cjs/{index-DUJwxnoi.js → index-CpENFzEo.js} +2 -2
  3. package/dist/cjs/{index-CwjAofQ1.js → index-iUZvsp-F.js} +55 -31
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/mg-action-more_37.cjs.entry.js +431 -208
  6. package/dist/cjs/mg-alert.cjs.entry.js +4 -4
  7. package/dist/cjs/mg-components.cjs.js +3 -3
  8. package/dist/cjs/mg-input-combobox.cjs.entry.js +145 -81
  9. package/dist/cjs/mg-input-rich-text-editor.cjs.entry.js +1248 -16004
  10. package/dist/cjs/{mg-input.conf-WTsvDfpC.js → mg-input.conf-CwjEAih3.js} +7 -0
  11. package/dist/cjs/mg-input.utils-D-ASK4ua.js +49 -0
  12. package/dist/cjs/mg-loader.cjs.entry.js +4 -4
  13. package/dist/cjs/mg-progress.cjs.entry.js +3 -3
  14. package/dist/collection/assets/icons/index.js +1 -1
  15. package/dist/collection/collection-manifest.json +2 -2
  16. package/dist/collection/components/atoms/mg-icon/mg-icon.js +1 -1
  17. package/dist/collection/components/molecules/inputs/mg-input/mg-input.conf.js +6 -0
  18. package/dist/collection/components/molecules/inputs/mg-input/mg-input.js +93 -22
  19. package/dist/collection/components/molecules/inputs/mg-input/mg-input.utils.js +21 -0
  20. package/dist/collection/components/molecules/inputs/mg-input-checkbox/MgInputCheckboxList.js +2 -1
  21. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.js +49 -106
  22. package/dist/collection/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.js +123 -48
  23. package/dist/collection/components/molecules/inputs/mg-input-combobox/mg-input-combobox.js +140 -56
  24. package/dist/collection/components/molecules/inputs/mg-input-date/mg-input-date.js +1 -1
  25. package/dist/collection/components/molecules/inputs/mg-input-numeric/mg-input-numeric.js +6 -1
  26. package/dist/collection/components/molecules/inputs/mg-input-password/mg-input-password.js +1 -1
  27. package/dist/collection/components/molecules/inputs/mg-input-radio/mg-input-radio.js +63 -10
  28. package/dist/collection/components/molecules/inputs/mg-input-rich-text-editor/mg-input-rich-text-editor.js +1 -1
  29. package/dist/collection/components/molecules/inputs/mg-input-select/mg-input-select.js +54 -6
  30. package/dist/collection/components/molecules/inputs/mg-input-text/mg-input-text.js +2 -2
  31. package/dist/collection/components/molecules/inputs/mg-input-textarea/mg-input-textarea.js +1 -1
  32. package/dist/collection/components/molecules/inputs/mg-input-toggle/mg-input-toggle.js +142 -9
  33. package/dist/collection/components/molecules/internals/mg-item-more/mg-item-more.js +1 -1
  34. package/dist/collection/components/molecules/mg-action-more/mg-action-more.js +2 -2
  35. package/dist/collection/components/molecules/mg-alert/mg-alert.js +1 -1
  36. package/dist/collection/components/molecules/mg-details/mg-details.js +1 -1
  37. package/dist/collection/components/molecules/mg-form/mg-form.js +1 -1
  38. package/dist/collection/components/molecules/mg-illustrated-message/mg-illustrated-message.js +1 -1
  39. package/dist/collection/components/molecules/mg-loader/mg-loader.js +1 -1
  40. package/dist/collection/components/molecules/mg-message/mg-message.js +2 -2
  41. package/dist/collection/components/molecules/mg-modal/mg-modal.js +2 -2
  42. package/dist/collection/components/molecules/mg-panel/mg-panel.js +1 -1
  43. package/dist/collection/components/molecules/mg-popover/mg-popover-content/mg-popover-content.js +1 -1
  44. package/dist/collection/components/molecules/mg-popover/mg-popover.js +1 -1
  45. package/dist/collection/components/molecules/mg-progress/mg-progress.js +1 -1
  46. package/dist/collection/components/molecules/mg-skip-links/mg-skip-links.js +1 -1
  47. package/dist/collection/components/molecules/mg-table/mg-table.js +2 -2
  48. package/dist/collection/components/molecules/mg-tabs/mg-tabs.js +1 -1
  49. package/dist/collection/locales/en/messages.json +23 -14
  50. package/dist/collection/locales/fr/messages.json +24 -15
  51. package/dist/components/index2.js +3 -3
  52. package/dist/components/index3.js +55 -31
  53. package/dist/components/mg-action-more.js +2 -2
  54. package/dist/components/mg-alert.js +2 -2
  55. package/dist/components/mg-badge2.js +1 -1
  56. package/dist/components/mg-button2.js +1 -1
  57. package/dist/components/mg-card2.js +1 -1
  58. package/dist/components/mg-character-left2.js +1 -1
  59. package/dist/components/mg-details.js +1 -97
  60. package/dist/components/mg-details2.js +99 -0
  61. package/dist/components/mg-divider2.js +1 -1
  62. package/dist/components/mg-form.js +2 -2
  63. package/dist/components/mg-icon2.js +1 -1
  64. package/dist/components/mg-illustrated-message.js +2 -2
  65. package/dist/components/mg-input-checkbox-paginated2.js +43 -124
  66. package/dist/components/mg-input-checkbox.js +136 -62
  67. package/dist/components/mg-input-combobox.js +135 -63
  68. package/dist/components/mg-input-date.js +9 -3
  69. package/dist/components/mg-input-numeric.js +14 -3
  70. package/dist/components/mg-input-password.js +10 -4
  71. package/dist/components/mg-input-radio.js +54 -13
  72. package/dist/components/mg-input-rich-text-editor.js +1266 -16016
  73. package/dist/components/mg-input-select2.js +45 -9
  74. package/dist/components/mg-input-text2.js +10 -4
  75. package/dist/components/mg-input-textarea.js +10 -4
  76. package/dist/components/mg-input-title2.js +1 -1
  77. package/dist/components/mg-input-toggle.js +97 -12
  78. package/dist/components/mg-input.utils.js +24 -0
  79. package/dist/components/mg-input2.js +100 -23
  80. package/dist/components/mg-item-more2.js +2 -2
  81. package/dist/components/mg-loader2.js +2 -2
  82. package/dist/components/mg-menu-item2.js +1 -1
  83. package/dist/components/mg-message2.js +3 -3
  84. package/dist/components/mg-modal.js +3 -3
  85. package/dist/components/mg-pagination.js +233 -1
  86. package/dist/components/mg-panel.js +14 -8
  87. package/dist/components/mg-popover-content2.js +2 -2
  88. package/dist/components/mg-popover2.js +2 -2
  89. package/dist/components/mg-progress.js +2 -2
  90. package/dist/components/mg-skip-links.js +2 -2
  91. package/dist/components/mg-table.js +3 -3
  92. package/dist/components/mg-tabs.js +1 -311
  93. package/dist/components/mg-tabs2.js +313 -0
  94. package/dist/components/mg-tag.js +1 -1
  95. package/dist/components/mg-tooltip-content2.js +1 -1
  96. package/dist/components/mg-tooltip2.js +2 -2
  97. package/dist/esm/{index-Bv7NHR-W.js → index-CKB-AnCZ.js} +55 -31
  98. package/dist/esm/{index-Degtjvph.js → index-DhAOnZJn.js} +7 -1
  99. package/dist/esm/{index-Dr7GYvIz.js → index-WtiuOkLj.js} +2 -2
  100. package/dist/esm/loader.js +3 -3
  101. package/dist/esm/mg-action-more_37.entry.js +426 -203
  102. package/dist/esm/mg-alert.entry.js +4 -4
  103. package/dist/esm/mg-components.js +4 -4
  104. package/dist/esm/mg-input-combobox.entry.js +125 -61
  105. package/dist/esm/mg-input-rich-text-editor.entry.js +1249 -16005
  106. package/dist/esm/{mg-input.conf-CNgv8hc5.js → mg-input.conf-BAUTlb6r.js} +7 -1
  107. package/dist/esm/mg-input.utils-BYI03zSi.js +46 -0
  108. package/dist/esm/mg-loader.entry.js +4 -4
  109. package/dist/esm/mg-progress.entry.js +3 -3
  110. package/dist/mg-components/locales/en/messages.json +23 -14
  111. package/dist/mg-components/locales/fr/messages.json +24 -15
  112. package/dist/mg-components/mg-components.esm.js +1 -1
  113. package/dist/mg-components/p-31856cff.entry.js +1 -0
  114. package/dist/mg-components/{p-056ba467.entry.js → p-420daa1e.entry.js} +1 -1
  115. package/dist/mg-components/{p-d13a6fdc.entry.js → p-47e19783.entry.js} +1 -1
  116. package/dist/mg-components/p-67af6274.entry.js +1 -0
  117. package/dist/mg-components/p-698dfc6c.entry.js +1 -0
  118. package/dist/mg-components/p-BAUTlb6r.js +1 -0
  119. package/dist/mg-components/p-CKB-AnCZ.js +1 -0
  120. package/dist/mg-components/p-DhAOnZJn.js +2 -0
  121. package/dist/mg-components/p-PuX-pdL4.js +1 -0
  122. package/dist/mg-components/p-WtiuOkLj.js +1 -0
  123. package/dist/mg-components/p-a0fa44cf.entry.js +1 -0
  124. package/dist/types/assets/icons/index.d.ts +6 -0
  125. package/dist/types/components/molecules/inputs/mg-input/mg-input.conf.d.ts +13 -0
  126. package/dist/types/components/molecules/inputs/mg-input/mg-input.d.ts +15 -4
  127. package/dist/types/components/molecules/inputs/mg-input/mg-input.utils.d.ts +8 -0
  128. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox-paginated/mg-input-checkbox-paginated.d.ts +17 -40
  129. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.conf.d.ts +1 -2
  130. package/dist/types/components/molecules/inputs/mg-input-checkbox/mg-input-checkbox.d.ts +36 -9
  131. package/dist/types/components/molecules/inputs/mg-input-combobox/mg-input-combobox.d.ts +17 -3
  132. package/dist/types/components/molecules/inputs/mg-input-radio/mg-input-radio.d.ts +18 -0
  133. package/dist/types/components/molecules/inputs/mg-input-select/mg-input-select.d.ts +18 -0
  134. package/dist/types/components/molecules/inputs/mg-input-toggle/mg-input-toggle.d.ts +40 -4
  135. package/dist/types/components.d.ts +69 -40
  136. package/ide/intellij/web-types.json +148 -22
  137. package/ide/vscode/html-custom-data.json +143 -9
  138. package/package.json +15 -15
  139. package/dist/cjs/events.utils-D5SAtkpQ.js +0 -25
  140. package/dist/components/mg-pagination2.js +0 -229
  141. package/dist/esm/events.utils-yMGqY8YG.js +0 -23
  142. package/dist/mg-components/p-625c463c.entry.js +0 -1
  143. package/dist/mg-components/p-Bv7NHR-W.js +0 -1
  144. package/dist/mg-components/p-CNgv8hc5.js +0 -1
  145. package/dist/mg-components/p-Degtjvph.js +0 -2
  146. package/dist/mg-components/p-Dr7GYvIz.js +0 -1
  147. package/dist/mg-components/p-c522f3c1.entry.js +0 -1
  148. package/dist/mg-components/p-cac23bd7.entry.js +0 -1
  149. package/dist/mg-components/p-e75f5383.entry.js +0 -10
  150. package/dist/mg-components/p-yMGqY8YG.js +0 -1
@@ -90,7 +90,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
90
90
  * @returns HTML Element
91
91
  */
92
92
  render() {
93
- return (h("div", { key: 'f2bcf91e8d639736514a55a73d0182339eda1455', class: this.classCollection.join() }, h("div", { key: '46f862fc2a3daf2f217c55feebd41abb76252de2', class: "mg-c-illustrated-message__illustration" }, h("slot", { key: 'e2a0e9752a6739a684fd2668a8e8f0f792a0c38b', name: "illustration" })), h("div", { key: 'b037dd43ae59c07ca122b68b56dc3230a7aa94f2', class: "mg-c-illustrated-message__slots" }, h("slot", { key: '3a99f08cfb68bd51fbd015d213bb462acbfdda1a', name: "title" }), h("slot", { key: '14490ee1e7f9470f433c6249d502bd0a4dd77ca3', name: "details" }))));
93
+ return (h("div", { key: 'b7cea46c2fad219e02009fa44c772c0a09a5234f', class: this.classCollection.join() }, h("div", { key: '56b956ee405886ef2de2ef413ac1bc6902f287b3', class: "mg-c-illustrated-message__illustration" }, h("slot", { key: '33183d226a2443ccf1763ebff4c48f670d1d77ec', name: "illustration" })), h("div", { key: '69a7e034da7e2aef8dc488f9275b4546e905513c', class: "mg-c-illustrated-message__slots" }, h("slot", { key: '0eb9d5126f3d13380ea0a13a9eb754a7543e4178', name: "title" }), h("slot", { key: '088d3bae3be0d5e5d9fc8c07fee42dda39177fd6', name: "details" }))));
94
94
  }
95
95
  get element() { return this; }
96
96
  static get watchers() { return {
@@ -98,7 +98,7 @@ const MgIllustratedMessage$1 = /*@__PURE__*/ proxyCustomElement(class MgIllustra
98
98
  "direction": ["watchDirection"]
99
99
  }; }
100
100
  static get style() { return mgIllustratedMessageCss; }
101
- }, [1, "mg-illustrated-message", {
101
+ }, [257, "mg-illustrated-message", {
102
102
  "size": [1],
103
103
  "direction": [1],
104
104
  "classCollection": [32]
@@ -1,31 +1,15 @@
1
- import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$8 } from './mg-button2.js';
3
- import { d as defineCustomElement$7 } from './mg-icon2.js';
4
- import { d as defineCustomElement$6 } from './mg-input2.js';
5
- import { d as defineCustomElement$5 } from './mg-input-select2.js';
6
- import { d as defineCustomElement$4 } from './mg-input-title2.js';
7
- import { d as defineCustomElement$3 } from './mg-pagination2.js';
8
- import { d as defineCustomElement$2 } from './mg-tooltip2.js';
9
- import { d as defineCustomElement$1 } from './mg-tooltip-content2.js';
10
-
11
- /**
12
- * List of all availables checkbox type
13
- */
14
- const checkboxTypes = ['checkbox', 'multi'];
15
- /**
16
- * mg-input-checkbox-paginated section kind value
17
- */
18
- const SectionKind = {
19
- SELECTED: 'selected',
20
- NOT_SELECTED: 'not-selected',
21
- };
1
+ import { h, proxyCustomElement, HTMLElement, Host } from '@stencil/core/internal/client';
2
+ import { f as formatID } from './index2.js';
3
+ import { d as defineCustomElement$2 } from './mg-button2.js';
4
+ import { d as defineCustomElement$1 } from './mg-icon2.js';
22
5
 
23
6
  /**
24
7
  * Get checkboxes list template
25
8
  * @param props - MgInputCheckboxList Interface Props
26
9
  * @returns input template
27
10
  */
28
- const MgInputCheckboxList = (props) => (h("ul", { class: "mg-c-input__input-group-container", role: "list", "aria-describedby": props.displaySearchInput ? 'search-results' : undefined, "aria-label": props.displaySearchInput ? props.messages.searchResults : undefined, "aria-live": props.displaySearchInput ? 'polite' : undefined, id: props.id }, props.checkboxes.map(input => {
11
+ const MgInputCheckboxList = (props) => Array.isArray(props.checkboxes) &&
12
+ props.checkboxes.length > 0 && (h("ul", { class: "mg-c-input__input-group-container", role: "list", "aria-labelledby": props.labelledby, id: props.id }, props.checkboxes.map(input => {
29
13
  var _a, _b;
30
14
  return (h("li", { key: input._id, class: { 'mg-c-input__input-group': true, 'mg-c-input__input-group--disabled': props.disabled || input.disabled } },
31
15
  h("input", { type: "checkbox", id: input._id, name: props.name, value: (_a = input.value) === null || _a === void 0 ? void 0 : _a.toString(), checked: Boolean(input.value), required: input.required, "aria-invalid": ((_b = props.invalid) === null || _b === void 0 ? void 0 : _b.toString()) || 'false', disabled: props.disabled || input.disabled, indeterminate: input.value === null, onInput: input._handleInput, onBlur: input._handleBlur, onKeyDown: input._handleKeydown }),
@@ -36,11 +20,7 @@ const MgInputCheckboxPaginated = /*@__PURE__*/ proxyCustomElement(class MgInputC
36
20
  constructor() {
37
21
  super();
38
22
  this.__registerHost();
39
- this.massAction = createEvent(this, "mass-action", 7);
40
- /*************
41
- * Constantes *
42
- *************/
43
- this.offset = 10;
23
+ this.step = 10;
44
24
  /*************
45
25
  * Decorators *
46
26
  *************/
@@ -53,76 +33,45 @@ const MgInputCheckboxPaginated = /*@__PURE__*/ proxyCustomElement(class MgInputC
53
33
  */
54
34
  this.disabled = false;
55
35
  /**
56
- * Current page
36
+ * Page items limit to display
57
37
  */
58
- this.currentPage = 1;
59
- /**
60
- * Define checkboxes to paginate
61
- */
62
- this.checkboxes = [];
63
- /**
64
- * Is checked items values expanded
65
- */
66
- this.expanded = true;
38
+ this.limit = this.step;
67
39
  /***********
68
40
  * Methods *
69
41
  ***********/
70
42
  /**
71
- * Mass action handler
43
+ * Component has next checkboxes to display
44
+ * @returns truthy if have next elements
72
45
  */
73
- this.massActionHandler = () => {
74
- this.massAction.emit(this.sectionKind);
46
+ this.hasNext = () => {
47
+ return this.checkboxes.length > this.limit;
75
48
  };
76
49
  /**
77
- * Toggle items button handler
50
+ * Set items from checkboxes and limit
78
51
  */
79
- this.handleToggleClick = () => {
80
- this.expanded = !this.expanded;
52
+ this.setItems = () => {
53
+ this.items = this.checkboxes.slice(0, this.limit);
81
54
  };
82
55
  /**
83
- * Method to get a array range
84
- * @param from - array start index
85
- * @param to - array end index
86
- * @returns array's range
87
- */
88
- this.getArrayRange = (array, from, to) => array.slice(from, to);
89
- /**
90
- * Method to get page count from items
91
- * @param items - items to count
92
- * @returns page count from items
93
- */
94
- this.getPageCount = (items) => ((items === null || items === void 0 ? void 0 : items.length) > 0 ? Math.ceil(items.length / this.offset) : 0);
95
- /**
96
- * Handle mg-pagination current page change event
97
- * @param event - pagination current page change event
56
+ * Handle load-more <mg-button> click event
98
57
  */
99
- this.handleCurrentPageChange = (event) => {
100
- this.currentPage = Number(event.detail);
58
+ this.handleLoadMore = () => {
59
+ if (this.hasNext()) {
60
+ this.limit += this.step;
61
+ }
101
62
  };
102
63
  }
103
- watchCheckboxes(newValue, oldValue) {
104
- const pageCountNewValue = this.getPageCount(newValue);
105
- const pageCountOldValue = this.getPageCount(oldValue);
106
- // after each array.length update we reset pagination
107
- // when items fill on page, we set current page to 1
108
- if (pageCountNewValue === 1 || (pageCountNewValue !== 0 && this.currentPage === 0)) {
109
- this.currentPage = 1;
110
- }
111
- // when old items page numbers match the current page AND new items page number is lower than current page, we set the new last page
112
- else if (pageCountOldValue === this.currentPage && pageCountNewValue < this.currentPage) {
113
- this.currentPage--;
114
- }
115
- this.sectionKind = newValue[0].value ? SectionKind.SELECTED : SectionKind.NOT_SELECTED;
64
+ watchCheckboxes() {
65
+ this.setItems();
66
+ }
67
+ watchLimit() {
68
+ this.setItems();
116
69
  }
117
70
  /**
118
- * Get from and to index
119
- * @returns [from,to] index
71
+ * Method to reset limit
120
72
  */
121
- getFromToIndexes() {
122
- const isFirstPage = this.currentPage === 1;
123
- const from = isFirstPage ? 0 : (this.currentPage - 1) * this.offset;
124
- const to = isFirstPage ? this.offset : this.currentPage * this.offset;
125
- return [from, to];
73
+ async resetLimit() {
74
+ this.limit = this.step;
126
75
  }
127
76
  /*************
128
77
  * Lifecycle *
@@ -131,39 +80,39 @@ const MgInputCheckboxPaginated = /*@__PURE__*/ proxyCustomElement(class MgInputC
131
80
  * Validate props
132
81
  */
133
82
  componentWillLoad() {
134
- this.watchCheckboxes(this.checkboxes);
83
+ this.watchCheckboxes();
135
84
  }
136
85
  /**
137
86
  * Render
138
87
  * @returns HTML Element
139
88
  */
140
89
  render() {
141
- const getText = (checkboxes) => (h("em", { key: '0bf489a95090b519c85a4649d6c3b9a0e97bf0d8', class: "mg-c-input__section-header-title-label" }, `${this.messages[checkboxes.length > 1 ? 'titlePlural' : 'title']} (${checkboxes.length})`));
142
- const [from, to] = this.getFromToIndexes();
143
- const itemsContainerId = `items-${this.sectionKind}-container`;
144
- return (h(Host, { key: 'ee67aa1705efa2b88010748b6978e0c1dec6e4de', hidden: this.checkboxes.length < 1 }, h("div", { key: 'b713e2a0e21f57d3b238b72163f3d7a4781b7026', class: "mg-c-input__section-header" }, this.sectionKind === SectionKind.SELECTED ? (h("mg-button", { variant: "flat", onClick: this.handleToggleClick, "aria-controls": itemsContainerId, "aria-expanded": this.expanded.toString() }, h("mg-icon", { icon: this.expanded ? 'chevron-up' : 'chevron-down' }), h("span", { class: "mg-c-input__section-header-title" }, getText(this.checkboxes)))) : (h("p", { class: "mg-c-input__section-header-title mg-c-input__section-header-title--static" }, getText(this.checkboxes))), ((this.sectionKind === SectionKind.SELECTED && this.expanded && this.checkboxes.some(checkbox => checkbox.value === true && checkbox.disabled !== true)) ||
145
- (this.sectionKind === SectionKind.NOT_SELECTED && this.checkboxes.some(checkbox => checkbox.value === false && checkbox.disabled !== true))) && (h("mg-tooltip", { key: '7e5cba3b03cdc7bab68650b9aed36c195ca4dfe6', class: "mg-c-input__section-header-tootlip", message: this.messages.tooltip }, h("mg-button", { key: '4980f26ade12cbfaa6ef6041fa84918900cb652a', variant: "link", onClick: this.massActionHandler }, this.messages.action))), this.expanded && this.getPageCount(this.checkboxes) > 1 && (h("mg-pagination", { key: "search-pagination", totalPages: this.getPageCount(this.checkboxes), currentPage: this.currentPage, "onCurrent-page-change": this.handleCurrentPageChange, hideNavigationLabels: true, hidePageCount: true, identifier: `input-checkbox-pagination-${this.sectionKind}` }))), h("div", { key: '950b07ea9c59e8bc21e236bf32e3bf0a9318a008', hidden: !this.expanded, id: itemsContainerId, class: "mg-c-input__section-content" }, h(MgInputCheckboxList, { key: '276f679e01756d6d60f043dc1c04807b5058750a', checkboxes: this.getArrayRange(this.checkboxes, from, to), displaySearchInput: true, messages: this.messages, id: `items-${this.sectionKind}`, disabled: this.disabled, name: this.name, invalid: this.invalid }))));
90
+ const listId = formatID(this.messages.label);
91
+ const tabId = 'tab-info';
92
+ return (h(Host, { key: '8e58037e78fcd7990bbd681053758b0ec4d0c4e0' }, h("slot", { key: 'c64e9c8f65a526b2289d3663fff64df02a282c96', name: "header-action" }), h("div", { key: 'c5953bb7e970384b231865d7fa4708fe2da4b407', class: "mg-c-input__tabs-content" }, h("p", { key: 'c0899cb7e7a6dea282f05aacf0fb05acd60a9d20', id: tabId, class: { 'mg-c-input__popover-info': true, 'mg-u-visually-hidden': this.items.length !== 0 }, "aria-live": this.items.length !== 0 ? 'polite' : undefined }, this.items.length === 0 ? this.messages.noValue : this.messages.values.replace('{count}', this.items.length.toString())), this.items.length > 0 && (h(MgInputCheckboxList, { key: '0bb1b4160d75b00d3fb5d9c08f3a560a16105e57', checkboxes: this.items, labelledby: tabId, id: listId, disabled: this.disabled, name: this.name, invalid: this.invalid })), this.hasNext() && (h("mg-button", { key: "load-more", variant: "flat", class: "mg-c-input__load-more", tabIndex: -1, "full-width": true, onClick: this.handleLoadMore, "aria-controls": listId }, h("mg-icon", { key: 'fd1560d7254f437f284925427130f69539b5fd3b', icon: "chevron-down" }), this.messages.showMore)))));
146
93
  }
147
94
  static get watchers() { return {
148
- "checkboxes": ["watchCheckboxes"]
95
+ "checkboxes": ["watchCheckboxes"],
96
+ "limit": ["watchLimit"]
149
97
  }; }
150
- }, [2, "mg-input-checkbox-paginated", {
98
+ }, [262, "mg-input-checkbox-paginated", {
151
99
  "readonly": [4],
152
100
  "disabled": [4],
153
101
  "name": [1],
154
102
  "invalid": [4],
155
- "currentPage": [1026, "current-page"],
156
103
  "checkboxes": [16],
157
104
  "messages": [16],
158
- "expanded": [32]
105
+ "limit": [32],
106
+ "resetLimit": [64]
159
107
  }, undefined, {
160
- "checkboxes": ["watchCheckboxes"]
108
+ "checkboxes": ["watchCheckboxes"],
109
+ "limit": ["watchLimit"]
161
110
  }]);
162
111
  function defineCustomElement() {
163
112
  if (typeof customElements === "undefined") {
164
113
  return;
165
114
  }
166
- const components = ["mg-input-checkbox-paginated", "mg-button", "mg-icon", "mg-input", "mg-input-select", "mg-input-title", "mg-pagination", "mg-tooltip", "mg-tooltip-content"];
115
+ const components = ["mg-input-checkbox-paginated", "mg-button", "mg-icon"];
167
116
  components.forEach(tagName => { switch (tagName) {
168
117
  case "mg-input-checkbox-paginated":
169
118
  if (!customElements.get(tagName)) {
@@ -171,41 +120,11 @@ function defineCustomElement() {
171
120
  }
172
121
  break;
173
122
  case "mg-button":
174
- if (!customElements.get(tagName)) {
175
- defineCustomElement$8();
176
- }
177
- break;
178
- case "mg-icon":
179
- if (!customElements.get(tagName)) {
180
- defineCustomElement$7();
181
- }
182
- break;
183
- case "mg-input":
184
- if (!customElements.get(tagName)) {
185
- defineCustomElement$6();
186
- }
187
- break;
188
- case "mg-input-select":
189
- if (!customElements.get(tagName)) {
190
- defineCustomElement$5();
191
- }
192
- break;
193
- case "mg-input-title":
194
- if (!customElements.get(tagName)) {
195
- defineCustomElement$4();
196
- }
197
- break;
198
- case "mg-pagination":
199
- if (!customElements.get(tagName)) {
200
- defineCustomElement$3();
201
- }
202
- break;
203
- case "mg-tooltip":
204
123
  if (!customElements.get(tagName)) {
205
124
  defineCustomElement$2();
206
125
  }
207
126
  break;
208
- case "mg-tooltip-content":
127
+ case "mg-icon":
209
128
  if (!customElements.get(tagName)) {
210
129
  defineCustomElement$1();
211
130
  }
@@ -214,4 +133,4 @@ function defineCustomElement() {
214
133
  }
215
134
  defineCustomElement();
216
135
 
217
- export { MgInputCheckboxPaginated as M, SectionKind as S, MgInputCheckboxList as a, checkboxTypes as c, defineCustomElement as d };
136
+ export { MgInputCheckboxPaginated as M, MgInputCheckboxList as a, defineCustomElement as d };