@rotki/ui-library 3.0.0-beta.4 → 3.0.0-beta.5

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RuiDataTableAppendRow.js","names":["_sfc_main"],"sources":["../../../../src/components/tables/data-table/RuiDataTableAppendRow.vue"],"sourcesContent":["<script lang=\"ts\" setup generic=\"T extends object\">\nimport { useDataTableStyling } from '@/components/tables/data-table/context';\n\ndefineProps<{\n row: T;\n index: number;\n}>();\n\ndefineSlots<{\n 'row-append': (props: { row: T; index: number }) => any;\n}>();\n\nconst { classes, colspan, isMobile } = useDataTableStyling();\n\n/**\n * Caps the content to the table's visible width, less the cell's 16px sides, and pins it to the left\n * edge while the table scrolls sideways, as the expanded panel does: a note under a wide row stays in\n * view instead of spanning the whole scroll width. Where the table resets `--rui-table-viewport`, on\n * mobile, the calc is invalid and the width stays auto.\n */\nconst contentStyle = { width: 'calc(var(--rui-table-viewport) - 2rem)' };\n</script>\n\n<template>\n <!-- the cell drops the row height floor and the top padding: it reads as the end of the row above -->\n <tr data-id=\"row-append\">\n <td\n :colspan=\"colspan\"\n class=\"pt-0 pb-2 h-auto whitespace-normal\"\n :class=\"classes.td\"\n >\n <div\n :class=\"{ 'sticky left-4': !isMobile }\"\n :style=\"contentStyle\"\n data-id=\"row-append-content\"\n >\n <slot\n name=\"row-append\"\n :row=\"row\"\n :index=\"index\"\n />\n </div>\n </td>\n </tr>\n</template>\n"],"mappings":""}
1
+ {"version":3,"file":"RuiDataTableAppendRow.js","names":["_sfc_main"],"sources":["../../../../src/components/tables/data-table/RuiDataTableAppendRow.vue"],"sourcesContent":["<script lang=\"ts\" setup generic=\"T extends object\">\nimport { useDataTableStyling } from '@/components/tables/data-table/context';\n\ndefineProps<{\n row: T;\n index: number;\n}>();\n\ndefineSlots<{\n 'row-append': (props: { row: T; index: number }) => any;\n}>();\n\nconst { classes, colspan } = useDataTableStyling();\n</script>\n\n<template>\n <!--\n The cell drops the row height floor and the top padding: it reads as the end of the row above.\n Its content scrolls sideways with the row, unlike the expanded panel, which stays in view: a\n follow-up is part of the row, so its text keeps its place under the row's columns.\n -->\n <tr data-id=\"row-append\">\n <td\n :colspan=\"colspan\"\n class=\"pt-0 pb-2 h-auto whitespace-normal\"\n :class=\"classes.td\"\n >\n <div data-id=\"row-append-content\">\n <slot\n name=\"row-append\"\n :row=\"row\"\n :index=\"index\"\n />\n </div>\n </td>\n </tr>\n</template>\n"],"mappings":""}
@@ -3,6 +3,7 @@ import { createElementBlock, createElementVNode, defineComponent, normalizeClass
3
3
  //#region src/components/tables/data-table/RuiDataTableAppendRow.vue?vue&type=script&setup=true&lang.ts
4
4
  var _hoisted_1 = { "data-id": "row-append" };
5
5
  var _hoisted_2 = ["colspan"];
6
+ var _hoisted_3 = { "data-id": "row-append-content" };
6
7
  var RuiDataTableAppendRow_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
7
8
  __name: "RuiDataTableAppendRow",
8
9
  props: {
@@ -10,26 +11,15 @@ var RuiDataTableAppendRow_vue_vue_type_script_setup_true_lang_default = /*@__PUR
10
11
  index: {}
11
12
  },
12
13
  setup(__props) {
13
- const { classes, colspan, isMobile } = useDataTableStyling();
14
- /**
15
- * Caps the content to the table's visible width, less the cell's 16px sides, and pins it to the left
16
- * edge while the table scrolls sideways, as the expanded panel does: a note under a wide row stays in
17
- * view instead of spanning the whole scroll width. Where the table resets `--rui-table-viewport`, on
18
- * mobile, the calc is invalid and the width stays auto.
19
- */
20
- const contentStyle = { width: "calc(var(--rui-table-viewport) - 2rem)" };
14
+ const { classes, colspan } = useDataTableStyling();
21
15
  return (_ctx, _cache) => {
22
16
  return openBlock(), createElementBlock("tr", _hoisted_1, [createElementVNode("td", {
23
17
  colspan: unref(colspan),
24
18
  class: normalizeClass(["pt-0 pb-2 h-auto whitespace-normal", unref(classes).td])
25
- }, [createElementVNode("div", {
26
- class: normalizeClass({ "sticky left-4": !unref(isMobile) }),
27
- style: contentStyle,
28
- "data-id": "row-append-content"
29
- }, [renderSlot(_ctx.$slots, "row-append", {
19
+ }, [createElementVNode("div", _hoisted_3, [renderSlot(_ctx.$slots, "row-append", {
30
20
  row: __props.row,
31
21
  index: __props.index
32
- })], 2)], 10, _hoisted_2)]);
22
+ })])], 10, _hoisted_2)]);
33
23
  };
