@lmvz-ds/components 0.15.2 → 0.17.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 (142) hide show
  1. package/dist/cjs/{Effect-CpZhfb0D.js → Effect-DdYOHaR4.js} +121 -83
  2. package/dist/cjs/{aria-loader-B7b45RMv.js → aria-loader-BRxRUIyi.js} +45 -10
  3. package/dist/cjs/{assets-BnJmIx_h.js → assets-OvQ-WUwR.js} +2 -2
  4. package/dist/cjs/{component-CRc6eHcV.js → component-Csg9MtNK.js} +4 -2
  5. package/dist/cjs/{icons-Brr4vqiE.js → icons-EHBLbidD.js} +2 -2
  6. package/dist/cjs/{index-QRnWYctw.js → index-BBqtydE-.js} +1 -1
  7. package/dist/cjs/index-Bp6Dd2i1.js +94 -0
  8. package/dist/cjs/{index-9ZJx0550.js → index-CH-YLRgg.js} +1 -1
  9. package/dist/cjs/index.cjs.js +5 -5
  10. package/dist/cjs/lmvz-action.cjs.entry.js +2 -2
  11. package/dist/cjs/lmvz-button.cjs.entry.js +73 -0
  12. package/dist/cjs/lmvz-card.cjs.entry.js +3 -3
  13. package/dist/cjs/lmvz-chip.cjs.entry.js +2 -2
  14. package/dist/cjs/lmvz-components.cjs.js +3 -3
  15. package/dist/cjs/{lmvz-header.cjs.entry.js → lmvz-header_2.cjs.entry.js} +24 -15
  16. package/dist/cjs/lmvz-icon.cjs.entry.js +10 -10
  17. package/dist/cjs/lmvz-input.cjs.entry.js +183 -0
  18. package/dist/cjs/lmvz-menuitem.cjs.entry.js +7 -5
  19. package/dist/cjs/lmvz-select.cjs.entry.js +71 -0
  20. package/dist/cjs/loader.cjs.js +2 -2
  21. package/dist/cjs/{reactive-controller-host-Ai9l4S9S.js → reactive-controller-host-vy1TIIXv.js} +2 -2
  22. package/dist/collection/collection-manifest.json +14 -2
  23. package/dist/collection/components/lmvz-action/lmvz-action.js +1 -1
  24. package/dist/collection/components/lmvz-button/lmvz-button.css +2 -24
  25. package/dist/collection/components/lmvz-button/lmvz-button.js +2 -2
  26. package/dist/collection/components/lmvz-card/lmvz-card.css +2 -24
  27. package/dist/collection/components/lmvz-card/lmvz-card.js +3 -3
  28. package/dist/collection/components/lmvz-chip/lmvz-chip.js +2 -2
  29. package/dist/collection/components/lmvz-header/lmvz-header.js +12 -8
  30. package/dist/collection/components/lmvz-icon/lmvz-icon.js +7 -7
  31. package/dist/collection/components/lmvz-input/lmvz-input.css +2 -24
  32. package/dist/collection/components/lmvz-input/lmvz-input.js +31 -27
  33. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.css +2 -24
  34. package/dist/collection/components/lmvz-menuitem/lmvz-menuitem.js +4 -2
  35. package/dist/collection/components/lmvz-select/lmvz-select.css +3 -25
  36. package/dist/collection/components/lmvz-select/lmvz-select.js +4 -4
  37. package/dist/collection/integration/header-integration.js +3 -3
  38. package/dist/collection/utils/aria/list-keyboard-controller.js +6 -4
  39. package/dist/collection/utils/component.js +6 -4
  40. package/dist/components/index.js +1 -1
  41. package/dist/components/lmvz-action.js +1 -1
  42. package/dist/components/lmvz-button.js +1 -1
  43. package/dist/components/lmvz-card.js +1 -1
  44. package/dist/components/lmvz-chip.js +1 -1
  45. package/dist/components/lmvz-header.js +1 -1
  46. package/dist/components/lmvz-icon.js +1 -1
  47. package/dist/components/lmvz-input.js +1 -1
  48. package/dist/components/lmvz-menuitem.js +1 -1
  49. package/dist/components/lmvz-select.js +1 -1
  50. package/dist/components/p-BsHYIl56.js +1 -0
  51. package/dist/components/{p-DcMNH3fv.js → p-CKtksB0G.js} +1 -1
  52. package/dist/components/{p-B3JVFwO1.js → p-DQEkWkMh.js} +1 -1
  53. package/dist/components/p-GKEnURpp.js +1 -0
  54. package/dist/components/{p-DK2hpvEW.js → p-vIq2biqy.js} +1 -1
  55. package/dist/esm/{Effect-DyamyJqO.js → Effect-9SROYpxM.js} +121 -83
  56. package/dist/esm/{aria-loader-Ddn7Qz_6.js → aria-loader-JxXwTAe5.js} +45 -10
  57. package/dist/esm/{assets-CvV1KMMV.js → assets-CNHv_WMG.js} +1 -1
  58. package/dist/esm/{component-DpoTUPzl.js → component-DIrAQ4IB.js} +4 -2
  59. package/dist/esm/{icons-C69Um2xB.js → icons-B255FOe4.js} +2 -2
  60. package/dist/esm/{index-CekEw3_K.js → index-BW1YMEA3.js} +1 -1
  61. package/dist/esm/index-BfTCfPZ1.js +92 -0
  62. package/dist/esm/{index-smGPjoDX.js → index-CQb-mBBB.js} +1 -1
  63. package/dist/esm/index.js +5 -5
  64. package/dist/esm/lmvz-action.entry.js +2 -2
  65. package/dist/esm/lmvz-button.entry.js +71 -0
  66. package/dist/esm/lmvz-card.entry.js +3 -3
  67. package/dist/esm/lmvz-chip.entry.js +2 -2
  68. package/dist/esm/lmvz-components.js +4 -4
  69. package/dist/esm/{lmvz-header.entry.js → lmvz-header_2.entry.js} +23 -15
  70. package/dist/esm/lmvz-icon.entry.js +10 -10
  71. package/dist/esm/lmvz-input.entry.js +181 -0
  72. package/dist/esm/lmvz-menuitem.entry.js +7 -5
  73. package/dist/esm/lmvz-select.entry.js +69 -0
  74. package/dist/esm/loader.js +3 -3
  75. package/dist/esm/{reactive-controller-host-CdAJ3t-B.js → reactive-controller-host-OhKYwMvP.js} +2 -2
  76. package/dist/ext-libs.d.ts +1 -0
  77. package/dist/lmvz-components/index.esm.js +1 -1
  78. package/dist/lmvz-components/lmvz-components.esm.js +1 -1
  79. package/dist/lmvz-components/p-150ecfb6.entry.js +1 -0
  80. package/dist/lmvz-components/p-22f67eff.entry.js +1 -0
  81. package/dist/lmvz-components/p-4530f088.entry.js +1 -0
  82. package/dist/lmvz-components/p-47d7ed0e.entry.js +1 -0
  83. package/dist/lmvz-components/p-5c3f1404.entry.js +1 -0
  84. package/dist/lmvz-components/p-8d51e396.entry.js +1 -0
  85. package/dist/lmvz-components/p-9SROYpxM.js +1 -0
  86. package/dist/lmvz-components/p-BfTCfPZ1.js +6 -0
  87. package/dist/lmvz-components/p-Bx29-tJt.js +1 -0
  88. package/dist/lmvz-components/{p-B7KSylv_.js → p-Cp76bcGb.js} +1 -1
  89. package/dist/lmvz-components/{p-cM67HC0Z.js → p-Cp7cp10e.js} +1 -1
  90. package/dist/lmvz-components/{p-DpoTUPzl.js → p-DIrAQ4IB.js} +1 -1
  91. package/dist/lmvz-components/{p-D7GrtdQF.js → p-DyO6wO4l.js} +1 -1
  92. package/dist/lmvz-components/p-b8926640.entry.js +1 -0
  93. package/dist/lmvz-components/p-b9d1953f.entry.js +1 -0
  94. package/dist/lmvz-components/p-d9c3f542.entry.js +1 -0
  95. package/dist/lmvz-components/{p-BEoSvNlI.js → p-i2508Ct1.js} +1 -1
  96. package/dist/manifest.json +150 -66
  97. package/dist/stencil.config.base.js +44 -0
  98. package/dist/stencil.config.dev.js +21 -0
  99. package/dist/stencil.config.integration.js +26 -0
  100. package/dist/stencil.config.js +15 -0
  101. package/dist/stencil.config.prod.js +29 -0
  102. package/dist/types/components/lmvz-action/lmvz-action.d.ts +1 -1
  103. package/dist/types/components/lmvz-button/lmvz-button.d.ts +2 -2
  104. package/dist/types/components/lmvz-card/lmvz-card.d.ts +1 -1
  105. package/dist/types/components/lmvz-header/lmvz-header.d.ts +3 -3
  106. package/dist/types/components/lmvz-icon/lmvz-icon.d.ts +4 -4
  107. package/dist/types/components/lmvz-input/lmvz-input.d.ts +3 -3
  108. package/dist/types/components/lmvz-menuitem/lmvz-menuitem.d.ts +3 -3
  109. package/dist/types/components/lmvz-select/lmvz-select.d.ts +1 -1
  110. package/dist/types/components.d.ts +3 -3
  111. package/dist/types/index.d.ts +1 -1
  112. package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.base.d.ts +2 -0
  113. package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.d.ts +2 -0
  114. package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.dev.d.ts +2 -0
  115. package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.integration.d.ts +2 -0
  116. package/dist/types/opt/atlassian/pipelines/agent/build/packages/components/.stencil/stencil.config.prod.d.ts +2 -0
  117. package/dist/types/utils/aria/aria-validation-controller.d.ts +1 -1
  118. package/dist/types/utils/aria/element-activation-controller.d.ts +1 -1
  119. package/dist/types/utils/component.d.ts +2 -2
  120. package/dist/types/utils/http.d.ts +3 -3
  121. package/dist/types/utils/validation/svg.d.ts +1 -1
  122. package/hydrate/index.js +908 -441
  123. package/hydrate/index.mjs +908 -441
  124. package/package.json +33 -73
  125. package/readme.md +3 -3
  126. package/dist/cjs/lmvz-button_3.cjs.entry.js +0 -399
  127. package/dist/collection/utils/typing.js +0 -1
  128. package/dist/components/p-CSRpdnrt.js +0 -1
  129. package/dist/components/p-DR19QMDG.js +0 -1
  130. package/dist/esm/lmvz-button_3.entry.js +0 -395
  131. package/dist/lmvz-components/p-70ca3319.entry.js +0 -1
  132. package/dist/lmvz-components/p-73648317.entry.js +0 -1
  133. package/dist/lmvz-components/p-8ed959da.entry.js +0 -1
  134. package/dist/lmvz-components/p-9526c364.entry.js +0 -1
  135. package/dist/lmvz-components/p-9faac8f3.entry.js +0 -1
  136. package/dist/lmvz-components/p-D7RHrBYK.js +0 -1
  137. package/dist/lmvz-components/p-DyamyJqO.js +0 -1
  138. package/dist/lmvz-components/p-d4b68381.entry.js +0 -1
  139. package/dist/lmvz-components/p-ea1a9d4a.entry.js +0 -6
  140. package/dist/types/utils/typing.d.ts +0 -3
  141. /package/dist/components/{p-BaPwpeMs.js → p-CahBdGGN.js} +0 -0
  142. /package/dist/lmvz-components/{p-smGPjoDX.js → p-CQb-mBBB.js} +0 -0
