@paperless/core 2.8.7 → 2.8.9

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 (90) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/build/p-0af7a780.entry.js +2 -0
  3. package/dist/build/p-0af7a780.entry.js.map +1 -0
  4. package/dist/build/{p-a1cf75b7.js → p-29519565.js} +1 -1
  5. package/dist/build/{p-fbbe58f8.entry.js → p-a29aeb3a.entry.js} +2 -2
  6. package/dist/build/{p-fbbe58f8.entry.js.map → p-a29aeb3a.entry.js.map} +1 -1
  7. package/dist/{paperless/p-835abd94.entry.js → build/p-fb428490.entry.js} +2 -2
  8. package/dist/build/p-fb428490.entry.js.map +1 -0
  9. package/dist/build/p-field.p-field-container.entry.esm.js.map +1 -1
  10. package/dist/build/p-helper.p-tooltip.entry.esm.js.map +1 -1
  11. package/dist/build/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
  12. package/dist/build/paperless.esm.js +1 -1
  13. package/dist/cjs/p-field.p-field-container.entry.cjs.js.map +1 -1
  14. package/dist/cjs/p-field_2.cjs.entry.js +9 -7
  15. package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
  16. package/dist/cjs/p-helper.p-tooltip.entry.cjs.js.map +1 -1
  17. package/dist/cjs/p-helper_2.cjs.entry.js +3 -3
  18. package/dist/cjs/p-helper_2.cjs.entry.js.map +1 -1
  19. package/dist/cjs/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.cjs.js.map +1 -1
  20. package/dist/cjs/p-modal-body_4.cjs.entry.js +2 -2
  21. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  22. package/dist/collection/components/atoms/modal/container/modal-container.component.css +1 -1
  23. package/dist/collection/components/atoms/modal/container/modal-container.component.js +1 -1
  24. package/dist/collection/components/atoms/modal/container/modal-container.component.js.map +1 -1
  25. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -1
  26. package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
  27. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
  28. package/dist/collection/components/molecules/field/container/field-container.component.css +1 -1
  29. package/dist/collection/components/molecules/field/container/field-container.component.js +7 -5
  30. package/dist/collection/components/molecules/field/container/field-container.component.js.map +1 -1
  31. package/dist/collection/components/molecules/field/field/field.component.js +1 -1
  32. package/dist/collection/components/molecules/field/field/field.component.js.map +1 -1
  33. package/dist/components/{p-D6fvvqdR.js → p-B3uncgsi.js} +3 -3
  34. package/dist/components/{p-D6fvvqdR.js.map → p-B3uncgsi.js.map} +1 -1
  35. package/dist/components/{p-B9bfyk_o.js → p-BAmR4b2S.js} +5 -5
  36. package/dist/components/p-BAmR4b2S.js.map +1 -0
  37. package/dist/components/{p-CQD0GsAo.js → p-COiFNpXw.js} +12 -10
  38. package/dist/components/p-COiFNpXw.js.map +1 -0
  39. package/dist/components/{p-wIVv4FEB.js → p-DQA2IPFN.js} +6 -6
  40. package/dist/components/{p-wIVv4FEB.js.map → p-DQA2IPFN.js.map} +1 -1
  41. package/dist/components/{p-BiWMxBAJ.js → p-DX-f-ELg.js} +3 -3
  42. package/dist/components/{p-BiWMxBAJ.js.map → p-DX-f-ELg.js.map} +1 -1
  43. package/dist/components/p-attachment.js +3 -3
  44. package/dist/components/{p-CAuilYKO.js → p-bYh-7-zt.js} +6 -6
  45. package/dist/components/p-bYh-7-zt.js.map +1 -0
  46. package/dist/components/p-calendar.js +1 -1
  47. package/dist/components/p-datepicker.js +5 -5
  48. package/dist/components/p-field-container.js +1 -1
  49. package/dist/components/p-field.js +1 -1
  50. package/dist/components/p-helper.js +1 -1
  51. package/dist/components/p-modal-container.js +1 -1
  52. package/dist/components/p-modal.js +1 -1
  53. package/dist/components/p-select.js +4 -4
  54. package/dist/components/p-table-header.js +1 -1
  55. package/dist/components/p-table.js +5 -5
  56. package/dist/components/p-tooltip.js +1 -1
  57. package/dist/components/{p-DKyqEQOI.js → p-vMRb6cE9.js} +4 -4
  58. package/dist/components/{p-DKyqEQOI.js.map → p-vMRb6cE9.js.map} +1 -1
  59. package/dist/esm/p-field.p-field-container.entry.js.map +1 -1
  60. package/dist/esm/p-field_2.entry.js +9 -7
  61. package/dist/esm/p-field_2.entry.js.map +1 -1
  62. package/dist/esm/p-helper.p-tooltip.entry.js.map +1 -1
  63. package/dist/esm/p-helper_2.entry.js +3 -3
  64. package/dist/esm/p-helper_2.entry.js.map +1 -1
  65. package/dist/esm/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.js.map +1 -1
  66. package/dist/esm/p-modal-body_4.entry.js +2 -2
  67. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  68. package/dist/index.html +1 -1
  69. package/dist/paperless/p-0af7a780.entry.js +2 -0
  70. package/dist/paperless/p-0af7a780.entry.js.map +1 -0
  71. package/dist/paperless/{p-fbbe58f8.entry.js → p-a29aeb3a.entry.js} +2 -2
  72. package/dist/paperless/{p-fbbe58f8.entry.js.map → p-a29aeb3a.entry.js.map} +1 -1
  73. package/dist/{build/p-835abd94.entry.js → paperless/p-fb428490.entry.js} +2 -2
  74. package/dist/paperless/p-fb428490.entry.js.map +1 -0
  75. package/dist/paperless/p-field.p-field-container.entry.esm.js.map +1 -1
  76. package/dist/paperless/p-helper.p-tooltip.entry.esm.js.map +1 -1
  77. package/dist/paperless/p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.esm.js.map +1 -1
  78. package/dist/paperless/paperless.esm.js +1 -1
  79. package/dist/sw.js +1 -1
  80. package/dist/sw.js.map +1 -1
  81. package/package.json +1 -1
  82. package/dist/build/p-7e13aa00.entry.js +0 -2
  83. package/dist/build/p-7e13aa00.entry.js.map +0 -1
  84. package/dist/build/p-835abd94.entry.js.map +0 -1
  85. package/dist/components/p-B9bfyk_o.js.map +0 -1
  86. package/dist/components/p-CAuilYKO.js.map +0 -1
  87. package/dist/components/p-CQD0GsAo.js.map +0 -1
  88. package/dist/paperless/p-7e13aa00.entry.js +0 -2
  89. package/dist/paperless/p-7e13aa00.entry.js.map +0 -1
  90. package/dist/paperless/p-835abd94.entry.js.map +0 -1
