@itfin/components 1.3.100 → 1.4.1

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 (153) hide show
  1. package/package.json +1 -1
  2. package/src/components/button/Button.vue +4 -2
  3. package/src/components/card/BentoCard.vue +70 -19
  4. package/src/components/card/BentoGrid.vue +21 -8
  5. package/src/components/filter/FilterAmountRange.vue +50 -42
  6. package/src/components/filter/FilterBadge.vue +27 -22
  7. package/src/components/filter/FilterFacetsList.vue +21 -17
  8. package/src/components/filter/FilterPanel.vue +143 -45
  9. package/src/components/filter/index.stories.js +0 -2
  10. package/src/components/form/Label.vue +19 -2
  11. package/src/components/icon/Icon.vue +4 -2
  12. package/src/components/icon/components/fi_fingerprint.vue +4 -0
  13. package/src/components/icon/components/nomi-ai.vue +6 -0
  14. package/src/components/icon/components/nomi-arrow-down.vue +4 -0
  15. package/src/components/icon/components/nomi-arrow-right-top.vue +4 -0
  16. package/src/components/icon/components/nomi-arrow-up.vue +4 -0
  17. package/src/components/icon/components/nomi-arrow_down.vue +4 -0
  18. package/src/components/icon/components/nomi-arrow_up.vue +4 -0
  19. package/src/components/icon/components/nomi-arrows.vue +7 -0
  20. package/src/components/icon/components/nomi-calendar-alt.vue +4 -0
  21. package/src/components/icon/components/nomi-calendar-alt2.vue +4 -0
  22. package/src/components/icon/components/nomi-calendar.vue +11 -0
  23. package/src/components/icon/components/nomi-card.vue +4 -0
  24. package/src/components/icon/components/nomi-clear.vue +4 -0
  25. package/src/components/icon/components/nomi-close.vue +5 -0
  26. package/src/components/icon/components/nomi-counterparty.vue +4 -0
  27. package/src/components/icon/components/nomi-dashboard.vue +4 -0
  28. package/src/components/icon/components/nomi-expand.vue +7 -0
  29. package/src/components/icon/components/nomi-export.vue +4 -0
  30. package/src/components/icon/components/nomi-eye-close.vue +4 -0
  31. package/src/components/icon/components/nomi-eye-open.vue +4 -0
  32. package/src/components/icon/components/nomi-eye.vue +4 -0
  33. package/src/components/icon/components/nomi-filter.vue +4 -0
  34. package/src/components/icon/components/nomi-help.vue +5 -0
  35. package/src/components/icon/components/nomi-hide.vue +4 -0
  36. package/src/components/icon/components/nomi-lock.vue +4 -0
  37. package/src/components/icon/components/nomi-logout.vue +5 -0
  38. package/src/components/icon/components/nomi-money.vue +4 -0
  39. package/src/components/icon/components/nomi-move-left.vue +4 -0
  40. package/src/components/icon/components/nomi-move-right.vue +4 -0
  41. package/src/components/icon/components/nomi-pen.vue +5 -0
  42. package/src/components/icon/components/nomi-person.vue +5 -0
  43. package/src/components/icon/components/nomi-pin.vue +7 -0
  44. package/src/components/icon/components/nomi-project.vue +4 -0
  45. package/src/components/icon/components/nomi-recurrence.vue +2 -0
  46. package/src/components/icon/components/nomi-repeat.vue +7 -0
  47. package/src/components/icon/components/nomi-report.vue +4 -0
  48. package/src/components/icon/components/nomi-scissors.vue +4 -0
  49. package/src/components/icon/components/nomi-settings.vue +4 -0
  50. package/src/components/icon/components/nomi-sort-asc.vue +7 -0
  51. package/src/components/icon/components/nomi-sort-desc.vue +7 -0
  52. package/src/components/icon/components/nomi-table-view.vue +4 -0
  53. package/src/components/icon/components/nomi-tag.vue +4 -0
  54. package/src/components/icon/components/nomi-target.vue +4 -0
  55. package/src/components/icon/components/nomi-text.vue +6 -0
  56. package/src/components/icon/components/nomi-transactions.vue +8 -0
  57. package/src/components/icon/components/nomi-trash.vue +4 -0
  58. package/src/components/icon/components/nomi-unpin.vue +7 -0
  59. package/src/components/icon/components/nomi-user.vue +5 -0
  60. package/src/components/icon/convert-icons.js +11 -0
  61. package/src/components/icon/icons.js +332 -286
  62. package/src/components/icon/new-icons/ai.svg +5 -0
  63. package/src/components/icon/new-icons/arrow-down.svg +3 -0
  64. package/src/components/icon/new-icons/arrow-right-top.svg +3 -0
  65. package/src/components/icon/new-icons/arrow-up.svg +3 -0
  66. package/src/components/icon/new-icons/arrow_down.svg +3 -0
  67. package/src/components/icon/new-icons/arrow_up.svg +3 -0
  68. package/src/components/icon/new-icons/arrows.svg +6 -0
  69. package/src/components/icon/new-icons/calendar-alt.svg +3 -0
  70. package/src/components/icon/new-icons/calendar-alt2.svg +3 -0
  71. package/src/components/icon/new-icons/calendar.svg +10 -0
  72. package/src/components/icon/new-icons/card.svg +3 -0
  73. package/src/components/icon/new-icons/clear.svg +3 -0
  74. package/src/components/icon/new-icons/close.svg +4 -0
  75. package/src/components/icon/new-icons/counterparty.svg +3 -0
  76. package/src/components/icon/new-icons/dashboard.svg +3 -0
  77. package/src/components/icon/new-icons/expand.svg +6 -0
  78. package/src/components/icon/new-icons/eye-close.svg +3 -0
  79. package/src/components/icon/new-icons/eye-open.svg +3 -0
  80. package/src/components/icon/new-icons/eye.svg +3 -0
  81. package/src/components/icon/new-icons/filter.svg +3 -0
  82. package/src/components/icon/new-icons/help.svg +4 -0
  83. package/src/components/icon/new-icons/hide.svg +3 -0
  84. package/src/components/icon/new-icons/logout.svg +4 -0
  85. package/src/components/icon/new-icons/money.svg +3 -0
  86. package/src/components/icon/new-icons/move-left.svg +3 -0
  87. package/src/components/icon/new-icons/move-right.svg +3 -0
  88. package/src/components/icon/new-icons/pen.svg +4 -0
  89. package/src/components/icon/new-icons/person.svg +4 -0
  90. package/src/components/icon/new-icons/pin.svg +6 -0
  91. package/src/components/icon/new-icons/project.svg +3 -0
  92. package/src/components/icon/new-icons/recurrence.svg +1 -0
  93. package/src/components/icon/new-icons/repeat.svg +6 -0
  94. package/src/components/icon/new-icons/report.svg +3 -0
  95. package/src/components/icon/new-icons/scissors.svg +3 -0
  96. package/src/components/icon/new-icons/settings.svg +3 -0
  97. package/src/components/icon/new-icons/sort-asc.svg +6 -0
  98. package/src/components/icon/new-icons/sort-desc.svg +6 -0
  99. package/src/components/icon/new-icons/table-view.svg +3 -0
  100. package/src/components/icon/new-icons/tag.svg +3 -0
  101. package/src/components/icon/new-icons/target.svg +3 -0
  102. package/src/components/icon/new-icons/text.svg +5 -0
  103. package/src/components/icon/new-icons/transactions.svg +7 -0
  104. package/src/components/icon/new-icons/trash.svg +3 -0
  105. package/src/components/icon/new-icons/unpin.svg +6 -0
  106. package/src/components/icon/new-icons/user.svg +4 -0
  107. package/src/components/modal/DeleteConfirmModal.vue +0 -2
  108. package/src/components/modal/ItemEditor.vue +1 -5
  109. package/src/components/pagination/Pagination.vue +3 -2
  110. package/src/components/pagination/Pagination2.vue +179 -0
  111. package/src/components/panels/Panel.vue +23 -7
  112. package/src/components/panels/PanelItemEdit.vue +62 -0
  113. package/src/components/panels/PanelLink.vue +26 -6
  114. package/src/components/panels/PanelList.vue +27 -26
  115. package/src/components/panels/helpers.spec.ts +27 -0
  116. package/src/components/panels/helpers.ts +37 -0
  117. package/src/components/popover/NoticePopout.vue +1 -1
  118. package/src/components/select/Select.vue +1 -1
  119. package/src/components/sortable/draggable.js +2 -1
  120. package/src/components/table/Table2.vue +37 -8
  121. package/src/components/table/TableBody.vue +10 -18
  122. package/src/components/table/TableGroup.vue +31 -12
  123. package/src/components/table/TableHeader.vue +118 -64
  124. package/src/components/table/TableRowToggle.vue +51 -0
  125. package/src/components/table/TableRows.vue +20 -29
  126. package/src/components/table/index.stories.js +22 -200
  127. package/src/components/table/table2.scss +237 -68
  128. package/src/components/text-field/MoneyField.vue +23 -21
  129. package/src/components/tree/TreeEditor.vue +615 -0
  130. package/src/components/view/View.vue +265 -0
  131. package/src/components/view/index.stories.js +588 -0
  132. package/src/helpers/formatters.js +14 -1
  133. package/src/helpers/tree/cdbl.js +32 -0
  134. package/src/helpers/tree/cint.js +43 -0
  135. package/src/helpers/tree/domDrag.js +911 -0
  136. package/src/helpers/tree/domFinds.js +20 -0
  137. package/src/helpers/tree/domGetPointFromEvent.js +53 -0
  138. package/src/helpers/tree/domIsClientXYIn.js +65 -0
  139. package/src/helpers/tree/domRemove.js +50 -0
  140. package/src/helpers/tree/evem.js +27 -0
  141. package/src/helpers/tree/genID.js +56 -0
  142. package/src/helpers/tree/isEle.js +28 -0
  143. package/src/helpers/tree/isestr.js +35 -0
  144. package/src/helpers/tree/isint.js +40 -0
  145. package/src/helpers/tree/isnbr.js +24 -0
  146. package/src/helpers/tree/isnum.js +38 -0
  147. package/src/helpers/tree/ispint.js +41 -0
  148. package/src/helpers/tree/isstr.js +27 -0
  149. package/src/helpers/tree.js +30 -0
  150. package/src/helpers/vuetifyColor.js +136 -0
  151. package/src/locales/en.js +17 -0
  152. package/src/locales/uk.js +17 -0
  153. package/src/components/table/TableRow.vue +0 -221
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.0003 15.8337C13.222 15.8337 15.8337 13.222 15.8337 10.0003C15.8337 6.77866 13.222 4.16699 10.0003 4.16699C6.77866 4.16699 4.16699 6.77866 4.16699 10.0003C4.16699 13.222 6.77866 15.8337 10.0003 15.8337ZM7.91697 10.0003C7.91697 8.84973 8.84971 7.91699 10.0003 7.91699C11.1509 7.91699 12.0836 8.84973 12.0836 10.0003C12.0836 11.1509 11.1509 12.0837 10.0003 12.0837C8.84971 12.0837 7.91697 11.1509 7.91697 10.0003ZM10.0003 6.25032C7.92924 6.25032 6.25031 7.92925 6.25031 10.0003C6.25031 12.0714 7.92924 13.7503 10.0003 13.7503C12.0714 13.7503 13.7503 12.0714 13.7503 10.0003C13.7503 7.92925 12.0714 6.25032 10.0003 6.25032Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,2 @@
1
+ <template><svg width="18" height="18" viewBox="0 0 18 18" fill="currentColor" xmlns="http://www.w3.org/2000/svg" name="repeat" class="block" data-toggle="tooltip" ui-jq="tooltip" ui-options="{ 'container': 'body' }" title="" data-original-title="Повторяющаяся операция"><path d="M13.125 1.6875V3.9375H2.25001V9.9375H3.75001V5.4375H13.125V7.6875L16.125 4.6875L13.125 1.6875ZM14.25 8.625V13.125H4.875V10.875L1.875 13.875L4.875 16.875V14.625H15.75V8.625L14.25 8.625Z" fill="inherit"></path></svg>
2
+ </template>
@@ -0,0 +1,7 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17 7L9.5 7C7.84315 7 6.5 8.34315 6.5 10L6.5 12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M7 17L14.5 17C16.1569 17 17.5 15.6569 17.5 14L17.5 12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
4
+ <path d="M16 5L18 7L16 9" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M8 19L6 17L8 15" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
6
+ </svg>
7
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.4 5V8C12.4 8.88366 13.1163 9.6 14 9.6H17V18C17 18.5523 16.5523 19 16 19H8C7.44772 19 7 18.5523 7 18V6C7 5.44772 7.44772 5 8 5H12.4ZM13.6 5.6V8C13.6 8.22091 13.7791 8.4 14 8.4H16.4L13.6 5.6Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg style="transform: rotate(-90deg);" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="-1 -1 19 19">
2
+ <path d="M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
2
+ <path d="M8.932.727c-.243-.97-1.62-.97-1.864 0l-.071.286a.96.96 0 0 1-1.622.434l-.205-.211c-.695-.719-1.888-.03-1.613.931l.08.284a.96.96 0 0 1-1.186 1.187l-.284-.081c-.96-.275-1.65.918-.931 1.613l.211.205a.96.96 0 0 1-.434 1.622l-.286.071c-.97.243-.97 1.62 0 1.864l.286.071a.96.96 0 0 1 .434 1.622l-.211.205c-.719.695-.03 1.888.931 1.613l.284-.08a.96.96 0 0 1 1.187 1.187l-.081.283c-.275.96.918 1.65 1.613.931l.205-.211a.96.96 0 0 1 1.622.434l.071.286c.243.97 1.62.97 1.864 0l.071-.286a.96.96 0 0 1 1.622-.434l.205.211c.695.719 1.888.03 1.613-.931l-.08-.284a.96.96 0 0 1 1.187-1.187l.283.081c.96.275 1.65-.918.931-1.613l-.211-.205a.96.96 0 0 1 .434-1.622l.286-.071c.97-.243.97-1.62 0-1.864l-.286-.071a.96.96 0 0 1-.434-1.622l.211-.205c.719-.695.03-1.888-.931-1.613l-.284.08a.96.96 0 0 1-1.187-1.186l.081-.284c.275-.96-.918-1.65-1.613-.931l-.205.211a.96.96 0 0 1-1.622-.434zM8 12.997a4.998 4.998 0 1 1 0-9.995 4.998 4.998 0 0 1 0 9.996z"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,7 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 12L12 18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
3
+ <path d="M8 15L8 18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
4
+ <path d="M13 9L16 6L19 9" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M16 6L16 18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
6
+ </svg>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 6L12 12" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
3
+ <path d="M8 6L8 9" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
4
+ <path d="M13 15L16 18L19 15" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <path d="M16 6L16 18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
6
+ </svg>
7
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.43934 6.43934C5 6.87868 5 7.58579 5 9V9.4L8.4 9.4L8.4 6H8C6.58579 6 5.87868 6 5.43934 6.43934ZM5 10.6L8.4 10.6L8.4 13.4H5V10.6ZM5 14.6V15C5 16.4142 5 17.1213 5.43934 17.5607C5.87868 18 6.58579 18 8 18H8.4L8.4 14.6H5ZM9.6 14.6V18H16C17.4142 18 18.1213 18 18.5607 17.5607C19 17.1213 19 16.4142 19 15V14.6L9.6 14.6ZM19 13.4V10.6L9.6 10.6V13.4L19 13.4ZM9.6 6V9.4L19 9.4V9C19 7.58579 19 6.87868 18.5607 6.43934C18.1213 6 17.4142 6 16 6H9.6Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M14.8335 4.16699H12.0053C11.7401 4.16699 11.4857 4.27235 11.2982 4.45989L4.87395 10.8841C4.48342 11.2747 4.48342 11.9078 4.87395 12.2983L7.70216 15.1266C8.09268 15.5171 8.72585 15.5171 9.11637 15.1266L15.5406 8.70231C15.7282 8.51477 15.8335 8.26042 15.8335 7.9952V5.16699C15.8335 4.61471 15.3858 4.16699 14.8335 4.16699ZM13.3335 7.50033C13.7937 7.50033 14.1668 7.12723 14.1668 6.66699C14.1668 6.20676 13.7937 5.83366 13.3335 5.83366C12.8733 5.83366 12.5002 6.20676 12.5002 6.66699C12.5002 7.12723 12.8733 7.50033 13.3335 7.50033Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.0003 15.8337C13.222 15.8337 15.8337 13.222 15.8337 10.0003C15.8337 6.77866 13.222 4.16699 10.0003 4.16699C6.77866 4.16699 4.16699 6.77866 4.16699 10.0003C4.16699 13.222 6.77866 15.8337 10.0003 15.8337ZM7.91697 10.0003C7.91697 8.84973 8.84971 7.91699 10.0003 7.91699C11.1509 7.91699 12.0836 8.84973 12.0836 10.0003C12.0836 11.1509 11.1509 12.0837 10.0003 12.0837C8.84971 12.0837 7.91697 11.1509 7.91697 10.0003ZM10.0003 6.25032C7.92924 6.25032 6.25031 7.92925 6.25031 10.0003C6.25031 12.0714 7.92924 13.7503 10.0003 13.7503C12.0714 13.7503 13.7503 12.0714 13.7503 10.0003C13.7503 7.92925 12.0714 6.25032 10.0003 6.25032Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,6 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M5 7L15 7" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
3
+ <path d="M5 10L15 10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
4
+ <path d="M5 13H8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
5
+ </svg>
6
+ </template>
@@ -0,0 +1,8 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="5" y="5" width="14" height="14" rx="2" fill="currentColor"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M16.5 9.5C16.5 9.77614 16.2761 10 16 10L8 10C7.72386 10 7.5 9.77614 7.5 9.5C7.5 9.22386 7.72386 9 8 9L16 9C16.2761 9 16.5 9.22386 16.5 9.5Z" fill="white"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 14.5C7.5 14.7761 7.72386 15 8 15L16 15C16.2761 15 16.5 14.7761 16.5 14.5C16.5 14.2239 16.2761 14 16 14L8 14C7.72386 14 7.5 14.2239 7.5 14.5Z" fill="white"/>
5
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.3536 7.14645C10.5488 7.34171 10.5488 7.65829 10.3536 7.85355L8.70711 9.5L10.3536 11.1464C10.5488 11.3417 10.5488 11.6583 10.3536 11.8536C10.1583 12.0488 9.84171 12.0488 9.64645 11.8536L7.64645 9.85355C7.45118 9.65829 7.45118 9.34171 7.64645 9.14645L9.64645 7.14645C9.84171 6.95118 10.1583 6.95118 10.3536 7.14645Z" fill="white"/>
6
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M13.6464 12.1464C13.4512 12.3417 13.4512 12.6583 13.6464 12.8536L15.2929 14.5L13.6464 16.1464C13.4512 16.3417 13.4512 16.6583 13.6464 16.8536C13.8417 17.0488 14.1583 17.0488 14.3536 16.8536L16.3536 14.8536C16.5488 14.6583 16.5488 14.3417 16.3536 14.1464L14.3536 12.1464C14.1583 11.9512 13.8417 11.9512 13.6464 12.1464Z" fill="white"/>
7
+ </svg>
8
+ </template>
@@ -0,0 +1,4 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M10.0004 5.40039C9.66902 5.40039 9.40039 5.66902 9.40039 6.00039C9.40039 6.33176 9.66902 6.60039 10.0004 6.60039H14.0004C14.3318 6.60039 14.6004 6.33176 14.6004 6.00039C14.6004 5.66902 14.3318 5.40039 14.0004 5.40039H10.0004ZM5.40039 8.00039C5.40039 7.66902 5.66902 7.40039 6.00039 7.40039L18.0004 7.40039C18.3318 7.40039 18.6004 7.66902 18.6004 8.00039C18.6004 8.33176 18.3318 8.60039 18.0004 8.60039H16.9458L16.0831 18.0909C16.0362 18.606 15.6044 19.0004 15.0872 19.0004H8.91361C8.3964 19.0004 7.96454 18.606 7.91771 18.0909L7.05494 8.60039H6.00039C5.66902 8.60039 5.40039 8.33176 5.40039 8.00039Z" fill="currentColor"/>
3
+ </svg>
4
+ </template>
@@ -0,0 +1,7 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12.0429 10.0178L12.0429 19.9173" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M13.4571 4.36092H10.6287L7.80025 12.8462L16.2855 12.8462L13.4571 4.36092Z" fill="currentColor"/>
4
+ <path d="M6.38604 11.8462L6.38604 11.0178C6.38604 10.4655 6.83375 10.0178 7.38604 10.0178L16.6997 10.0178C17.252 10.0178 17.6997 10.4655 17.6997 11.0178V11.8462C17.6997 12.3985 17.252 12.8462 16.6997 12.8462L7.38604 12.8462C6.83375 12.8462 6.38604 12.3985 6.38604 11.8462Z" fill="currentColor"/>
5
+ <path d="M8.50736 4.77513L8.50736 3.9467C8.50736 3.39442 8.95507 2.9467 9.50736 2.9467L14.5784 2.9467C15.1307 2.9467 15.5784 3.39442 15.5784 3.9467V4.77513C15.5784 5.32741 15.1307 5.77513 14.5784 5.77513L9.50736 5.77513C8.95507 5.77513 8.50736 5.32741 8.50736 4.77513Z" fill="currentColor"/>
6
+ </svg>
7
+ </template>
@@ -0,0 +1,5 @@
1
+ <template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="10.0003" cy="7.08333" r="2.08333" fill="currentColor"/>
3
+ <path d="M6.62838 15C5.80763 15 5.39726 15 5.1452 14.65C4.89314 14.3 5.00241 13.988 5.22095 13.364C5.25366 13.2706 5.2892 13.1781 5.32754 13.0866C5.5817 12.48 5.95423 11.9288 6.42386 11.4645C6.89348 11.0002 7.45101 10.6319 8.06461 10.3806C8.6782 10.1293 9.33585 10 10 10C10.6642 10 11.3218 10.1293 11.9354 10.3806C12.549 10.6319 13.1065 11.0002 13.5761 11.4645C14.0458 11.9288 14.4183 12.48 14.6725 13.0866C14.7108 13.1781 14.7463 13.2706 14.779 13.364C14.9976 13.988 15.1069 14.3 14.8548 14.65C14.6027 15 14.1924 15 13.3716 15L6.62838 15Z" fill="currentColor"/>
4
+ </svg>
5
+ </template>
@@ -1,6 +1,7 @@
1
1
  const fs = require('fs');
2
2
 
3
3
  const fromFolder = `${__dirname}/icons`;
4
+ const fromNewFolder = `${__dirname}/new-icons`;
4
5
  const toFolder = `${__dirname}/components`;
5
6
 
6
7
  async function bootstrap() {
@@ -15,6 +16,16 @@ async function bootstrap() {
15
16
  });
16
17
  });
17
18
  }));
19
+ await Promise.all(fs.readdirSync(fromNewFolder).map((file) => {
20
+ return new Promise((resolve) => {
21
+ fs.readFile(`${fromNewFolder}/${file}`, { encoding: 'utf-8' }, (err, data) => {
22
+ fs.writeFile(`${toFolder}/nomi-${file.replace('.svg', '.vue')}`, `<template>${data}</template>`, (err) => {
23
+ icons += ` 'nomi-${file.replace('.svg', '')}': () => import('./components/nomi-${file.replace('.svg', '.vue')}'),\n`;
24
+ resolve();
25
+ });
26
+ });
27
+ });
28
+ }));
18
29
  icons += '}';
19
30
 
20
31
  fs.writeFile(`${fromFolder}.js`, icons, (err) => {