@maggioli-design-system/mds-input-tip-item 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/cjs/{index-8a2658a5.js → index-733e68a3.js} +28 -2
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/mds-input-tip-item.cjs.entry.js +17 -12
  4. package/dist/cjs/mds-input-tip-item.cjs.js +2 -2
  5. package/dist/collection/common/floating-controller.js +18 -0
  6. package/dist/collection/common/keyboard-manager.js +3 -2
  7. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.css +70 -3
  8. package/dist/collection/components/mds-input-tip-item/mds-input-tip-item.js +23 -16
  9. package/dist/components/mds-input-tip-item.js +19 -12
  10. package/dist/documentation.json +29 -10
  11. package/dist/esm/{index-597e3999.js → index-12f9b038.js} +28 -2
  12. package/dist/esm/loader.js +3 -3
  13. package/dist/esm/mds-input-tip-item.entry.js +17 -12
  14. package/dist/esm/mds-input-tip-item.js +3 -3
  15. package/dist/esm-es5/index-12f9b038.js +1 -0
  16. package/dist/esm-es5/loader.js +1 -1
  17. package/dist/esm-es5/mds-input-tip-item.entry.js +2 -2
  18. package/dist/esm-es5/mds-input-tip-item.js +1 -1
  19. package/dist/mds-input-tip-item/mds-input-tip-item.esm.js +1 -1
  20. package/dist/mds-input-tip-item/mds-input-tip-item.js +1 -1
  21. package/dist/mds-input-tip-item/{p-195d7fb2.js → p-152179b9.js} +2 -2
  22. package/dist/mds-input-tip-item/p-514cf0ee.system.entry.js +6 -0
  23. package/dist/mds-input-tip-item/p-a5c5e095.system.js +1 -0
  24. package/dist/mds-input-tip-item/p-ad0ff97f.entry.js +6 -0
  25. package/dist/mds-input-tip-item/{p-b760556f.system.js → p-f3fcd277.system.js} +2 -2
  26. package/dist/stats.json +47 -44
  27. package/dist/types/common/floating-controller.d.ts +1 -0
  28. package/dist/types/components/mds-input-tip-item/mds-input-tip-item.d.ts +3 -2
  29. package/dist/types/components.d.ts +2 -2
  30. package/dist/types/type/input-tip.d.ts +1 -0
  31. package/documentation.json +29 -10
  32. package/package.json +1 -1
  33. package/readme.md +4 -4
  34. package/src/common/floating-controller.ts +20 -0
  35. package/src/common/keyboard-manager.ts +1 -0
  36. package/src/components/mds-input-tip-item/css/mds-input-tip-item-expanded.css +14 -0
  37. package/src/components/mds-input-tip-item/css/mds-input-tip-item-pref-contrast.css +41 -0
  38. package/src/components/mds-input-tip-item/css/mds-input-tip-item-variant.css +44 -0
  39. package/src/components/mds-input-tip-item/mds-input-tip-item.css +3 -35
  40. package/src/components/mds-input-tip-item/mds-input-tip-item.tsx +16 -3
  41. package/src/components/mds-input-tip-item/readme.md +4 -4
  42. package/src/components.d.ts +2 -2
  43. package/src/{components/mds-input-tip-item/meta/types.ts → type/input-tip.ts} +7 -2
  44. package/www/build/mds-input-tip-item.esm.js +1 -1
  45. package/www/build/mds-input-tip-item.js +1 -1
  46. package/www/build/{p-195d7fb2.js → p-152179b9.js} +2 -2
  47. package/www/build/p-514cf0ee.system.entry.js +6 -0
  48. package/www/build/p-a5c5e095.system.js +1 -0
  49. package/www/build/p-ad0ff97f.entry.js +6 -0
  50. package/www/build/{p-b760556f.system.js → p-f3fcd277.system.js} +2 -2
  51. package/dist/esm-es5/index-597e3999.js +0 -1
  52. package/dist/mds-input-tip-item/p-67a91ec7.system.js +0 -1
  53. package/dist/mds-input-tip-item/p-e01947b1.entry.js +0 -6
  54. package/dist/mds-input-tip-item/p-e574ecf3.system.entry.js +0 -6
  55. package/dist/types/components/mds-input-tip-item/meta/types.d.ts +0 -1
  56. package/www/build/p-67a91ec7.system.js +0 -1
  57. package/www/build/p-e01947b1.entry.js +0 -6
  58. package/www/build/p-e574ecf3.system.entry.js +0 -6
  59. /package/dist/collection/{components/mds-input-tip-item/meta/types.js → type/input-tip.js} +0 -0
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mds-input-tip-item';
24
- const BUILD = /* mds-input-tip-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* mds-input-tip-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
27
  Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
@@ -897,6 +897,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
897
897
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
898
898
  );
899
899
  }
900
+ const elm = hostRef.$hostElement$ ;
900
901
  const oldVal = hostRef.$instanceValues$.get(propName);
901
902
  const flags = hostRef.$flags$;
902
903
  const instance = hostRef.$lazyInstance$ ;
@@ -906,6 +907,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
906
907
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
907
908
  hostRef.$instanceValues$.set(propName, newVal);
908
909
  if (instance) {
910
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
911
+ const watchMethods = cmpMeta.$watchers$[propName];
912
+ if (watchMethods) {
913
+ watchMethods.map((watchMethodName) => {
914
+ try {
915
+ instance[watchMethodName](newVal, oldVal, propName);
916
+ } catch (e) {
917
+ consoleError(e, elm);
918
+ }
919
+ });
920
+ }
921
+ }
909
922
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
910
923
  if (instance.componentShouldUpdate) {
911
924
  if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
@@ -922,7 +935,10 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
922
935
  var proxyComponent = (Cstr, cmpMeta, flags) => {
923
936
  var _a, _b;
924
937
  const prototype = Cstr.prototype;
925
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
938
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
939
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
940
+ cmpMeta.$watchers$ = Cstr.watchers;
941
+ }
926
942
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
927
943
  members.map(([memberName, [memberFlags]]) => {
928
944
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
@@ -1073,6 +1089,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
1089
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1074
1090
  }
1075
1091
  if (!Cstr.isProxied) {
1092
+ {
1093
+ cmpMeta.$watchers$ = Cstr.watchers;
1094
+ }
1076
1095
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1077
1096
  Cstr.isProxied = true;
1078
1097
  }
@@ -1088,6 +1107,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1088
1107
  {
1089
1108
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1090
1109
  }
1110
+ {
1111
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1112
+ }
1091
1113
  endNewInstance();
1092
1114
  fireConnectedCallback(hostRef.$lazyInstance$, elm);
1093
1115
  } else {
@@ -1205,6 +1227,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1205
1227
  let hasSlotRelocation = false;
1206
1228
  lazyBundles.map((lazyBundle) => {
1207
1229
  lazyBundle[1].map((compactMeta) => {
1230
+ var _a2;
1208
1231
  const cmpMeta = {
1209
1232
  $flags$: compactMeta[0],
1210
1233
  $tagName$: compactMeta[1],
@@ -1220,6 +1243,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1220
1243
  {
1221
1244
  cmpMeta.$attrsToReflect$ = [];
1222
1245
  }
1246
+ {
1247
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1248
+ }
1223
1249
  const tagName = cmpMeta.$tagName$;
1224
1250
  const HostElement = class extends HTMLElement {
1225
1251
  // StencilLazyHost
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8a2658a5.js');
5
+ const index = require('./index-733e68a3.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["mds-input-tip-item.cjs",[[1,"mds-input-tip-item",{"variant":[513],"expanded":[516],"language":[32],"updateLang":[64]}]]]], options);
11
+ return index.bootstrapLazy([["mds-input-tip-item.cjs",[[1,"mds-input-tip-item",{"variant":[513],"expanded":[1540],"language":[32],"updateLang":[64]},null,{"expanded":["handleEcpandedChanged"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8a2658a5.js');
5
+ const index = require('./index-733e68a3.js');
6
6
 
7
7
  const miBaselineDone = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.2L4.8 12l-1.4 1.4L9 19L21 7l-1.4-1.4L9 16.2z"/></svg>`;
8
8
 
@@ -884,7 +884,7 @@ const localeIt = {
884
884
  readonly: readonly
885
885
  };
886
886
 
887
- const mdsInputTipItemCss = "@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host([expanded=\"false\"]){color:transparent}:host([expanded]:not([expanded=\"false\"])){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]:not([expanded=\"false\"])) .content{grid-template-columns:1fr;opacity:1}:host([variant=\"required\"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant=\"required-success\"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant=\"readonly\"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant=\"disabled\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant=\"text\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
887
+ const mdsInputTipItemCss = "@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host(:not([expanded])){color:transparent}:host([expanded]){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]) .content{grid-template-columns:1fr;opacity:1}:host([variant=\"required\"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant=\"required-success\"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant=\"readonly\"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant=\"disabled\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant=\"text\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host([variant=\"count-empty\"]){--mds-input-tip-item-color:rgb(var(--status-info-02));--mds-input-tip-item-background:rgb(var(--status-info-08))}:host([variant=\"count-incomplete\"]){--mds-input-tip-item-color:rgb(var(--status-success-02));--mds-input-tip-item-background:rgb(var(--status-success-08))}:host([variant=\"count-almost\"]){--mds-input-tip-item-color:rgb(var(--status-warning-02));--mds-input-tip-item-background:rgb(var(--status-warning-08))}:host([variant=\"count-almost-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-02));--mds-input-tip-item-background:rgb(var(--status-error-08))}:host([variant=\"count-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-09));--mds-input-tip-item-background:rgb(var(--status-error-05))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-contrast-more):host([variant=\"count-empty\"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-more):host([variant=\"count-incomplete\"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-more):host([variant=\"count-almost\"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-more):host([variant=\"count-almost-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant=\"count-empty\"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-system):host([variant=\"count-incomplete\"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-system):host([variant=\"count-almost\"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-system):host([variant=\"count-almost-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
888
888
  const MdsInputTipItemStyle0 = mdsInputTipItemCss;
889
889
 
890
890
  const MdsInputTipItem = class {
@@ -900,10 +900,6 @@ const MdsInputTipItem = class {
900
900
  * Specifies the variant of the element
901
901
  */