@@ -2,7 +2,7 @@ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
2
2
  import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './p-DGLCmOXW.js';
3
3
  import { c as cva } from './p-CBWjHURv.js';
4
4
 
5
- const tooltipComponentCss = ".relative{position:relative!important}.h-inherit{height:inherit!important}.w-inherit{width:inherit!important}.max-w-full{max-width:100%!important}*{box-sizing:border-box}:host{cursor:pointer;height:inherit;max-width:100%;position:relative;width:inherit}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.z-tooltip{z-index:601!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.w-\\[2px\\]{width:2px!important}.w-full{width:100%!important}.w-max{width:max-content!important}.max-w-\\[14\\.5rem\\]{max-width:14.5rem!important}.max-w-\\[18rem\\]{max-width:18rem!important}.gap-2{gap:.5rem!important}.whitespace-normal{white-space:normal!important}.rounded-lg{border-radius:.5rem!important}.bg-negative-red-500{--tw-bg-opacity:1!important;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))!important}.bg-storm-500{background-color:rgb(24 30 41/var(--tw-bg-opacity,1))!important}.bg-storm-500,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-storm-300{color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.text-storm-300,.text-white{--tw-text-opacity:1!important}.text-white{color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.blur{--tw-blur:blur(8px)!important}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}";
5
+ const tooltipComponentCss = ".relative{position:relative!important}.h-inherit{height:inherit!important}.w-inherit{width:inherit!important}*{box-sizing:border-box}:host{height:inherit;max-width:100%;position:relative;width:inherit}:host([data-filled]){cursor:pointer}:host(:not([data-filled])){cursor:auto}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.z-tooltip{z-index:601!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.w-\\[2px\\]{width:2px!important}.w-full{width:100%!important}.w-max{width:max-content!important}.max-w-\\[14\\.5rem\\]{max-width:14.5rem!important}.max-w-\\[18rem\\]{max-width:18rem!important}.max-w-full{max-width:100%!important}.gap-2{gap:.5rem!important}.whitespace-normal{white-space:normal!important}.rounded-lg{border-radius:.5rem!important}.bg-negative-red-500{--tw-bg-opacity:1!important;background-color:rgb(230 30 30/var(--tw-bg-opacity,1))!important}.bg-storm-500{background-color:rgb(24 30 41/var(--tw-bg-opacity,1))!important}.bg-storm-500,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-storm-300{color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.text-storm-300,.text-white{--tw-text-opacity:1!important}.text-white{color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.blur{--tw-blur:blur(8px)!important}.blur,.drop-shadow-3{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}";
6
6
 