@@ -1032,10 +1032,13 @@ function compareBoth(self, that) {
1032
1032
  }
1033
1033
  }
1034
1034
  if (structuralRegionState.enabled) {
1035
+ if (self === null || that === null) {
1036
+ return false;
1037
+ }
1035
1038
  if (Array.isArray(self) && Array.isArray(that)) {
1036
1039
  return self.length === that.length && self.every((v, i) => compareBoth(v, that[i]));
1037
1040
  }
1038
- if (Object.getPrototypeOf(self) === Object.prototype && Object.getPrototypeOf(self) === Object.prototype) {
1041
+ if (Object.getPrototypeOf(self) === Object.prototype && Object.getPrototypeOf(that) === Object.prototype) {
1039
1042
  const keysSelf = Object.keys(self);
1040
1043
  const keysThat = Object.keys(that);
1041
1044
  if (keysSelf.length === keysThat.length) {
@@ -1218,7 +1221,7 @@ const OP_YIELD = "Yield";
1218
1221
  /** @internal */
1219
1222
  const OP_REVERT_FLAGS = "RevertFlags";
1220
1223
 
1221
- let moduleVersion = "3.19.14";
1224
+ let moduleVersion = "3.21.0";
1222
1225
  const getCurrentVersion = () => moduleVersion;
1223
1226
 
1224
1227
  /** @internal */
@@ -7655,34 +7658,33 @@ const renderErrorCause = (cause, prefix) => {
7655
7658
  return stack;
7656
7659
  };
7657
7660
  /** @internal */
7658
- class PrettyError extends globalThis.Error {
7659
- span = undefined;
7660
- constructor(originalError) {
7661
- const originalErrorIsObject = typeof originalError === "object" && originalError !== null;
7662
- const prevLimit = Error.stackTraceLimit;
7663
- Error.stackTraceLimit = 1;
7664
- super(prettyErrorMessage(originalError), originalErrorIsObject && "cause" in originalError && typeof originalError.cause !== "undefined" ? {
7665
- cause: new PrettyError(originalError.cause)
7666
- } : undefined);
7667
- if (this.message === "") {
7668
- this.message = "An error has occurred";
7661
+ const makePrettyError = originalError => {
7662
+ const originalErrorIsObject = typeof originalError === "object" && originalError !== null;
7663
+ const prevLimit = Error.stackTraceLimit;
7664
+ Error.stackTraceLimit = 1;
7665
+ const error = new Error(prettyErrorMessage(originalError), originalErrorIsObject && "cause" in originalError && typeof originalError.cause !== "undefined" ? {
7666
+ cause: makePrettyError(originalError.cause)
7667
+ } : undefined);
7668
+ Error.stackTraceLimit = prevLimit;
7669
+ if (error.message === "") {
7670
+ error.message = "An error has occurred";
7671
+ }
7672
+ Error.stackTraceLimit = prevLimit;
7673
+ error.name = originalError instanceof Error ? originalError.name : "Error";
7674
+ if (originalErrorIsObject) {
7675
+ if (spanSymbol in originalError) {
7676
+ error.span = originalError[spanSymbol];
7669
7677
  }
7670
- Error.stackTraceLimit = prevLimit;
7671
- this.name = originalError instanceof Error ? originalError.name : "Error";
7672
- if (originalErrorIsObject) {
7673
- if (spanSymbol in originalError) {
7674
- this.span = originalError[spanSymbol];
7678
+ Object.keys(originalError).forEach(key => {
7679
+ if (!(key in error)) {
7680
+ // @ts-expect-error
7681
+ error[key] = originalError[key];
7675
7682
  }
7676
- Object.keys(originalError).forEach(key => {
7677
- if (!(key in this)) {
7678
- // @ts-expect-error
7679
- this[key] = originalError[key];
7680
- }
7681
- });
7682
- }
7683
- this.stack = prettyErrorStack(`${this.name}: ${this.message}`, originalError instanceof Error && originalError.stack ? originalError.stack : "", this.span);
7683
+ });
7684
7684
  }
7685
- }
7685
+ error.stack = prettyErrorStack(`${error.name}: ${error.message}`, originalError instanceof Error && originalError.stack ? originalError.stack : "", error.span);
7686
+ return error;
7687
+ };
7686
7688
  /**
7687
7689
  * A utility function for generating human-readable error messages from a generic error of type `unknown`.
7688
7690
  *
@@ -7770,10 +7772,10 @@ const spanSymbol = /*#__PURE__*/Symbol.for("effect/SpanAnnotation");
7770
7772
  const prettyErrors = cause => reduceWithContext(cause, void 0, {
7771
7773
  emptyCase: () => [],
7772
7774
  dieCase: (_, unknownError) => {
7773
- return [new PrettyError(unknownError)];
7775
+ return [makePrettyError(unknownError)];
7774
7776
  },
7775
7777
  failCase: (_, error) => {
7776
- return [new PrettyError(error)];
7778
+ return [makePrettyError(error)];
7777
7779
  },
7778
7780
  interruptCase: () => [],
7779
7781
  parallelCase: (_, l, r) => [...l, ...r],
@@ -10293,6 +10295,10 @@ const nativeTracer = /*#__PURE__*/make$b({
10293
10295
  span: (name, parent, context, links, startTime, kind) => new NativeSpan(name, parent, context, links, startTime, kind),
10294
10296
  context: f => f()
10295
10297
  });
10298
+ /** @internal */
10299
+ const DisablePropagation = /*#__PURE__*/Reference()("effect/Tracer/DisablePropagation", {
10300
+ defaultValue: constFalse
10301
+ });
10296
10302
 
10297
10303
  /** @internal */
10298
10304
  const liveServices = /*#__PURE__*/pipe(/*#__PURE__*/empty$k(), /*#__PURE__*/add$2(clockTag, /*#__PURE__*/make$e()), /*#__PURE__*/add$2(consoleTag, defaultConsole), /*#__PURE__*/add$2(randomTag, /*#__PURE__*/make$c(/*#__PURE__*/Math.random())), /*#__PURE__*/add$2(configProviderTag, /*#__PURE__*/fromEnv()), /*#__PURE__*/add$2(tracerTag, nativeTracer));
@@ -10930,6 +10936,7 @@ const updateFiberRefs = f => withFiberRuntime$1(state => {
10930
10936
  });
10931
10937
  /* @internal */
10932
10938
  const when$1 = /*#__PURE__*/dual(2, (self, condition) => suspend$2(() => condition() ? map$3(self, some) : succeed$4(none$4())));
10939
+ const filterDisablePropagation = /*#__PURE__*/flatMap$5(span => get$7(span.context, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(span.parent) : none$4() : some(span));
10933
10940
 
10934
10941
  /** @internal */
10935
10942
  const OP_SEQUENTIAL = "Sequential";
@@ -11883,6 +11890,61 @@ const runFork$1 = (effect, options) => {
11883
11890
  /**
11884
11891
  * @since 2.0.0
11885
11892
  */
11893
+ /**
11894
+ * @since 3.20.0
11895
+ * @category models
11896
+ */
11897
+ class SchedulerRunner {
11898
+ scheduleDrain;
11899
+ running = false;
11900
+ tasks = /*#__PURE__*/new PriorityBuckets();
11901
+ constructor(scheduleDrain) {
11902
+ this.scheduleDrain = scheduleDrain;
11903
+ }
11904
+ starveInternal = depth => {
11905
+ const tasks = this.tasks.buckets;
11906
+ this.tasks.buckets = [];
11907
+ for (const [_, toRun] of tasks) {
11908
+ for (let i = 0; i < toRun.length; i++) {
11909
+ toRun[i]();
11910
+ }
11911
+ }
11912
+ if (this.tasks.buckets.length === 0) {
11913
+ this.running = false;
11914
+ } else {
11915
+ this.starve(depth);
11916
+ }
11917
+ };
11918
+ starve(depth = 0) {
11919
+ this.scheduleDrain(depth, this.starveInternal);
11920
+ }
11921
+ scheduleTask(task, priority) {
11922
+ this.tasks.scheduleTask(task, priority);
11923
+ if (!this.running) {
11924
+ this.running = true;
11925
+ this.starve();
11926
+ }
11927
+ }
11928
+ /**
11929
+ * @since 3.20.0
11930
+ * @category constructors
11931
+ */
11932
+ static cached(scheduleDrain) {
11933
+ const fallback = new SchedulerRunner(scheduleDrain);
11934
+ const runners = new WeakMap();
11935
+ return fiber => {
11936
+ if (fiber === undefined) {
11937
+ return fallback;
11938
+ }
11939
+ let runner = runners.get(fiber);
11940
+ if (runner === undefined) {
11941
+ runner = new SchedulerRunner(scheduleDrain);
11942
+ runners.set(fiber, runner);
11943
+ }
11944
+ return runner;
11945
+ };
11946
+ }
11947
+ }
11886
11948
  /**
11887
11949
  * @since 2.0.0
11888
11950
  * @category utils
@@ -11921,14 +11983,13 @@ class PriorityBuckets {
11921
11983
  */
11922
11984
  class MixedScheduler {
11923
11985
  maxNextTickBeforeTimer;
11924
- /**
11925
- * @since 2.0.0
11926
- */
11927
- running = false;
11928
- /**
11929
- * @since 2.0.0
11930
- */
11931
- tasks = /*#__PURE__*/new PriorityBuckets();
11986
+ getRunner = /*#__PURE__*/SchedulerRunner.cached((depth, drain) => {
11987
+ if (depth >= this.maxNextTickBeforeTimer) {
11988
+ setTimeout(() => drain(0), 0);
11989
+ } else {
11990
+ Promise.resolve(void 0).then(() => drain(depth + 1));
11991
+ }
11992
+ });
11932
11993
  constructor(
11933
11994
  /**
11934
11995
  * @since 2.0.0
@@ -11936,33 +11997,6 @@ class MixedScheduler {
11936
11997
  maxNextTickBeforeTimer) {
11937
11998
  this.maxNextTickBeforeTimer = maxNextTickBeforeTimer;
11938
11999
  }
11939
- /**
11940
- * @since 2.0.0
11941
- */
11942
- starveInternal(depth) {
11943
- const tasks = this.tasks.buckets;
11944
- this.tasks.buckets = [];
11945
- for (const [_, toRun] of tasks) {
11946
- for (let i = 0; i < toRun.length; i++) {
11947
- toRun[i]();
11948
- }
11949
- }
11950
- if (this.tasks.buckets.length === 0) {
11951
- this.running = false;
11952
- } else {
11953
- this.starve(depth);
11954
- }
11955
- }
11956
- /**
11957
- * @since 2.0.0
11958
- */
11959
- starve(depth = 0) {
11960
- if (depth >= this.maxNextTickBeforeTimer) {
11961
- setTimeout(() => this.starveInternal(0), 0);
11962
- } else {
11963
- Promise.resolve(void 0).then(() => this.starveInternal(depth + 1));
11964
- }
11965
- }
11966
12000
  /**
11967
12001
  * @since 2.0.0
11968
12002
  */
@@ -11972,12 +12006,8 @@ class MixedScheduler {
11972
12006
  /**
11973
12007
  * @since 2.0.0
11974
12008
  */
11975
- scheduleTask(task, priority) {
11976
- this.tasks.scheduleTask(task, priority);
11977
- if (!this.running) {
11978
- this.running = true;
11979
- this.starve();
11980
- }
12009
+ scheduleTask(task, priority, fiber) {
12010
+ this.getRunner(fiber).scheduleTask(task, priority);
11981
12011
  }
11982
12012
  }
11983
12013
  /**
@@ -13553,6 +13583,10 @@ class FiberRuntime extends Class {
13553
13583
  get await() {
13554
13584
  return async_(resume => {
13555
13585
  const cb = exit => resume(succeed$4(exit));
13586
+ if (this._exitValue !== null) {
13587
+ cb(this._exitValue);
13588
+ return;
13589
+ }
13556
13590
  this.tell(stateful((fiber, _) => {
13557
13591
  if (fiber._exitValue !== null) {
13558
13592
  cb(this._exitValue);
@@ -13772,7 +13806,7 @@ class FiberRuntime extends Class {
13772
13806
  * **NOTE**: This method must be invoked by the fiber itself.
13773
13807
  */
13774
13808
  drainQueueLaterOnExecutor() {
13775
- this.currentScheduler.scheduleTask(this.run, this.getFiberRef(currentSchedulingPriority));
13809
+ this.currentScheduler.scheduleTask(this.run, this.getFiberRef(currentSchedulingPriority), this);
13776
13810
  }
13777
13811
  /**
13778
13812
  * Drains the fiber's message queue while the fiber is actively running,
@@ -14436,7 +14470,7 @@ const tracerLogger = /*#__PURE__*/globalValue(/*#__PURE__*/Symbol.for("effect/Lo
14436
14470
  logLevel,
14437
14471
  message
14438
14472
  }) => {
14439
- const span = getOption(getOrDefault$1(context, currentContext), spanTag);
14473
+ const span = filterDisablePropagation(getOption(getOrDefault$1(context, currentContext), spanTag));
14440
14474
  if (span._tag === "None" || span.value._tag === "ExternalSpan") {
14441
14475
  return;
14442
14476
  }
@@ -14563,7 +14597,7 @@ const forEachConcurrentDiscard = (self, f, batching, processAll, n) => uninterru
14563
14597
  const interruptAll = () => fibers.forEach(fiber => {
14564
14598
  fiber.currentScheduler.scheduleTask(() => {
14565
14599
  fiber.unsafeInterruptAsFork(parent.id());
14566
- }, 0);
14600
+ }, 0, fiber);
14567
14601
  });
14568
14602
  const startOrder = new Array();
14569
14603
  const joinOrder = new Array();
@@ -14587,7 +14621,7 @@ const forEachConcurrentDiscard = (self, f, batching, processAll, n) => uninterru
14587
14621
  fiber.unsafeInterruptAsFork(parent.id());
14588
14622
  }
14589
14623
  fiber.resume(runnable);
14590
- }, 0);
14624
+ }, 0, fiber);
14591
14625
  return fiber;
14592
14626
  };
14593
14627
  const onInterruptSignal = () => {
@@ -14638,7 +14672,7 @@ const forEachConcurrentDiscard = (self, f, batching, processAll, n) => uninterru
14638
14672
  if (interrupted) {
14639
14673
  fiber.currentScheduler.scheduleTask(() => {
14640
14674
  fiber.unsafeInterruptAsFork(parent.id());
14641
- }, 0);
14675
+ }, 0, fiber);
14642
14676
  }
14643
14677
  fiber.addObserver(wrapped => {
14644
14678
  let exit;
@@ -15327,20 +15361,24 @@ class Semaphore {
15327
15361
  take = n => asyncInterrupt(resume => {
15328
15362
  if (this.free < n) {
15329
15363
  const observer = () => {
15330
- if (this.free < n) {
15331
- return;
15332
- }
15364
+ if (this.free < n) return;
15333
15365
  this.waiters.delete(observer);
15334
- this.taken += n;
15335
- resume(succeed$4(n));
15366
+ resume(suspend$2(() => {
15367
+ if (this.free < n) return this.take(n);
15368
+ this.taken += n;
15369
+ return succeed$4(n);
15370
+ }));
15336
15371
  };
15337
15372
  this.waiters.add(observer);
15338
15373
  return sync$1(() => {
15339
15374
  this.waiters.delete(observer);
15340
15375
  });
15341
15376
  }
15342
- this.taken += n;
15343
- return resume(succeed$4(n));
15377
+ resume(suspend$2(() => {
15378
+ if (this.free < n) return this.take(n);
15379
+ this.taken += n;
15380
+ return succeed$4(n);
15381
+ }));
15344
15382
  });
15345
15383
  updateTakenUnsafe(fiber, f) {
15346
15384
  this.taken = f(this.taken);
@@ -15352,7 +15390,7 @@ class Semaphore {
15352
15390
  item.value();
15353
15391
  item = iter.next();
15354
15392
  }
15355
- }, fiber.getFiberRef(currentSchedulingPriority));
15393
+ }, fiber.getFiberRef(currentSchedulingPriority), fiber);
15356
15394
  }
15357
15395
  return succeed$4(this.free);
15358
15396
  }
@@ -1,5 +1,25 @@
1
1
  'use strict';
2
2
 
3
+ /**
4
+ * Verify whether a value is a Promise by duck-testing for a 'then' function
5
+ */
6
+ function isPromise(value) {
7
+ if (!value)
8
+ return false;
9
+ return typeof value === 'object' && typeof value.then === 'function';
10
+ }
11
+
12
+ /**
13
+ * Resolve the result of a function that may be async or not, as a Promise.
14
+ */
15
+ function resolvePossiblyAsyncFunction(func, args = []) {
16
+ const res = func(...args);
17
+ if (isPromise(res)) {
18
+ return res;
19
+ }
20
+ return Promise.resolve(res);
21
+ }
22
+
3
23
  const GLOBAL_STATE_KEY = Symbol('__lmvzAriaValidationRuntimeState');
4
24
  const ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = 'lmvz:aria-validation-runtime-changed';
5
25
  function getRuntimeState() {
@@ -23,7 +43,7 @@ async function fetchRuntime() {
23
43
  if (state.runtime)
24
44
  return state.runtime;
25
45
  if (!state.loadPromise) {
26
- state.loadPromise = Promise.resolve().then(function () { return require('./index-QRnWYctw.js'); }).catch(() => null);
46
+ state.loadPromise = Promise.resolve().then(function () { return require('./index-BBqtydE-.js'); }).catch(() => null);
27
47
  }
28
48
  const runtime = await state.loadPromise;
29
49
  if (runtime) {
@@ -62,20 +82,35 @@ const disableAriaValidation = () => {
62
82
  notifyRuntimeChange();
63
83
  };
64
84
  function queueValidation(...args) {
65
- const { enabled, runtime, loadPromise } = getRuntimeState();
85
+ const { enabled, runtime, loadPromise, lazyCondition } = getRuntimeState();
66
86
  if (!enabled)
67
87
  return;
68
- if (!runtime) {
69
- if (loadPromise) {
70
- loadPromise.then((loadedRuntime) => {
71
- if (loadedRuntime) {
72
- loadedRuntime.enqueueValidation(...args);
73
- }
74
- });
88
+ if (!lazyCondition)
89
+ return q();
90
+ resolvePossiblyAsyncFunction(lazyCondition).then((shouldEnqueue) => {
91
+ if (!shouldEnqueue)
92
+ return;
93
+ q();
94
+ });
95
+ function q() {
96
+ if (runtime)
97
+ return runtime.enqueueValidation(...args);
98
+ if (!loadPromise) {
99
+ console.warn('neither runtime nor load promise found for aria validation. This should not happen, as enabling aria validation should have triggered the loading of the runtime.');
75
100
  return;
76
101
  }
102
+ loadPromise
103
+ .then((loadedRuntime) => {
104
+ if (!loadedRuntime?.enqueueValidation) {
105
+ console.error('Failed to load aria validation runtime');
106
+ return;
107
+ }
108
+ loadedRuntime.enqueueValidation(...args);
109
+ })
110
+ .catch(() => {
111
+ console.error('Failed to enqueue validation due to an error while loading the runtime');
112
+ });
77
113
  }
78
- runtime.enqueueValidation(...args);
79
114
  }
80
115
 
81
116
  exports.ARIA_VALIDATION_RUNTIME_CHANGED_EVENT = ARIA_VALIDATION_RUNTIME_CHANGED_EVENT;
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-9ZJx0550.js');
3
+ var index = require('./index-CH-YLRgg.js');
4
4
 
5
5
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
6
6
  function getLocationBase() {
7
- return (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('assets-BnJmIx_h.js', document.baseURI).href)) ?? window?.location?.origin ?? '';
7
+ return (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('assets-OvQ-WUwR.js', document.baseURI).href)) ?? window?.location?.origin ?? '';
8
8
  }
9
9
 
10
10
  const relativeAssetsPath = '../../assets';
@@ -10,7 +10,7 @@ const componentOnReady = (el, callback) => {
10
10
  };
11
11
  const inheritAttributes = (el, attributes = []) => {
12
12
  const attributeObject = {};
13
- attributes.forEach(attr => {
13
+ attributes.forEach((attr) => {
14
14
  if (el.hasAttribute(attr)) {
15
15
  const value = el.getAttribute(attr);
16
16
  if (value !== null) {
@@ -92,7 +92,7 @@ function getDeepActiveElement(root = document) {
92
92
  if (!activeElement) {
93
93
  return null;
94
94
  }
95
- while (activeElement && activeElement.shadowRoot) {
95
+ while (activeElement?.shadowRoot) {
96
96
  const next = activeElement.shadowRoot.activeElement;
97
97
  if (!next) {
98
98
  break;
@@ -102,6 +102,8 @@ function getDeepActiveElement(root = document) {
102
102
  return activeElement;
103
103
  }
104
104
  function canReceiveFocus(el) {
105
+ if (!el)
106
+ return false;
105
107
  return (el instanceof HTMLElement && el.tabIndex >= 0 && !el.hasAttribute('disabled') && el.getAttribute('aria-hidden') !== 'true' && el.checkVisibility() && el.offsetParent !== null);
106
108
  }
107
109
  function findFormByRef(form, el) {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var Effect = require('./Effect-CpZhfb0D.js');
4
- var assets = require('./assets-BnJmIx_h.js');
3
+ var Effect = require('./Effect-DdYOHaR4.js');
4
+ var assets = require('./assets-OvQ-WUwR.js');
5
5
 
6
6
  /**
7
7
  * This module provides types and utility functions to create and work with branded types,
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Effect = require('./Effect-CpZhfb0D.js');
3
+ var Effect = require('./Effect-DdYOHaR4.js');
4
4
 
5
5
  /**
6
6
  * @since 2.0.0
@@ -0,0 +1,94 @@
1
+ 'use strict';
2
+
3
+ function getDefaultExportFromCjs (x) {
4
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
+ }
6
+
7
+ var classnames = {exports: {}};
8
+
9
+ /*!
10
+ Copyright (c) 2018 Jed Watson.
11
+ Licensed under the MIT License (MIT), see
12
+ http://jedwatson.github.io/classnames
13
+ */
14
+
15
+ var hasRequiredClassnames;
16
+
17
+ function requireClassnames () {
18
+ if (hasRequiredClassnames) return classnames.exports;
19
+ hasRequiredClassnames = 1;
20
+ (function (module) {
21
+ /* global define */
22
+
23
+ (function () {
24
+
25
+ var hasOwn = {}.hasOwnProperty;
26
+
27
+ function classNames () {
28
+ var classes = '';
29
+
30
+ for (var i = 0; i < arguments.length; i++) {
31
+ var arg = arguments[i];
32
+ if (arg) {
33
+ classes = appendClass(classes, parseValue(arg));
34
+ }
35
+ }
36
+
37
+ return classes;
38
+ }
39
+
40
+ function parseValue (arg) {
41
+ if (typeof arg === 'string' || typeof arg === 'number') {
42
+ return arg;
43
+ }
44
+
45
+ if (typeof arg !== 'object') {
46
+ return '';
47
+ }
48
+
49
+ if (Array.isArray(arg)) {
50
+ return classNames.apply(null, arg);
51
+ }
52
+
53
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
54
+ return arg.toString();
55
+ }
56
+
57
+ var classes = '';
58
+
59
+ for (var key in arg) {
60
+ if (hasOwn.call(arg, key) && arg[key]) {
61
+ classes = appendClass(classes, key);
62
+ }
63
+ }
64
+
65
+ return classes;
66
+ }
67
+
68
+ function appendClass (value, newClass) {
69
+ if (!newClass) {
70
+ return value;
71
+ }
72
+
73
+ if (value) {
74
+ return value + ' ' + newClass;
75
+ }
76
+
77
+ return value + newClass;
78
+ }
79
+
80
+ if (module.exports) {
81
+ classNames.default = classNames;
82
+ module.exports = classNames;
83
+ } else {
84
+ window.classNames = classNames;
85
+ }
86
+ }());
87
+ } (classnames));
88
+ return classnames.exports;
89
+ }
90
+
91
+ var classnamesExports = requireClassnames();
92
+ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
93
+
94
+ exports.classNames = classNames;
@@ -4,7 +4,7 @@ const NAMESPACE = 'lmvz-components';
4
4
  const BUILD = /* lmvz-components */ { hotModuleReplacement: false, hydratedSelectorName: "hydrated", lazyLoad: true, propChangeCallback: true, slotRelocation: true, state: true, updatable: true};
5
5
 
6
6
  /*
7
- Stencil Client Platform v4.43.2 | MIT Licensed | https://stenciljs.com
7
+ Stencil Client Platform v4.43.3 | MIT Licensed | https://stenciljs.com
8
8
  */
9
9
 
10
10
  var Build = {
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var ariaLoader = require('./aria-loader-B7b45RMv.js');
4
- var icons = require('./icons-Brr4vqiE.js');
5
- var Effect = require('./Effect-CpZhfb0D.js');
6
- require('./assets-BnJmIx_h.js');
7
- require('./index-9ZJx0550.js');
3
+ var ariaLoader = require('./aria-loader-BRxRUIyi.js');
4
+ var icons = require('./icons-EHBLbidD.js');
5
+ var Effect = require('./Effect-DdYOHaR4.js');
6
+ require('./assets-OvQ-WUwR.js');
7
+ require('./index-CH-YLRgg.js');
8
8
 
9
9
  const variants = ['primary', 'secondary', 'tertiary'];
10
10
  const scaleValues = ['small', 'default', 'large'];
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-9ZJx0550.js');
3
+ var index = require('./index-CH-YLRgg.js');
4
4
 
5
5
  const lmvzActionCss = () => `:host{display:block}`;
6
6
 
@@ -14,7 +14,7 @@ const LmvzAction = class {
14
14
  this.actionClick.emit(event);
15
15
  }
16
16
  render() {
17
- return (index.h(index.Host, { key: '71303bfe6ac64a96edd21800ae5e8c43a3a38c23', onClick: this._onClick.bind(this) }, index.h("slot", { key: '94922fdfd355e7e4d1b78bedb80ae814c186b199' })));
17
+ return (index.h(index.Host, { key: '00da873d80f00dc57e5a0d60f2b58a6c505e41f1', onClick: this._onClick.bind(this) }, index.h("slot", { key: '7938b5e172ef2b027180aac801b0d9962cd68fa5' })));
18
18
  }
19
19
  };
20
20
  LmvzAction.style = lmvzActionCss();