902
902
  this.variant = 'required';
903
- /**
904
- * Specifies if the element is expanded
905
- */
906
- this.expanded = true;
907
903
  }
908
904
  async updateLang() {
909
905
  this.language = this.t.lang(this.element);
@@ -911,15 +907,24 @@ const MdsInputTipItem = class {
911
907
  componentWillRender() {
912
908
  this.t.lang(this.element);
913
909
  }
910
+ handleEcpandedChanged(newValue) {
911
+ if (newValue === false) {
912
+ this.expanded = undefined;
913
+ }
914
+ }
914
915
  render() {
915
- return (index.h(index.Host, { key: '0d9b4b63e9bc9c2f35169eb6fb6cdd18eff102ba' }, index.h("div", { key: 'aa8f06b8a43204cf879aade4e9b075bc023450a8', class: "content" }, this.variant === 'text' &&
916
- index.h("mds-text", { key: '4daa82f6786179d612246eef8a2b0e9db8aa4424', typography: "option", truncate: "word" }, index.h("span", { key: 'fc97bfed7688e10e7cb225e1d746a5cb1362ac14', class: "text" }, index.h("slot", { key: '426592f0330dcbcc5210617277464ab90875463d' }))), this.variant === 'readonly' &&
917
- index.h("mds-text", { key: 'a0214fc19b6389af8d8793a03764fef300da7cae', typography: "option", truncate: "word" }, index.h("span", { key: 'cc696e1875c3f3ff6a632862800cd9c49045609e', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
918
- index.h("mds-text", { key: 'dd8a6c5716bbe8de7327c2fb52ca8901892c85a6', typography: "option", truncate: "word" }, index.h("span", { key: 'b7fa49ca291ac6a36fc30a2c94e6343d9634031b', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
919
- index.h("mds-text", { key: '4dbee8538b2bbdd5db00ac93ec584701158d637c', typography: "option", truncate: "word" }, index.h("span", { key: 'b60e9649e77e9136443ca24c86ef5c66bdeab639', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
920
- index.h("span", { key: '3fc91df192b6588bcfbe8d102c4c7a9444315576', class: "icon", innerHTML: miBaselineDone }))));
916
+ return (index.h(index.Host, { key: 'f33ad71b08aa4883c7260e20e7f9b8f43dcf0519' }, index.h("div", { key: '5b67c52055c0095cca9227159467b683d5ea0f51', class: "content" }, this.variant === 'text' &&
917
+ index.h("mds-text", { key: 'cd394cc4c4af8a6614c5dc822c0bb18eb6e42c91', typography: "option", truncate: "word" }, index.h("span", { key: 'b7ddcd89a9b15a5d5f9ec6ba25c1e89d62c88663', class: "text" }, index.h("slot", { key: '91cc7606f0788161127653082871d34877367ec2' }))), this.variant === 'readonly' &&
918
+ index.h("mds-text", { key: 'd32601380ff2619d3bd92c4ca0b39d7bad4b54fb', typography: "option", truncate: "word" }, index.h("span", { key: '9a38d81925d19762ca42301d6c6ed97f6f967031', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
919
+ index.h("mds-text", { key: '00033b59e084466020cb3e1a2b68d3be119c5bf0', typography: "option", truncate: "word" }, index.h("span", { key: '3f165a5b0b1203a560aaaef5de029fb3418d7ab6', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
920
+ index.h("mds-text", { key: 'd50e0f3f3ad8648fb2a5d03c4b61a3930d3f20a4', typography: "option", truncate: "word" }, index.h("span", { key: 'f99be6cb7039922aaed356489a85b2b33dbe8794', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
921
+ index.h("span", { key: '84481ab95da9f97954878fa341537790404f34b6', class: "icon", innerHTML: miBaselineDone }), (this.variant === 'count-almost' || this.variant === 'count-almost-full' || this.variant === 'count-empty' || this.variant === 'count-full' || this.variant === 'count-incomplete') &&
922
+ index.h("mds-text", { key: '43adceea6ad36da642f5a02cbf9c54c44e5b9f40', typography: "option", truncate: "word" }, index.h("span", { key: '0bb53315c34315233c64846e0c3f4ad120d10359', class: "text" }, index.h("slot", { key: '427514dbe5a58065d5eba66a1be77530d99c8957' }))))));
921
923
  }
922
924
  get element() { return index.getElement(this); }
925
+ static get watchers() { return {
926
+ "expanded": ["handleEcpandedChanged"]
927
+ }; }
923
928
  };
924
929
  MdsInputTipItem.style = MdsInputTipItemStyle0;
925
930
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-8a2658a5.js');
5
+ const index = require('./index-733e68a3.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["mds-input-tip-item.cjs",[[1,"mds-input-tip-item",{"variant":[513],"expanded":[516],"language":[32],"updateLang":[64]}]]]], options);
22
+ return index.bootstrapLazy([["mds-input-tip-item.cjs",[[1,"mds-input-tip-item",{"variant":[513],"expanded":[1540],"language":[32],"updateLang":[64]},null,{"expanded":["handleEcpandedChanged"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -65,6 +65,23 @@ export class FloatingController {
65
65
  return { transformOrigin: 'center top' };
66
66
  }
67
67
  };
68
+ this.convertToTransformOrigin = (position) => {
69
+ const positions = {
70
+ top: 'center bottom',
71
+ right: 'left center',
72
+ bottom: 'center top',
73
+ left: 'right center',
74
+ 'bottom-end': 'top right',
75
+ 'bottom-start': 'top left',
76
+ 'left-end': 'right bottom',
77
+ 'left-start': 'right top',
78
+ 'right-end': 'left bottom',
79
+ 'right-start': 'left top',
80
+ 'top-end': 'bottom right',
81
+ 'top-start': 'bottom left',
82
+ };
83
+ return positions[position];
84
+ };
68
85
  this.calculatePosition = () => {
69
86
  if (!this._caller)
70
87
  return;
@@ -99,6 +116,7 @@ export class FloatingController {
99
116
  Object.assign(this._host.style, {
100
117
  left: `${x}px`,
101
118
  top: `${y}px`,
119
+ transformOrigin: this.convertToTransformOrigin(placement),
102
120
  });
103
121
  const arrowStyle = {};
104
122
  const arrowPosition = {
@@ -22,8 +22,9 @@ export class KeyboardManager {
22
22
  this.elements.delete(name);
23
23
  };
24
24
  this.attachClickBehavior = (name = 'element') => {
25
- var _a;
26
- (_a = this.elements.get(name)) === null || _a === void 0 ? void 0 : _a.addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
25
+ var _a, _b;
26
+ (_a = this.elements.get(name)) === null || _a === void 0 ? void 0 : _a.removeEventListener('keydown', this.handleClickBehaviorDispatchEvent);
27
+ (_b = this.elements.get(name)) === null || _b === void 0 ? void 0 : _b.addEventListener('keydown', this.handleClickBehaviorDispatchEvent);
27
28
  };
28
29
  this.detachClickBehavior = (name = 'element') => {
29
30
  var _a;
@@ -66,18 +66,18 @@
66
66
  transform: translateY(-1px);
67
67
  }
68
68
 
69
- :host([expanded="false"]) {
69
+ :host(:not([expanded])) {
70
70
  color: transparent;
71
71
  }
72
72
 
73
- :host([expanded]:not([expanded="false"])){
73
+ :host([expanded]){
74
74
  padding-left: 0.5rem;
75
75
  padding-right: 0.5rem;
76
76
 
77
77
  --mds-input-tip-item-color: rgb(var(--tone-neutral));
78
78
  }
79
79
 
80
- :host([expanded]:not([expanded="false"])) .content {
80
+ :host([expanded]) .content {
81
81
  grid-template-columns: 1fr;
82
82
  opacity: 1;
83
83
  }
@@ -102,6 +102,31 @@
102
102
  --mds-input-tip-item-background: rgb(var(--tone-neutral-03));
103
103
  }
104
104
 
105
+ :host([variant="count-empty"]) {
106
+ --mds-input-tip-item-color: rgb(var(--status-info-02));
107
+ --mds-input-tip-item-background: rgb(var(--status-info-08));
108
+ }
109
+
110
+ :host([variant="count-incomplete"]) {
111
+ --mds-input-tip-item-color: rgb(var(--status-success-02));
112
+ --mds-input-tip-item-background: rgb(var(--status-success-08));
113
+ }
114
+
115
+ :host([variant="count-almost"]) {
116
+ --mds-input-tip-item-color: rgb(var(--status-warning-02));
117
+ --mds-input-tip-item-background: rgb(var(--status-warning-08));
118
+ }
119
+
120
+ :host([variant="count-almost-full"]) {
121
+ --mds-input-tip-item-color: rgb(var(--status-error-02));
122
+ --mds-input-tip-item-background: rgb(var(--status-error-08));
123
+ }
124
+
125
+ :host([variant="count-full"]) {
126
+ --mds-input-tip-item-color: rgb(var(--status-error-09));
127
+ --mds-input-tip-item-background: rgb(var(--status-error-05));
128
+ }
129
+
105
130
  :host-context(.pref-animation-reduce),
106
131
  :host-context(.pref-animation-reduce) .content {
107
132
  transition-duration: 0s;
@@ -114,6 +139,48 @@
114
139
  }
115
140
  }
116
141
 
142
+ :host-context(.pref-contrast-more):host([variant="count-empty"]) {
143
+ --mds-input-tip-item-color: rgb(var(--status-info-10));
144
+ --mds-input-tip-item-background: rgb(var(--status-info-05));
145
+ }
146
+
147
+ :host-context(.pref-contrast-more):host([variant="count-incomplete"]) {
148
+ --mds-input-tip-item-color: rgb(var(--status-success-10));
149
+ --mds-input-tip-item-background: rgb(var(--status-success-05));
150
+ }
151
+
152
+ :host-context(.pref-contrast-more):host([variant="count-almost"]) {
153
+ --mds-input-tip-item-color: rgb(var(--status-warning-10));
154
+ --mds-input-tip-item-background: rgb(var(--status-warning-05));
155
+ }
156
+
157
+ :host-context(.pref-contrast-more):host([variant="count-almost-full"]) {
158
+ --mds-input-tip-item-color: rgb(var(--status-error-10));
159
+ --mds-input-tip-item-background: rgb(var(--status-error-05));
160
+ }
161
+
162
+ @media (prefers-contrast: more) {
163
+ :host-context(.pref-contrast-system):host([variant="count-empty"]) {
164
+ --mds-input-tip-item-color: rgb(var(--status-info-10));
165
+ --mds-input-tip-item-background: rgb(var(--status-info-05));
166
+ }
167
+
168
+ :host-context(.pref-contrast-system):host([variant="count-incomplete"]) {
169
+ --mds-input-tip-item-color: rgb(var(--status-success-10));
170
+ --mds-input-tip-item-background: rgb(var(--status-success-05));
171
+ }
172
+
173
+ :host-context(.pref-contrast-system):host([variant="count-almost"]) {
174
+ --mds-input-tip-item-color: rgb(var(--status-warning-10));
175
+ --mds-input-tip-item-background: rgb(var(--status-warning-05));
176
+ }
177
+
178
+ :host-context(.pref-contrast-system):host([variant="count-almost-full"]) {
179
+ --mds-input-tip-item-color: rgb(var(--status-error-10));
180
+ --mds-input-tip-item-background: rgb(var(--status-error-05));
181
+ }
182
+ }
183
+
117
184
  :host(:not(:is([hydrated], .hydrated))) {
118
185
  animation-duration: 0s;
119
186
  border-color: transparent;
@@ -17,10 +17,6 @@ export class MdsInputTipItem {
17
17
  * Specifies the variant of the element
18
18
  */
19
19
  this.variant = 'required';
20
- /**
21
- * Specifies if the element is expanded
22
- */
23
- this.expanded = true;
24
20
  }
25
21
  async updateLang() {
26
22
  this.language = this.t.lang(this.element);
@@ -28,13 +24,19 @@ export class MdsInputTipItem {
28
24
  componentWillRender() {
29
25
  this.t.lang(this.element);
30
26
  }
27
+ handleEcpandedChanged(newValue) {
28
+ if (newValue === false) {
29
+ this.expanded = undefined;
30
+ }
31
+ }
31
32
  render() {
32
- return (h(Host, { key: '0d9b4b63e9bc9c2f35169eb6fb6cdd18eff102ba' }, h("div", { key: 'aa8f06b8a43204cf879aade4e9b075bc023450a8', class: "content" }, this.variant === 'text' &&
33
- h("mds-text", { key: '4daa82f6786179d612246eef8a2b0e9db8aa4424', typography: "option", truncate: "word" }, h("span", { key: 'fc97bfed7688e10e7cb225e1d746a5cb1362ac14', class: "text" }, h("slot", { key: '426592f0330dcbcc5210617277464ab90875463d' }))), this.variant === 'readonly' &&
34
- h("mds-text", { key: 'a0214fc19b6389af8d8793a03764fef300da7cae', typography: "option", truncate: "word" }, h("span", { key: 'cc696e1875c3f3ff6a632862800cd9c49045609e', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
35
- h("mds-text", { key: 'dd8a6c5716bbe8de7327c2fb52ca8901892c85a6', typography: "option", truncate: "word" }, h("span", { key: 'b7fa49ca291ac6a36fc30a2c94e6343d9634031b', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
36
- h("mds-text", { key: '4dbee8538b2bbdd5db00ac93ec584701158d637c', typography: "option", truncate: "word" }, h("span", { key: 'b60e9649e77e9136443ca24c86ef5c66bdeab639', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
37
- h("span", { key: '3fc91df192b6588bcfbe8d102c4c7a9444315576', class: "icon", innerHTML: miBaselineDone }))));
33
+ return (h(Host, { key: 'f33ad71b08aa4883c7260e20e7f9b8f43dcf0519' }, h("div", { key: '5b67c52055c0095cca9227159467b683d5ea0f51', class: "content" }, this.variant === 'text' &&
34
+ h("mds-text", { key: 'cd394cc4c4af8a6614c5dc822c0bb18eb6e42c91', typography: "option", truncate: "word" }, h("span", { key: 'b7ddcd89a9b15a5d5f9ec6ba25c1e89d62c88663', class: "text" }, h("slot", { key: '91cc7606f0788161127653082871d34877367ec2' }))), this.variant === 'readonly' &&
35
+ h("mds-text", { key: 'd32601380ff2619d3bd92c4ca0b39d7bad4b54fb', typography: "option", truncate: "word" }, h("span", { key: '9a38d81925d19762ca42301d6c6ed97f6f967031', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
36
+ h("mds-text", { key: '00033b59e084466020cb3e1a2b68d3be119c5bf0', typography: "option", truncate: "word" }, h("span", { key: '3f165a5b0b1203a560aaaef5de029fb3418d7ab6', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
37
+ h("mds-text", { key: 'd50e0f3f3ad8648fb2a5d03c4b61a3930d3f20a4', typography: "option", truncate: "word" }, h("span", { key: 'f99be6cb7039922aaed356489a85b2b33dbe8794', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
38
+ h("span", { key: '84481ab95da9f97954878fa341537790404f34b6', class: "icon", innerHTML: miBaselineDone }), (this.variant === 'count-almost' || this.variant === 'count-almost-full' || this.variant === 'count-empty' || this.variant === 'count-full' || this.variant === 'count-incomplete') &&
39
+ h("mds-text", { key: '43adceea6ad36da642f5a02cbf9c54c44e5b9f40', typography: "option", truncate: "word" }, h("span", { key: '0bb53315c34315233c64846e0c3f4ad120d10359', class: "text" }, h("slot", { key: '427514dbe5a58065d5eba66a1be77530d99c8957' }))))));
38
40
  }
39
41
  static get is() { return "mds-input-tip-item"; }
40
42
  static get encapsulation() { return "shadow"; }
@@ -55,12 +57,12 @@ export class MdsInputTipItem {
55
57
  "mutable": false,
56
58
  "complexType": {
57
59
  "original": "InputTipItemVariantType",
58
- "resolved": "\"disabled\" | \"readonly\" | \"required\" | \"required-success\" | \"text\" | undefined",
60
+ "resolved": "\"count-almost\" | \"count-almost-full\" | \"count-empty\" | \"count-full\" | \"count-incomplete\" | \"disabled\" | \"readonly\" | \"required\" | \"required-success\" | \"text\" | undefined",
59
61
  "references": {
60
62
  "InputTipItemVariantType": {
61
63
  "location": "import",
62
- "path": "./meta/types",
63
- "id": "src/components/mds-input-tip-item/meta/types.ts::InputTipItemVariantType"
64
+ "path": "@type/input-tip",
65
+ "id": "src/type/input-tip.ts::InputTipItemVariantType"
64
66
  }
65
67
  }
66
68
  },
@@ -78,7 +80,7 @@ export class MdsInputTipItem {
78
80
  },
79
81
  "expanded": {
80
82
  "type": "boolean",
81
- "mutable": false,
83
+ "mutable": true,
82
84
  "complexType": {
83
85
  "original": "boolean",
84
86
  "resolved": "boolean | undefined",
@@ -93,8 +95,7 @@ export class MdsInputTipItem {
93
95
  "getter": false,
94
96
  "setter": false,
95
97
  "attribute": "expanded",
96
- "reflect": true,
97
- "defaultValue": "true"
98
+ "reflect": true
98
99
  }
99
100
  };
100
101
  }
@@ -125,4 +126,10 @@ export class MdsInputTipItem {
125
126
  };
126
127
  }
127
128
  static get elementRef() { return "element"; }
129
+ static get watchers() {
130
+ return [{
131
+ "propName": "expanded",
132
+ "methodName": "handleEcpandedChanged"
133
+ }];
134
+ }
128
135
  }
@@ -880,7 +880,7 @@ const localeIt = {
880
880
  readonly: readonly
881
881
  };
882
882
 
883
- const mdsInputTipItemCss = "@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host([expanded=\"false\"]){color:transparent}:host([expanded]:not([expanded=\"false\"])){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]:not([expanded=\"false\"])) .content{grid-template-columns:1fr;opacity:1}:host([variant=\"required\"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant=\"required-success\"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant=\"readonly\"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant=\"disabled\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant=\"text\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
883
+ const mdsInputTipItemCss = "@tailwind components; :host{--mds-input-tip-item-background:rgb(var(--tone-neutral-01));--mds-input-tip-item-color:rgb(var(--tone-neutral));--mds-input-tip-item-icon-color:rgb(var(--tone-neutral));height:0.75rem;border-radius:0.375rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-input-tip-item-background);color:var(--mds-input-tip-item-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;min-width:0.75rem;padding:0;pointer-events:none;position:static;text-align:center;-webkit-transform:translate(0, 0);transform:translate(0, 0);-webkit-transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, -webkit-transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform;transition-property:background-color, border-radius, color, padding-left, padding-right, transform, -webkit-transform;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.content{height:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);display:grid;grid-template-columns:0fr;opacity:0;overflow:hidden;-webkit-transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity;transition-property:grid-template-columns, opacity, -ms-grid-columns}.text{line-height:0.75rem}.icon{display:-ms-flexbox;display:flex}.icon svg{aspect-ratio:1/1;height:100%;width:100%}.icon{height:0.75rem;width:0.75rem;fill:var(--mds-input-tip-item-icon-color);-webkit-transform:translateY(-1px);transform:translateY(-1px)}:host(:not([expanded])){color:transparent}:host([expanded]){padding-left:0.5rem;padding-right:0.5rem;--mds-input-tip-item-color:rgb(var(--tone-neutral))}:host([expanded]) .content{grid-template-columns:1fr;opacity:1}:host([variant=\"required\"]){--mds-input-tip-item-background:rgb(var(--status-error-05))}:host([variant=\"required-success\"]){--mds-input-tip-item-background:rgb(var(--status-success-05))}:host([variant=\"readonly\"]){--mds-input-tip-item-background:rgb(var(--status-info-05))}:host([variant=\"disabled\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-05))}:host([variant=\"text\"]){--mds-input-tip-item-background:rgb(var(--tone-neutral-03))}:host([variant=\"count-empty\"]){--mds-input-tip-item-color:rgb(var(--status-info-02));--mds-input-tip-item-background:rgb(var(--status-info-08))}:host([variant=\"count-incomplete\"]){--mds-input-tip-item-color:rgb(var(--status-success-02));--mds-input-tip-item-background:rgb(var(--status-success-08))}:host([variant=\"count-almost\"]){--mds-input-tip-item-color:rgb(var(--status-warning-02));--mds-input-tip-item-background:rgb(var(--status-warning-08))}:host([variant=\"count-almost-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-02));--mds-input-tip-item-background:rgb(var(--status-error-08))}:host([variant=\"count-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-09));--mds-input-tip-item-background:rgb(var(--status-error-05))}:host-context(.pref-animation-reduce),:host-context(.pref-animation-reduce) .content{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system),:host-context(.pref-animation-system) .content{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-contrast-more):host([variant=\"count-empty\"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-more):host([variant=\"count-incomplete\"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-more):host([variant=\"count-almost\"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-more):host([variant=\"count-almost-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}@media (prefers-contrast: more){:host-context(.pref-contrast-system):host([variant=\"count-empty\"]){--mds-input-tip-item-color:rgb(var(--status-info-10));--mds-input-tip-item-background:rgb(var(--status-info-05))}:host-context(.pref-contrast-system):host([variant=\"count-incomplete\"]){--mds-input-tip-item-color:rgb(var(--status-success-10));--mds-input-tip-item-background:rgb(var(--status-success-05))}:host-context(.pref-contrast-system):host([variant=\"count-almost\"]){--mds-input-tip-item-color:rgb(var(--status-warning-10));--mds-input-tip-item-background:rgb(var(--status-warning-05))}:host-context(.pref-contrast-system):host([variant=\"count-almost-full\"]){--mds-input-tip-item-color:rgb(var(--status-error-10));--mds-input-tip-item-background:rgb(var(--status-error-05))}}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}";
884
884
  const MdsInputTipItemStyle0 = mdsInputTipItemCss;
885
885
 
886
886
  const MdsInputTipItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTipItem extends HTMLElement {
@@ -898,10 +898,6 @@ const MdsInputTipItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTipItem
898
898
  * Specifies the variant of the element
899
899
  */
900
900
  this.variant = 'required';
901
- /**
902
- * Specifies if the element is expanded
903
- */
904
- this.expanded = true;
905
901
  }
906
902
  async updateLang() {
907
903
  this.language = this.t.lang(this.element);
@@ -909,21 +905,32 @@ const MdsInputTipItem$1 = /*@__PURE__*/ proxyCustomElement(class MdsInputTipItem
909
905
  componentWillRender() {
910
906
  this.t.lang(this.element);
911
907
  }
908
+ handleEcpandedChanged(newValue) {
909
+ if (newValue === false) {
910
+ this.expanded = undefined;
911
+ }
912
+ }
912
913
  render() {
913
- return (h(Host, { key: '0d9b4b63e9bc9c2f35169eb6fb6cdd18eff102ba' }, h("div", { key: 'aa8f06b8a43204cf879aade4e9b075bc023450a8', class: "content" }, this.variant === 'text' &&
914
- h("mds-text", { key: '4daa82f6786179d612246eef8a2b0e9db8aa4424', typography: "option", truncate: "word" }, h("span", { key: 'fc97bfed7688e10e7cb225e1d746a5cb1362ac14', class: "text" }, h("slot", { key: '426592f0330dcbcc5210617277464ab90875463d' }))), this.variant === 'readonly' &&
915
- h("mds-text", { key: 'a0214fc19b6389af8d8793a03764fef300da7cae', typography: "option", truncate: "word" }, h("span", { key: 'cc696e1875c3f3ff6a632862800cd9c49045609e', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
916
- h("mds-text", { key: 'dd8a6c5716bbe8de7327c2fb52ca8901892c85a6', typography: "option", truncate: "word" }, h("span", { key: 'b7fa49ca291ac6a36fc30a2c94e6343d9634031b', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
917
- h("mds-text", { key: '4dbee8538b2bbdd5db00ac93ec584701158d637c', typography: "option", truncate: "word" }, h("span", { key: 'b60e9649e77e9136443ca24c86ef5c66bdeab639', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
918
- h("span", { key: '3fc91df192b6588bcfbe8d102c4c7a9444315576', class: "icon", innerHTML: miBaselineDone }))));
914
+ return (h(Host, { key: 'f33ad71b08aa4883c7260e20e7f9b8f43dcf0519' }, h("div", { key: '5b67c52055c0095cca9227159467b683d5ea0f51', class: "content" }, this.variant === 'text' &&
915
+ h("mds-text", { key: 'cd394cc4c4af8a6614c5dc822c0bb18eb6e42c91', typography: "option", truncate: "word" }, h("span", { key: 'b7ddcd89a9b15a5d5f9ec6ba25c1e89d62c88663', class: "text" }, h("slot", { key: '91cc7606f0788161127653082871d34877367ec2' }))), this.variant === 'readonly' &&
916
+ h("mds-text", { key: 'd32601380ff2619d3bd92c4ca0b39d7bad4b54fb', typography: "option", truncate: "word" }, h("span", { key: '9a38d81925d19762ca42301d6c6ed97f6f967031', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'disabled' &&
917
+ h("mds-text", { key: '00033b59e084466020cb3e1a2b68d3be119c5bf0', typography: "option", truncate: "word" }, h("span", { key: '3f165a5b0b1203a560aaaef5de029fb3418d7ab6', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required' &&
918
+ h("mds-text", { key: 'd50e0f3f3ad8648fb2a5d03c4b61a3930d3f20a4', typography: "option", truncate: "word" }, h("span", { key: 'f99be6cb7039922aaed356489a85b2b33dbe8794', class: "text" }, this.variant && this.t.get(this.variant.toString()))), this.variant === 'required-success' &&
919
+ h("span", { key: '84481ab95da9f97954878fa341537790404f34b6', class: "icon", innerHTML: miBaselineDone }), (this.variant === 'count-almost' || this.variant === 'count-almost-full' || this.variant === 'count-empty' || this.variant === 'count-full' || this.variant === 'count-incomplete') &&
920
+ h("mds-text", { key: '43adceea6ad36da642f5a02cbf9c54c44e5b9f40', typography: "option", truncate: "word" }, h("span", { key: '0bb53315c34315233c64846e0c3f4ad120d10359', class: "text" }, h("slot", { key: '427514dbe5a58065d5eba66a1be77530d99c8957' }))))));
919
921
  }
920
922
  get element() { return this; }
923
+ static get watchers() { return {
924
+ "expanded": ["handleEcpandedChanged"]
925
+ }; }
921
926
  static get style() { return MdsInputTipItemStyle0; }
922
927
  }, [1, "mds-input-tip-item", {
923
928
  "variant": [513],
924
- "expanded": [516],
929
+ "expanded": [1540],
925
930
  "language": [32],
926
931
  "updateLang": [64]
932
+ }, undefined, {
933
+ "expanded": ["handleEcpandedChanged"]
927
934
  }]);
928
935
  function defineCustomElement$1() {
929
936
  if (typeof customElements === "undefined") {