7
7
  const popover = cva([
8
8
  'inline-block px-2',
@@ -95,10 +95,10 @@ const Tooltip = /*@__PURE__*/ proxyCustomElement(class Tooltip extends H {
95
95
  }
96
96
  }
97
97
  render() {
98
- return (h(Host, { key: 'ba77fa6c67cbfed3ca278ba4fbbd45872249a2ae' }, h("slot", { key: '9b64e29812983e5f39b4b28785ceba799e19f0e3', name: 'trigger' }), h("div", { key: '72bffe0d9a0948fc179534f1cd231d980b276029', class: popover({
98
+ return (h(Host, { key: '061855254d8ba3c857a452369777a3af7d99d5d9', "data-filled": this.content?.length > 0 || this._hasContentSlot }, h("slot", { key: '8d3a32c9e18125caba8d33cf702371120ae274b9', name: 'trigger' }), h("div", { key: 'eec72189ce846f76957c4ffd0f8e82c533c7c48b', class: popover({
99
99
  variant: this.variant,
100
100
  strategy: this.strategy,
101
- }), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, h("div", { key: '14025280030b32cd1f7095c9a1082e08898a7aa3', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: '6721dd8c7c77feb4c9f58968d907fa2de08a838f', class: 'w-[2px] bg-negative-red-500' })), this.content ? this.content : h("slot", { name: 'content' })))));
101
+ }), role: 'popover', "data-placement": this.placement, ref: el => this._load(el) }, h("div", { key: 'd8ab8e718ec53fef9b8f2963d4c990ebe3b05854', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (h("div", { key: '7a0d589d6a18129e8b7a5a541b63e85274531721', class: 'w-[2px] bg-negative-red-500' })), this.content ? this.content : h("slot", { name: 'content' })))));
102
102
  }
103
103
  clickHandler() {
104
104
  if (this.variant === 'hover' || !this.enableUserInput) {
@@ -245,6 +245,6 @@ function defineCustomElement() {
245
245
  defineCustomElement();
246
246
 
247
247
  export { Tooltip as T, defineCustomElement as d };
248
- //# sourceMappingURL=p-B9bfyk_o.js.map
248
+ //# sourceMappingURL=p-BAmR4b2S.js.map
249
249
 
250
- //# sourceMappingURL=p-B9bfyk_o.js.map
250
+ //# sourceMappingURL=p-BAmR4b2S.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-BAmR4b2S.js","mappings":";;;;AAAA,MAAM,mBAAmB,GAAG,40EAA40E;;ACsBx2E,MAAM,OAAO,GAAG,GAAG,CAClB;IACC,mBAAmB;IACnB,SAAS;IACT,4CAA4C;IAC5C,YAAY;IAEZ,WAAW;IACX,qBAAqB;CACrB,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,KAAK,EAAE,8CAA8C;AACrD,YAAA,KAAK,EAAE,eAAe;AACtB,YAAA,KAAK,EAAE,mBAAmB;AAC1B,SAAA;AACD,QAAA,QAAQ,EAAE;AACT,YAAA,KAAK,EAAE,OAAO;AACd,YAAA,QAAQ,EAAE,UAAU;AACpB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;AAC3B,YAAA,KAAK,EAAE,OAAO;AACd,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC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AAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC;AAClD,SAAA,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAI;YAC/B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS;YAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE;gBAClC,GAAG,EAAE,CAAG,EAAA,CAAC,CAAI,EAAA,CAAA;gBACb,IAAI,EAAE,CAAG,EAAA,CAAC,CAAI,EAAA,CAAA;AACd,aAAA,CAAC;AACH,SAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/atoms/tooltip/tooltip.component.css?tag=p-tooltip&encapsulation=shadow","src/components/atoms/tooltip/tooltip.component.tsx"],"sourcesContent":[":host {\n\t@apply relative h-inherit w-inherit max-w-full;\n}\n\n:host([data-filled]) {\n\t@apply cursor-pointer;\n}\n\n:host(:not([data-filled])) {\n\t@apply cursor-auto;\n}\n","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-storm-500 text-white py-1 max-w-[14.5rem]',\n\t\t\t\tclick: 'max-w-[18rem]',\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-storm-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.css',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host data-filled={this.content?.length > 0 || this._hasContentSlot}>\n\t\t\t\t<slot name='trigger' />\n\t\t\t\t<div\n\t\t\t\t\tclass={popover({\n\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\trole='popover'\n\t\t\t\t\tdata-placement={this.placement}\n\t\t\t\t\tref={el => this._load(el)}\n\t\t\t\t>\n\t\t\t\t\t<div class='flex gap-2 whitespace-normal'>\n\t\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t\t<div class='w-[2px] bg-negative-red-500'></div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\t@Watch('content')\n\tonContentChange(content: string) {\n\t\tif (!content || content.length > 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
@@ -3,12 +3,12 @@ import { c as cva } from './p-CBWjHURv.js';
3
3
  import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj8rmO.js';
4
4
  import { c as cn } from './p-CT54OXR2.js';
5
5
  import { a as asBoolean } from './p-C5CTp9IA.js';
6
- import { d as defineCustomElement$4 } from './p-BiWMxBAJ.js';
6
+ import { d as defineCustomElement$4 } from './p-DX-f-ELg.js';
7
7
  import { d as defineCustomElement$3 } from './p-4sqhIpUp.js';
8
8
  import { d as defineCustomElement$2 } from './p-CEFg09mj.js';
9
- import { d as defineCustomElement$1 } from './p-B9bfyk_o.js';
9
+ import { d as defineCustomElement$1 } from './p-BAmR4b2S.js';
10
10
 
11
- const fieldContainerComponentCss = "*{box-sizing:border-box}.ml-2{margin-left:.5rem!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.font-normal{font-weight:400!important}.text-storm-200{--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none!important}";
11
+ const fieldContainerComponentCss = "*{box-sizing:border-box}.ml-2{margin-left:.5rem!important}.ml-auto{margin-left:auto!important}.flex{display:flex!important}.h-4{height:1rem!important}.h-5{height:1.25rem!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.cursor-auto{cursor:auto!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-col{flex-direction:column!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-between{justify-content:space-between!important}.gap-1{gap:.25rem!important}.rounded-lg{border-radius:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.font-medium{font-weight:500!important}.font-normal{font-weight:400!important}.text-storm-200{--tw-text-opacity:1!important;color:rgb(163 165 169/var(--tw-text-opacity,1))!important}.text-storm-300{--tw-text-opacity:1!important;color:rgb(116 120 127/var(--tw-text-opacity,1))!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none!important}";
12
12
 
13
13
  const loader = cva(['rounded-lg w-full'], {
14
14
  variants: {
@@ -119,17 +119,19 @@ const FieldContainer = /*@__PURE__*/ proxyCustomElement(class FieldContainer ext
119
119
  if (this.loading) {
120
120
  contentSlot = (h("p-loader", { key: 'df218e639ecd01be2a87ff3465760a1bcfbb11c9', variant: 'ghost', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger' }));
121
121
  }
122
- return (h("label", { key: '717b00a39577417f8a6404dabe9eed49822a04ae', htmlFor: this.id, class: 'flex w-inherit flex-col gap-1' }, h("div", { key: '6872ba4743e64b27633fe61521f0410e6f38375d', class: cn('flex items-end justify-between gap-1 empty:hidden', {
122
+ return (h("label", { key: 'ddd8941c3208fb0c6f227e32d7e3ae723d61e6dd', htmlFor: this.id, class: cn('flex w-inherit flex-col gap-1', {
123
+ 'cursor-auto': this.variant === 'read',
124
+ }) }, h("div", { key: 'cdb2f9dd2f6091cafcbb3da698d9e9a122803b83', class: cn('flex items-end justify-between gap-1 empty:hidden', {
123
125
  'flex-row-reverse': this.align === 'end',
124
- }) }, !!label?.length && (h("div", { key: '3beec6fa0accd9ee7009cb7b73424fb337f05d80', class: 'text-xs font-medium text-storm-300', onClick: () => this.focus.emit() }, label)), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
126
+ }) }, !!label?.length && (h("div", { key: '44ea8162c9ead039dd756fb051141d8a4f4b045f', class: 'text-xs font-medium text-storm-300', onClick: () => this.focus.emit() }, label)), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
125
127
  helper ||
126
- hasHeaderSlot) && (h("div", { key: '4984899018fc50a1f5269020a8ce07d105ad1c36', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
128
+ hasHeaderSlot) && (h("div", { key: '0170f94960de9a651a83100250ad229249d84a35', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
127
129
  asBoolean(this.showOptional) &&
128
- this.variant === 'write' && (h("span", { key: '807acddda0fa0b0e8cd5052877b986e6efbd7377', class: 'text-xs font-medium text-storm-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: '52d9011a86330a2ee7ecfcc8cf5b1c9c90797dce' }, hasHeaderSlot && h("slot", { key: '4a98ae2a5c8bd4bd488f2b42370b65bbb573950a', name: 'header' }), helper && (h("p-helper", { key: '4b51360054d7dc2173ffdf669cf657a237d99580', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: 'ebc67a9108f679e14593e5e5d40f4e686e2a1fee', class: cn({
130
+ this.variant === 'write' && (h("span", { key: 'a4bc9036afff6bddee7cb8c54e846c41901f0c77', class: 'text-xs font-medium text-storm-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (h(Fragment, { key: '6897378ab995338dc188bcf6c39c9cbc8109de97' }, hasHeaderSlot && h("slot", { key: '21668ea00eb10c910441dc685e0de31497b8f11d', name: 'header' }), helper && (h("p-helper", { key: '09799ce43feaea0cc21b6170f08f7a1fb2e43907', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), h("p-tooltip", { key: 'e1777971acc671c9f781f0afdc1415f86470dafd', class: cn({
129
131
  'w-full': this.variant === 'write' || this.loading,
130
132
  'ml-auto': this.align === 'end',
131
133
  'font-normal': this.variant === 'read',
132
- }), variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip, false), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: 'ee09127908a48f2947d9a76c3f0358ab64163937', name: 'error', slot: 'content' })), contentSlot)));
134
+ }), variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip, false), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (h("slot", { key: 'df36a39f4dd6268b55b4e2be31829eb74b4c7f42', name: 'error', slot: 'content' })), contentSlot)));
133
135
  }
134
136
  async _setLocales() {
135
137
  this._locales = await getLocaleComponentStrings(this._el);
@@ -206,6 +208,6 @@ function defineCustomElement() {
206
208
  defineCustomElement();
207
209
 
208
210
  export { FieldContainer as F, defineCustomElement as d };
209
- //# sourceMappingURL=p-CQD0GsAo.js.map
211
+ //# sourceMappingURL=p-COiFNpXw.js.map
210
212
 
211
- //# sourceMappingURL=p-CQD0GsAo.js.map
213
+ //# sourceMappingURL=p-COiFNpXw.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-COiFNpXw.js","mappings":";;;;;;;;;;AAAA,MAAM,0BAA0B,GAAG,gyDAAgyD;;ACoBn0D,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,mBAAmB,CAAC,EAAE;AACzC,IAAA,QAAQ,EAAE;AACT,QAAA,OAAO,EAAE;AACR,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,IAAI;AACX,SAAA;AACD,QAAA,IAAI,EAAE;AACL,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,EAAE,EAAE,IAAI;AACR,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE;AACjB,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AACD,QAAA;AACC,YAAA,OAAO,EAAE,MAAM;AACf,YAAA,IAAI,EAAE,IAAI;AACV,YAAA,KAAK,EAAE,KAAK;AACZ,SAAA;AAED,QAAA;AACC,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,KAAK;AACZ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ACnB,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAC1E,QAAA,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC;AACxE,QAAA,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,0BAA0B,CAAC;AAC1E,QAAA,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC;QAExE,MAAM,MAAM,GAAG,aAAa,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM;QACnE,MAAM,KAAK,GAAG,YAAY,GAAG,CAAM,CAAA,MAAA,EAAA,EAAA,IAAI,EAAC,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK;QAE/D,MAAM,yBAAyB,GAC9B,YAAY;AACZ,aAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;QAExE,OAAO;YACN,aAAa;YACb,YAAY;YACZ,aAAa;YACb,YAAY;YACZ,MAAM;YACN,KAAK;YACL,yBAAyB;SACzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/molecules/field/container/field-container.component.css?tag=p-field-container&encapsulation=shadow","src/components/molecules/field/container/field-container.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport {\n\tcn,\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../../utils';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst loader = cva(['rounded-lg w-full'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tread: null,\n\t\t\twrite: null,\n\t\t},\n\t\tsize: {\n\t\t\tbase: null,\n\t\t\tsm: null,\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-5',\n\t\t},\n\t\t{\n\t\t\tvariant: 'read',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-4',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'base',\n\t\t\tclass: 'h-8',\n\t\t},\n\t\t{\n\t\t\tvariant: 'write',\n\t\t\tsize: 'sm',\n\t\t\tclass: 'h-6',\n\t\t},\n\t],\n});\n\nexport type templateFunc = () => string;\n\n@Component({\n\ttag: 'p-field-container',\n\tstyleUrl: 'field-container.component.css',\n\tshadow: true,\n})\nexport class FieldContainer {\n\tprivate _defaultOptionalTemplate: templateFunc = () =>\n\t\tformatTranslation(this._locales.optional);\n\t/**\n\t * The id for the label\n\t */\n\t@Prop() id: string;\n\n\t/**\n\t * Align content to the start or end\n\t */\n\t@Prop() align: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field container is in loading state\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The size of the loader\n\t */\n\t@Prop() loadingSize: 'base' | 'sm' = 'base';\n\n\t/**\n\t * The variant of the field container\n\t */\n\t@Prop() variant: 'read' | 'write';\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * Wether to show optional when not required\n\t */\n\t@Prop({ reflect: true }) showOptional: boolean = true;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc = this._defaultOptionalTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@Event() focus: EventEmitter<void>;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t} = this._getSlotInfo();\n\n\t\tlet contentSlot = (\n\t\t\t<slot\n\t\t\t\tslot='trigger'\n\t\t\t\tname='content'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tcontentSlot = (\n\t\t\t\t<p-loader\n\t\t\t\t\tvariant='ghost'\n\t\t\t\t\tclass={loader({ variant: this.variant, size: this.loadingSize })}\n\t\t\t\t\tslot='trigger'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\treturn (\n\t\t\t<label\n\t\t\t\thtmlFor={this.id}\n\t\t\t\tclass={cn('flex w-inherit flex-col gap-1', {\n\t\t\t\t\t'cursor-auto': this.variant === 'read',\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tclass={cn('flex items-end justify-between gap-1 empty:hidden', {\n\t\t\t\t\t\t'flex-row-reverse': this.align === 'end',\n\t\t\t\t\t})}\n\t\t\t\t>\n\t\t\t\t\t{!!label?.length && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass='text-xs font-medium text-storm-300'\n\t\t\t\t\t\t\tonClick={() => this.focus.emit()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{((!asBoolean(this.required) && asBoolean(this.showOptional)) ||\n\t\t\t\t\t\thelper ||\n\t\t\t\t\t\thasHeaderSlot) && (\n\t\t\t\t\t\t<div class='flex items-center gap-1'>\n\t\t\t\t\t\t\t{!asBoolean(this.required) &&\n\t\t\t\t\t\t\t\tasBoolean(this.showOptional) &&\n\t\t\t\t\t\t\t\tthis.variant === 'write' && (\n\t\t\t\t\t\t\t\t\t<span class='text-xs font-medium text-storm-200'>\n\t\t\t\t\t\t\t\t\t\t{this.optionalTemplate()}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t\t\t<Fragment>\n\t\t\t\t\t\t\t\t\t{hasHeaderSlot && <slot name='header' />}\n\t\t\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\t\t\tclass={`flex ${hasHeaderSlot ? 'ml-2' : ''}`}\n\t\t\t\t\t\t\t\t\t\t\tplacement='top-end'\n\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t</Fragment>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass={cn({\n\t\t\t\t\t\t'w-full': this.variant === 'write' || this.loading,\n\t\t\t\t\t\t'ml-auto': this.align === 'end',\n\t\t\t\t\t\t'font-normal': this.variant === 'read',\n\t\t\t\t\t})}\n\t\t\t\t\tvariant='error'\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip, false)\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t\tplacement={this.errorPlacement}\n\t\t\t\t>\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{contentSlot}\n\t\t\t\t</p-tooltip>\n\t\t\t</label>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst helper = hasHelperSlot ? <slot name='helper' /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name='label' /> : this.label;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\thasErrorSlot ||\n\t\t\t(this.error && typeof this.error === 'string' && this.error !== 'true');\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n}\n"],"version":3}
@@ -4,14 +4,14 @@ import { f as formatTranslation, g as getLocaleComponentStrings } from './p-DiJj
4
4
  import { d as defineCustomElement$b } from './p-DVuwVg4C.js';
5
5
  import { d as defineCustomElement$a } from './p-Bj4zaP4W.js';
6
6
  import { d as defineCustomElement$9 } from './p-DeobaUTR.js';
7
- import { d as defineCustomElement$8 } from './p-CAuilYKO.js';
8
- import { d as defineCustomElement$7 } from './p-CQD0GsAo.js';
9
- import { d as defineCustomElement$6 } from './p-BiWMxBAJ.js';
7
+ import { d as defineCustomElement$8 } from './p-bYh-7-zt.js';
8
+ import { d as defineCustomElement$7 } from './p-COiFNpXw.js';
9
+ import { d as defineCustomElement$6 } from './p-DX-f-ELg.js';
10
10
  import { d as defineCustomElement$5 } from './p-4sqhIpUp.js';
11
11
  import { d as defineCustomElement$4 } from './p-CEFg09mj.js';
12
12
  import { d as defineCustomElement$3 } from './p-u7w6ZHr0.js';
13
13
  import { d as defineCustomElement$2 } from './p-CkEQyy75.js';
14
- import { d as defineCustomElement$1 } from './p-B9bfyk_o.js';
14
+ import { d as defineCustomElement$1 } from './p-BAmR4b2S.js';
15
15
 
16
16
  var cjs = {};
17
17
 
@@ -9718,6 +9718,6 @@ function defineCustomElement() {
9718
9718
  defineCustomElement();
9719
9719
 
9720
9720
  export { TableHeader as T, defineCustomElement as d };
9721
- //# sourceMappingURL=p-wIVv4FEB.js.map
9721
+ //# sourceMappingURL=p-DQA2IPFN.js.map
9722
9722
 
9723
- //# sourceMappingURL=p-wIVv4FEB.js.map
9723
+ //# sourceMappingURL=p-DQA2IPFN.js.map