34
24
  }
35
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"RuiDataTableAppendRow.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_unref","_normalizeClass","_renderSlot"],"sources":["../../../../src/components/tables/data-table/RuiDataTableAppendRow.vue"],"sourcesContent":["<script lang=\"ts\" setup generic=\"T extends object\">\nimport { useDataTableStyling } from '@/components/tables/data-table/context';\n\ndefineProps<{\n row: T;\n index: number;\n}>();\n\ndefineSlots<{\n 'row-append': (props: { row: T; index: number }) => any;\n}>();\n\nconst { classes, colspan, isMobile } = useDataTableStyling();\n\n/**\n * Caps the content to the table's visible width, less the cell's 16px sides, and pins it to the left\n * edge while the table scrolls sideways, as the expanded panel does: a note under a wide row stays in\n * view instead of spanning the whole scroll width. Where the table resets `--rui-table-viewport`, on\n * mobile, the calc is invalid and the width stays auto.\n */\nconst contentStyle = { width: 'calc(var(--rui-table-viewport) - 2rem)' };\n</script>\n\n<template>\n <!-- the cell drops the row height floor and the top padding: it reads as the end of the row above -->\n <tr data-id=\"row-append\">\n <td\n :colspan=\"colspan\"\n class=\"pt-0 pb-2 h-auto whitespace-normal\"\n :class=\"classes.td\"\n >\n <div\n :class=\"{ 'sticky left-4': !isMobile }\"\n :style=\"contentStyle\"\n data-id=\"row-append-content\"\n >\n <slot\n name=\"row-append\"\n :row=\"row\"\n :index=\"index\"\n />\n </div>\n </td>\n </tr>\n</template>\n"],"mappings":";;;;;;;;;;;;EAYA,MAAM,EAAE,SAAS,SAAS,aAAa,oBAAoB;;;;;;;EAQ3D,MAAM,eAAe,EAAE,OAAO,yCAAyC;;GAKrE,OAAAA,UAAA,GAAAC,mBAkBK,MAlBL,YAkBK,CAjBHC,mBAgBK,MAAA;IAfF,SAASC,MAAA,OAAA;IACV,OAAKC,eAAA,CAAC,sCACED,MAAA,OAAA,CAAO,CAAC,EAAE,CAAA;GAElBD,GAAAA,CAAAA,mBAUM,OAAA;IATH,OAAKE,eAAA,EAAA,iBAAA,CAAsBD,MAAA,QAAA,EAAQ,CAAA;IACnC,OAAO;IACR,WAAQ;GAERE,GAAAA,CAAAA,WAIE,KAAA,QAAA,cAAA;IAFC,KAAK,QAAA;IACL,OAAO,QAAA"}
1
+ {"version":3,"file":"RuiDataTableAppendRow.vue_vue_type_script_setup_true_lang.js","names":["_openBlock","_createElementBlock","_createElementVNode","_unref","_normalizeClass","_renderSlot"],"sources":["../../../../src/components/tables/data-table/RuiDataTableAppendRow.vue"],"sourcesContent":["<script lang=\"ts\" setup generic=\"T extends object\">\nimport { useDataTableStyling } from '@/components/tables/data-table/context';\n\ndefineProps<{\n row: T;\n index: number;\n}>();\n\ndefineSlots<{\n 'row-append': (props: { row: T; index: number }) => any;\n}>();\n\nconst { classes, colspan } = useDataTableStyling();\n</script>\n\n<template>\n <!--\n The cell drops the row height floor and the top padding: it reads as the end of the row above.\n Its content scrolls sideways with the row, unlike the expanded panel, which stays in view: a\n follow-up is part of the row, so its text keeps its place under the row's columns.\n -->\n <tr data-id=\"row-append\">\n <td\n :colspan=\"colspan\"\n class=\"pt-0 pb-2 h-auto whitespace-normal\"\n :class=\"classes.td\"\n >\n <div data-id=\"row-append-content\">\n <slot\n name=\"row-append\"\n :row=\"row\"\n :index=\"index\"\n />\n </div>\n </td>\n </tr>\n</template>\n"],"mappings":";;;;;;;;;;;;;EAYA,MAAM,EAAE,SAAS,YAAY,oBAAoB;;GAS/C,OAAAA,UAAA,GAAAC,mBAcK,MAdL,YAcK,CAbHC,mBAYK,MAAA;IAXF,SAASC,MAAA,OAAA;IACV,OAAKC,eAAA,CAAC,sCACED,MAAA,OAAA,CAAO,CAAC,EAAE,CAAA;GAElBD,GAAAA,CAAAA,mBAMM,OANN,YAMM,CALJG,WAIE,KAAA,QAAA,cAAA;IAFC,KAAK,QAAA;IACL,OAAO,QAAA"}
@@ -4864,7 +4864,7 @@ var LuCurlyBraces = {
4864
4864
  components: [["path", { "d": "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }], ["path", { "d": "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" }]]
4865
4865
  };
4866
4866
  var LuBuilding2 = {
4867
- name: "lu-building2",
4867
+ name: "lu-building-2",
4868
4868
  components: [
4869
4869
  ["path", { "d": "M10 12h4" }],
4870
4870
  ["path", { "d": "M10 8h4" }],