poe-svelte-ui-lib 1.9.13 → 1.9.15

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.
@@ -450,7 +450,7 @@
450
450
  class="w-fit cursor-pointer text-left"
451
451
  onclick={(e) => {
452
452
  e.stopPropagation()
453
- showModal(data, text?.formatting)
453
+ showModal(data.replace(/<[^>]*>/g, ""), text?.formatting)
454
454
  }}
455
455
  >
456
456
  {@html data}
@@ -465,7 +465,7 @@
465
465
  class="mx-2 flex cursor-pointer border-none bg-transparent text-2xl"
466
466
  onclick={(e) => {
467
467
  e.preventDefault()
468
- navigator.clipboard.writeText(row[text?.key ?? ""])
468
+ navigator.clipboard.writeText(row[text?.key ?? ""].replace(/<[^>]*>/g, ""))
469
469
  copiedCell = { x: j, y: i }
470
470
  setTimeout(() => (copiedCell = null), 1000)
471
471
  }}
@@ -512,7 +512,7 @@
512
512
  transition:fly={{ y: 10, duration: 200 }}
513
513
  role="tooltip"
514
514
  >
515
- {@html tooltip.text}
515
+ {@html tooltip.text.replace(/<[^>]*>/g, "")}
516
516
  </div>
517
517
  {/if}
518
518
  <!-- Нижнее поле для сводной информации -->
@@ -534,6 +534,7 @@
534
534
  <Button
535
535
  content={{ name: $t("constructor.props.copy") }}
536
536
  wrapperClass="w-50"
537
+ componentClass="bg-blue"
537
538
  onClick={() => {
538
539
  navigator.clipboard.writeText(modalData.rawData ?? "")
539
540
  modalData.isOpen = false
package/dist/types.d.ts CHANGED
@@ -303,6 +303,7 @@ export interface ITableText<T extends object> {
303
303
  formatting?: (text: string) => string;
304
304
  copy?: boolean;
305
305
  modal?: boolean;
306
+ class?: string;
306
307
  }
307
308
  export interface ITableSelect<T extends object> {
308
309
  key: keyof T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "1.9.13",
3
+ "version": "1.9.15",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {