@pictogrammers/components 0.3.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 (379) hide show
  1. package/@types/css.d.ts +4 -0
  2. package/@types/html.d.ts +4 -0
  3. package/README.md +49 -0
  4. package/dist/main.js +3819 -0
  5. package/dist/pgAnnoy.js +116 -0
  6. package/dist/pgAvatar.js +136 -0
  7. package/dist/pgButton.js +116 -0
  8. package/dist/pgButtonGroup.js +116 -0
  9. package/dist/pgButtonLink.js +116 -0
  10. package/dist/pgButtonToggle.js +146 -0
  11. package/dist/pgCard.js +116 -0
  12. package/dist/pgCardUser.js +196 -0
  13. package/dist/pgColor.js +136 -0
  14. package/dist/pgDatabase.js +236 -0
  15. package/dist/pgDropdown.js +686 -0
  16. package/dist/pgGrid.js +126 -0
  17. package/dist/pgHeader.js +116 -0
  18. package/dist/pgIcon.js +116 -0
  19. package/dist/pgInputCheck.js +116 -0
  20. package/dist/pgInputCheckList.js +126 -0
  21. package/dist/pgInputFileLocal.js +116 -0
  22. package/dist/pgInputHexRgb.js +126 -0
  23. package/dist/pgInputRange.js +116 -0
  24. package/dist/pgInputSelect.js +116 -0
  25. package/dist/pgInputText.js +116 -0
  26. package/dist/pgInputTextIcon.js +176 -0
  27. package/dist/pgInputUserSelect.js +116 -0
  28. package/dist/pgListTag.js +136 -0
  29. package/dist/pgMarkdown.js +346 -0
  30. package/dist/pgMenuIcon.js +206 -0
  31. package/dist/pgModalAlert.js +126 -0
  32. package/dist/pgModification.js +396 -0
  33. package/dist/pgNav.js +116 -0
  34. package/dist/pgOverlay.js +96 -0
  35. package/dist/pgPicker.js +116 -0
  36. package/dist/pgPreview.js +116 -0
  37. package/dist/pgScroll.js +266 -0
  38. package/dist/pgSearch.js +146 -0
  39. package/dist/pgTab.js +116 -0
  40. package/dist/pgTabs.js +136 -0
  41. package/dist/pgToast.js +136 -0
  42. package/dist/pgToasts.js +136 -0
  43. package/dist/pgTooltip.js +126 -0
  44. package/index.html +302 -0
  45. package/package.json +25 -0
  46. package/pg/annoy/README.md +18 -0
  47. package/pg/annoy/__examples__/basic/basic.html +8 -0
  48. package/pg/annoy/__examples__/basic/basic.ts +11 -0
  49. package/pg/annoy/annoy.css +238 -0
  50. package/pg/annoy/annoy.html +59 -0
  51. package/pg/annoy/annoy.ts +48 -0
  52. package/pg/annoy/index.ts +3 -0
  53. package/pg/avatar/README.md +23 -0
  54. package/pg/avatar/__examples__/basic/basic.html +6 -0
  55. package/pg/avatar/__examples__/basic/basic.ts +41 -0
  56. package/pg/avatar/__examples__/basic/constants.ts +1 -0
  57. package/pg/avatar/avatar.css +45 -0
  58. package/pg/avatar/avatar.html +8 -0
  59. package/pg/avatar/avatar.spec.ts +51 -0
  60. package/pg/avatar/avatar.ts +37 -0
  61. package/pg/avatar/index.ts +3 -0
  62. package/pg/button/README.md +51 -0
  63. package/pg/button/__examples__/basic/basic.html +11 -0
  64. package/pg/button/__examples__/basic/basic.ts +11 -0
  65. package/pg/button/__examples__/states/states.html +8 -0
  66. package/pg/button/__examples__/states/states.ts +20 -0
  67. package/pg/button/button.css +91 -0
  68. package/pg/button/button.html +3 -0
  69. package/pg/button/button.ts +45 -0
  70. package/pg/button/index.ts +3 -0
  71. package/pg/buttonGroup/README.md +28 -0
  72. package/pg/buttonGroup/__examples__/basic/basic.html +12 -0
  73. package/pg/buttonGroup/__examples__/basic/basic.ts +11 -0
  74. package/pg/buttonGroup/buttonGroup.css +4 -0
  75. package/pg/buttonGroup/buttonGroup.html +1 -0
  76. package/pg/buttonGroup/buttonGroup.spec.ts +30 -0
  77. package/pg/buttonGroup/buttonGroup.ts +50 -0
  78. package/pg/buttonGroup/index.ts +3 -0
  79. package/pg/buttonLink/README.md +51 -0
  80. package/pg/buttonLink/__examples__/basic/basic.html +17 -0
  81. package/pg/buttonLink/__examples__/basic/basic.ts +11 -0
  82. package/pg/buttonLink/buttonLink.css +91 -0
  83. package/pg/buttonLink/buttonLink.html +3 -0
  84. package/pg/buttonLink/buttonLink.ts +46 -0
  85. package/pg/buttonLink/index.ts +3 -0
  86. package/pg/buttonToggle/README.md +54 -0
  87. package/pg/buttonToggle/__examples__/basic/basic.html +10 -0
  88. package/pg/buttonToggle/__examples__/basic/basic.ts +23 -0
  89. package/pg/buttonToggle/buttonToggle.css +8 -0
  90. package/pg/buttonToggle/buttonToggle.html +4 -0
  91. package/pg/buttonToggle/buttonToggle.ts +44 -0
  92. package/pg/buttonToggle/index.ts +3 -0
  93. package/pg/card/README.md +21 -0
  94. package/pg/card/__examples__/basic/basic.html +5 -0
  95. package/pg/card/__examples__/basic/basic.ts +11 -0
  96. package/pg/card/card.css +11 -0
  97. package/pg/card/card.html +3 -0
  98. package/pg/card/card.spec.ts +30 -0
  99. package/pg/card/card.ts +13 -0
  100. package/pg/card/index.ts +3 -0
  101. package/pg/cardUser/README.md +22 -0
  102. package/pg/cardUser/__examples__/basic/basic.html +3 -0
  103. package/pg/cardUser/__examples__/basic/basic.ts +30 -0
  104. package/pg/cardUser/__examples__/basic/constants.ts +1 -0
  105. package/pg/cardUser/cardUser.css +67 -0
  106. package/pg/cardUser/cardUser.html +23 -0
  107. package/pg/cardUser/cardUser.spec.ts +46 -0
  108. package/pg/cardUser/cardUser.ts +53 -0
  109. package/pg/cardUser/index.ts +3 -0
  110. package/pg/color/README.md +13 -0
  111. package/pg/color/__examples__/basic/basic.html +4 -0
  112. package/pg/color/__examples__/basic/basic.ts +20 -0
  113. package/pg/color/color.css +21 -0
  114. package/pg/color/color.html +1 -0
  115. package/pg/color/color.ts +97 -0
  116. package/pg/color/constants.ts +357 -0
  117. package/pg/color/index.ts +3 -0
  118. package/pg/color/utils.ts +27 -0
  119. package/pg/database/README.md +28 -0
  120. package/pg/database/__examples__/basic/basic.html +9 -0
  121. package/pg/database/__examples__/basic/basic.ts +37 -0
  122. package/pg/database/database.css +0 -0
  123. package/pg/database/database.html +0 -0
  124. package/pg/database/database.ts +42 -0
  125. package/pg/database/index.ts +3 -0
  126. package/pg/dropdown/README.md +13 -0
  127. package/pg/dropdown/__examples__/basic/basic.html +14 -0
  128. package/pg/dropdown/__examples__/basic/basic.ts +11 -0
  129. package/pg/dropdown/dropdown.css +46 -0
  130. package/pg/dropdown/dropdown.html +5 -0
  131. package/pg/dropdown/dropdown.ts +60 -0
  132. package/pg/dropdown/index.ts +3 -0
  133. package/pg/grid/README.md +97 -0
  134. package/pg/grid/__examples__/basic/basic.html +29 -0
  135. package/pg/grid/__examples__/basic/basic.ts +139 -0
  136. package/pg/grid/grid.css +68 -0
  137. package/pg/grid/grid.html +6 -0
  138. package/pg/grid/grid.spec.ts +66 -0
  139. package/pg/grid/grid.ts +417 -0
  140. package/pg/grid/index.ts +3 -0
  141. package/pg/header/README.md +23 -0
  142. package/pg/header/__examples__/basic/basic.html +8 -0
  143. package/pg/header/__examples__/basic/basic.ts +11 -0
  144. package/pg/header/header.css +42 -0
  145. package/pg/header/header.html +15 -0
  146. package/pg/header/header.ts +28 -0
  147. package/pg/header/index.ts +3 -0
  148. package/pg/icon/README.md +26 -0
  149. package/pg/icon/__examples__/basic/basic.html +16 -0
  150. package/pg/icon/__examples__/basic/basic.ts +34 -0
  151. package/pg/icon/__examples__/basic/constants.ts +2 -0
  152. package/pg/icon/icon.css +9 -0
  153. package/pg/icon/icon.html +3 -0
  154. package/pg/icon/icon.spec.ts +46 -0
  155. package/pg/icon/icon.ts +23 -0
  156. package/pg/icon/index.ts +3 -0
  157. package/pg/inputCheck/README.md +32 -0
  158. package/pg/inputCheck/__examples__/basic/basic.html +8 -0
  159. package/pg/inputCheck/__examples__/basic/basic.ts +23 -0
  160. package/pg/inputCheck/index.ts +3 -0
  161. package/pg/inputCheck/inputCheck.css +45 -0
  162. package/pg/inputCheck/inputCheck.html +6 -0
  163. package/pg/inputCheck/inputCheck.ts +42 -0
  164. package/pg/inputCheckList/README.md +35 -0
  165. package/pg/inputCheckList/__examples__/basic/basic.html +4 -0
  166. package/pg/inputCheckList/__examples__/basic/basic.ts +31 -0
  167. package/pg/inputCheckList/index.ts +3 -0
  168. package/pg/inputCheckList/inputCheckList.css +70 -0
  169. package/pg/inputCheckList/inputCheckList.html +1 -0
  170. package/pg/inputCheckList/inputCheckList.ts +103 -0
  171. package/pg/inputCheckList/templates/option.html +8 -0
  172. package/pg/inputFileLocal/README.md +30 -0
  173. package/pg/inputFileLocal/__examples__/basic/basic.html +4 -0
  174. package/pg/inputFileLocal/__examples__/basic/basic.ts +23 -0
  175. package/pg/inputFileLocal/index.ts +3 -0
  176. package/pg/inputFileLocal/inputFileLocal.css +80 -0
  177. package/pg/inputFileLocal/inputFileLocal.html +5 -0
  178. package/pg/inputFileLocal/inputFileLocal.ts +82 -0
  179. package/pg/inputHexRgb/README.md +15 -0
  180. package/pg/inputHexRgb/__examples__/basic/basic.html +4 -0
  181. package/pg/inputHexRgb/__examples__/basic/basic.ts +23 -0
  182. package/pg/inputHexRgb/index.ts +3 -0
  183. package/pg/inputHexRgb/inputHexRgb.css +96 -0
  184. package/pg/inputHexRgb/inputHexRgb.html +9 -0
  185. package/pg/inputHexRgb/inputHexRgb.ts +79 -0
  186. package/pg/inputHexRgb/utils.ts +27 -0
  187. package/pg/inputRange/README.md +18 -0
  188. package/pg/inputRange/__examples__/basic/basic.html +9 -0
  189. package/pg/inputRange/__examples__/basic/basic.ts +30 -0
  190. package/pg/inputRange/index.ts +3 -0
  191. package/pg/inputRange/inputRange.css +0 -0
  192. package/pg/inputRange/inputRange.html +1 -0
  193. package/pg/inputRange/inputRange.ts +53 -0
  194. package/pg/inputSelect/README.md +25 -0
  195. package/pg/inputSelect/__examples__/basic/basic.html +6 -0
  196. package/pg/inputSelect/__examples__/basic/basic.ts +30 -0
  197. package/pg/inputSelect/index.ts +3 -0
  198. package/pg/inputSelect/inputSelect.css +36 -0
  199. package/pg/inputSelect/inputSelect.html +4 -0
  200. package/pg/inputSelect/inputSelect.ts +57 -0
  201. package/pg/inputText/README.md +27 -0
  202. package/pg/inputText/__examples__/basic/basic.html +9 -0
  203. package/pg/inputText/__examples__/basic/basic.ts +30 -0
  204. package/pg/inputText/index.ts +3 -0
  205. package/pg/inputText/inputText.css +20 -0
  206. package/pg/inputText/inputText.html +1 -0
  207. package/pg/inputText/inputText.spec.ts +59 -0
  208. package/pg/inputText/inputText.ts +59 -0
  209. package/pg/inputTextIcon/README.md +26 -0
  210. package/pg/inputTextIcon/index.ts +3 -0
  211. package/pg/inputTextIcon/inputTextIcon.css +24 -0
  212. package/pg/inputTextIcon/inputTextIcon.html +4 -0
  213. package/pg/inputTextIcon/inputTextIcon.spec.ts +44 -0
  214. package/pg/inputTextIcon/inputTextIcon.ts +26 -0
  215. package/pg/inputUserSelect/README.md +31 -0
  216. package/pg/inputUserSelect/__examples__/basic/basic.html +4 -0
  217. package/pg/inputUserSelect/__examples__/basic/basic.ts +25 -0
  218. package/pg/inputUserSelect/__examples__/basic/constants.ts +33 -0
  219. package/pg/inputUserSelect/index.ts +3 -0
  220. package/pg/inputUserSelect/inputUserSelect.css +174 -0
  221. package/pg/inputUserSelect/inputUserSelect.html +18 -0
  222. package/pg/inputUserSelect/inputUserSelect.ts +266 -0
  223. package/pg/listTag/README.md +26 -0
  224. package/pg/listTag/__examples__/basic/basic.html +16 -0
  225. package/pg/listTag/__examples__/basic/basic.ts +53 -0
  226. package/pg/listTag/__examples__/basic/constants.ts +22 -0
  227. package/pg/listTag/index.ts +3 -0
  228. package/pg/listTag/listTag.css +9 -0
  229. package/pg/listTag/listTag.html +1 -0
  230. package/pg/listTag/listTag.ts +48 -0
  231. package/pg/listTag/partials/tag.html +3 -0
  232. package/pg/markdown/README.md +13 -0
  233. package/pg/markdown/__examples__/basic/basic.html +3 -0
  234. package/pg/markdown/__examples__/basic/basic.ts +51 -0
  235. package/pg/markdown/__examples__/basic/constants.ts +129 -0
  236. package/pg/markdown/index.ts +5 -0
  237. package/pg/markdown/markdown.css +760 -0
  238. package/pg/markdown/markdown.html +1 -0
  239. package/pg/markdown/markdown.md +123 -0
  240. package/pg/markdown/markdown.spec.ts +87 -0
  241. package/pg/markdown/markdown.ts +381 -0
  242. package/pg/markdown/markdownReplace.ts +7 -0
  243. package/pg/menuIcon/README.md +13 -0
  244. package/pg/menuIcon/__examples__/basic/basic.html +3 -0
  245. package/pg/menuIcon/__examples__/basic/basic.ts +15 -0
  246. package/pg/menuIcon/index.ts +3 -0
  247. package/pg/menuIcon/menuIcon.css +168 -0
  248. package/pg/menuIcon/menuIcon.html +64 -0
  249. package/pg/menuIcon/menuIcon.ts +271 -0
  250. package/pg/modalAlert/README.md +17 -0
  251. package/pg/modalAlert/__examples__/basic/basic.html +4 -0
  252. package/pg/modalAlert/__examples__/basic/basic.ts +27 -0
  253. package/pg/modalAlert/index.ts +3 -0
  254. package/pg/modalAlert/modalAlert.css +43 -0
  255. package/pg/modalAlert/modalAlert.html +22 -0
  256. package/pg/modalAlert/modalAlert.ts +45 -0
  257. package/pg/modification/README.md +34 -0
  258. package/pg/modification/__examples__/basic/basic.html +8 -0
  259. package/pg/modification/__examples__/basic/basic.ts +63 -0
  260. package/pg/modification/__examples__/basic/constants.ts +416 -0
  261. package/pg/modification/index.ts +3 -0
  262. package/pg/modification/modification.css +311 -0
  263. package/pg/modification/modification.html +1 -0
  264. package/pg/modification/modification.spec.ts +33 -0
  265. package/pg/modification/modification.ts +201 -0
  266. package/pg/modification/type/date.html +1 -0
  267. package/pg/modification/type/iconAliasCreated.html +13 -0
  268. package/pg/modification/type/iconAliasDeleted.html +13 -0
  269. package/pg/modification/type/iconAuthorModified.html +13 -0
  270. package/pg/modification/type/iconCreated.html +13 -0
  271. package/pg/modification/type/iconDeleted.html +13 -0
  272. package/pg/modification/type/iconDeprecated.html +13 -0
  273. package/pg/modification/type/iconDescriptionModified.html +10 -0
  274. package/pg/modification/type/iconModified.html +14 -0
  275. package/pg/modification/type/iconRenamed.html +13 -0
  276. package/pg/modification/type/iconTagCreated.html +13 -0
  277. package/pg/modification/type/iconTagDeleted.html +13 -0
  278. package/pg/modification/type/news.html +5 -0
  279. package/pg/nav/README.md +16 -0
  280. package/pg/nav/__examples__/basic/basic.html +5 -0
  281. package/pg/nav/__examples__/basic/basic.ts +11 -0
  282. package/pg/nav/index.ts +3 -0
  283. package/pg/nav/nav.css +14 -0
  284. package/pg/nav/nav.html +16 -0
  285. package/pg/nav/nav.ts +21 -0
  286. package/pg/overlay/README.md +37 -0
  287. package/pg/overlay/__examples__/basic/basic.css +3 -0
  288. package/pg/overlay/__examples__/basic/basic.html +3 -0
  289. package/pg/overlay/__examples__/basic/basic.ts +13 -0
  290. package/pg/overlay/index.ts +3 -0
  291. package/pg/overlay/overlay.ts +26 -0
  292. package/pg/picker/README.md +13 -0
  293. package/pg/picker/index.ts +3 -0
  294. package/pg/picker/picker.css +56 -0
  295. package/pg/picker/picker.html +8 -0
  296. package/pg/picker/picker.ts +66 -0
  297. package/pg/preview/README.md +19 -0
  298. package/pg/preview/__examples__/basic/basic.html +11 -0
  299. package/pg/preview/__examples__/basic/basic.ts +22 -0
  300. package/pg/preview/index.ts +3 -0
  301. package/pg/preview/preview.css +34 -0
  302. package/pg/preview/preview.html +5 -0
  303. package/pg/preview/preview.ts +38 -0
  304. package/pg/scroll/README.md +42 -0
  305. package/pg/scroll/__examples__/basic/basic.css +4 -0
  306. package/pg/scroll/__examples__/basic/basic.html +11 -0
  307. package/pg/scroll/__examples__/basic/basic.ts +88 -0
  308. package/pg/scroll/index.ts +3 -0
  309. package/pg/scroll/scroll.css +7 -0
  310. package/pg/scroll/scroll.html +3 -0
  311. package/pg/scroll/scroll.ts +158 -0
  312. package/pg/search/README.md +59 -0
  313. package/pg/search/__examples__/basic/basic.html +3 -0
  314. package/pg/search/__examples__/basic/basic.ts +29 -0
  315. package/pg/search/__examples__/basic/constants.ts +3 -0
  316. package/pg/search/index.ts +3 -0
  317. package/pg/search/search.css +188 -0
  318. package/pg/search/search.html +18 -0
  319. package/pg/search/search.ts +252 -0
  320. package/pg/search/utils.ts +12 -0
  321. package/pg/shared/README.md +28 -0
  322. package/pg/shared/copy.ts +25 -0
  323. package/pg/shared/database.ts +35 -0
  324. package/pg/shared/databaseService.ts +230 -0
  325. package/pg/shared/debounce.ts +12 -0
  326. package/pg/shared/enums/modificationType.ts +19 -0
  327. package/pg/shared/filter.ts +14 -0
  328. package/pg/shared/http.ts +83 -0
  329. package/pg/shared/iconFilter.spec.ts +61 -0
  330. package/pg/shared/iconFilter.ts +71 -0
  331. package/pg/shared/list.ts +34 -0
  332. package/pg/shared/models/alias.ts +40 -0
  333. package/pg/shared/models/font.ts +31 -0
  334. package/pg/shared/models/fontIcon.ts +25 -0
  335. package/pg/shared/models/fontVersion.ts +22 -0
  336. package/pg/shared/models/icon.ts +97 -0
  337. package/pg/shared/models/modification.ts +45 -0
  338. package/pg/shared/models/style.ts +12 -0
  339. package/pg/shared/models/tag.ts +37 -0
  340. package/pg/shared/models/user.ts +35 -0
  341. package/pg/shared/models/version.ts +20 -0
  342. package/pg/shared/removeDiacritics.ts +94 -0
  343. package/pg/shared/toast.ts +47 -0
  344. package/pg/shared/uuid.ts +6 -0
  345. package/pg/tab/README.md +18 -0
  346. package/pg/tab/index.ts +3 -0
  347. package/pg/tab/tab.css +13 -0
  348. package/pg/tab/tab.html +3 -0
  349. package/pg/tab/tab.ts +51 -0
  350. package/pg/tabs/README.md +31 -0
  351. package/pg/tabs/__examples__/basic/basic.html +13 -0
  352. package/pg/tabs/__examples__/basic/basic.ts +11 -0
  353. package/pg/tabs/index.ts +3 -0
  354. package/pg/tabs/partials/tab.html +3 -0
  355. package/pg/tabs/tabs.css +69 -0
  356. package/pg/tabs/tabs.html +4 -0
  357. package/pg/tabs/tabs.ts +102 -0
  358. package/pg/toast/README.md +13 -0
  359. package/pg/toast/index.ts +3 -0
  360. package/pg/toast/toast.css +112 -0
  361. package/pg/toast/toast.html +13 -0
  362. package/pg/toast/toast.ts +39 -0
  363. package/pg/toasts/README.md +37 -0
  364. package/pg/toasts/__examples__/basic/basic.html +11 -0
  365. package/pg/toasts/__examples__/basic/basic.ts +86 -0
  366. package/pg/toasts/index.ts +3 -0
  367. package/pg/toasts/toasts.css +8 -0
  368. package/pg/toasts/toasts.html +1 -0
  369. package/pg/toasts/toasts.ts +51 -0
  370. package/pg/tooltip/README.md +51 -0
  371. package/pg/tooltip/__examples__/basic/basic.css +38 -0
  372. package/pg/tooltip/__examples__/basic/basic.html +21 -0
  373. package/pg/tooltip/__examples__/basic/basic.ts +55 -0
  374. package/pg/tooltip/addTooltip.ts +31 -0
  375. package/pg/tooltip/index.ts +20 -0
  376. package/pg/tooltip/position.ts +15 -0
  377. package/pg/tooltip/tooltip.css +36 -0
  378. package/pg/tooltip/tooltip.html +4 -0
  379. package/pg/tooltip/tooltip.ts +170 -0
@@ -0,0 +1,34 @@
1
+ # `<pg-modification>`
2
+
3
+ The `pg-modification` component takes an array of modifications and displays the values.
4
+
5
+ ```typescript
6
+ import '@pictogrammers/components/pg/modification';
7
+ import PgModification from '@pictogrammers/components/pg/modification';
8
+ ```
9
+
10
+ ```html
11
+ <pg-modification></pg-modification>
12
+ ```
13
+
14
+ ## Attributes
15
+
16
+ | Attributes | Tested | Default | Description |
17
+ | ---------- | -------- | ----------- |
18
+ | modifications | &#x2705; | Set modification array |
19
+ | edit | &#x2705; | `false` | Toggle edit mode |
20
+
21
+ ## Events
22
+
23
+ | Attributes | Tested | Description |
24
+ | ---------- | -------- | ----------- |
25
+ | issue | &#x2705; | Issue number clicked. |
26
+ | edit | &#x2705; | Edit clicked. |
27
+
28
+ ## CSS Variables
29
+
30
+ | CSS Variables | Default | Description |
31
+ | ------------------- | --------- | ----------- |
32
+ | `--pg-icon-color` | `#453C4F` | Color |
33
+ | `--pg-icon-width` | `1.5rem` | Width |
34
+ | `--pg-icon-height` | `1.5rem` | Height |
@@ -0,0 +1,8 @@
1
+ <div class="example">
2
+ <div>
3
+ <button part="clear">Clear List</button>
4
+ <button part="single">Single Item</button>
5
+ <button part="editToggle">Toggle Edit Mode</button>
6
+ </div>
7
+ <pg-modification part="modification"></pg-nav>
8
+ </div>
@@ -0,0 +1,63 @@
1
+ import { Component, Part, Prop } from '@pictogrammers/element';
2
+ import { Modification } from 'pg/shared/models/modification';
3
+ import PgModification from '../../modification';
4
+
5
+ import template from './basic.html';
6
+ import { modifications } from './constants';
7
+
8
+ @Component({
9
+ selector: 'x-pg-modification-basic',
10
+ template
11
+ })
12
+ export default class XPgModificationBasic extends HTMLElement {
13
+
14
+ @Part() $modification: PgModification;
15
+
16
+ @Part() $clear: HTMLButtonElement;
17
+ @Part() $single: HTMLButtonElement;
18
+ @Part() $editToggle: HTMLButtonElement;
19
+
20
+ connectedCallback() {
21
+ this.$modification.modifications = modifications;
22
+ this.$modification.addEventListener('edit', (e: CustomEvent) => {
23
+ console.log(e.detail);
24
+ });
25
+ this.$editToggle.addEventListener('click', () => {
26
+ this.$modification.edit = !this.$modification.edit;
27
+ });
28
+ this.$clear.addEventListener('click', () => {
29
+ this.$modification.modifications = [];
30
+ });
31
+ var increment = 0;
32
+ this.$single.addEventListener('click', () => {
33
+ increment++;
34
+ const existing = this.$modification.modifications as any;
35
+ this.$modification.modifications = [...existing, {
36
+ "id": "3e7a0e1b-b355-11e7-bf5c-94188269ec50" + increment,
37
+ "modificationId": "B4DEB3A8-A146-4086-9D7B-B67842A9CCB8",
38
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
39
+ "iconNameBefore": null,
40
+ "iconNameAfter": null,
41
+ "iconDescriptionBefore": null,
42
+ "iconDescriptionAfter": null,
43
+ "iconDataBefore": null,
44
+ "iconDataAfter": null,
45
+ "text": "Example `" + increment + `"`,
46
+ "date": "2020-10-20T16:07:15Z",
47
+ "user": {
48
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
49
+ "name": "Austin Andrews",
50
+ "github": "templarian",
51
+ "twitter": "Templarian"
52
+ },
53
+ "icon": null,
54
+ "version": {
55
+ "major": 1,
56
+ "minor": 0,
57
+ "patch": 42
58
+ },
59
+ "issue": null
60
+ }];
61
+ });
62
+ }
63
+ }
@@ -0,0 +1,416 @@
1
+ // - News
2
+ // - IconAliasCreated
3
+ // - IconAliasDeleted
4
+ // - IconCreated
5
+ // - IconDeleted
6
+ // - IconModified
7
+ // - IconRenamed
8
+ // - IconTagCreated
9
+ // - IconTagDeleted
10
+ // - IconDescriptionModified
11
+ // - IconAuthorModified
12
+ // - WebfontPublished
13
+ // - IconDeprecated
14
+ // - IconWorkInProgress
15
+ // - IconLive
16
+ // - IconPublished
17
+ export const modifications: any[] = [
18
+ {
19
+ "id": "3e7a0e1b-b355-11e7-bf5c-94188269ec50",
20
+ "modificationId": "B4DEB3A8-A146-4086-9D7B-B67842A9CCB8",
21
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
22
+ "iconNameBefore": null,
23
+ "iconNameAfter": null,
24
+ "iconDescriptionBefore": null,
25
+ "iconDescriptionAfter": null,
26
+ "iconDataBefore": null,
27
+ "iconDataAfter": null,
28
+ "text": "Release `v1.0.42` with awesome updates.\n\n- Updates\n - `markdown` Supported",
29
+ "date": "2020-10-20T16:07:15Z",
30
+ "user": {
31
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
32
+ "name": "Austin Andrews",
33
+ "github": "templarian",
34
+ "twitter": "Templarian"
35
+ },
36
+ "icon": null,
37
+ "version": {
38
+ "major": 1,
39
+ "minor": 0,
40
+ "patch": 42
41
+ },
42
+ "issue": null
43
+ },
44
+ {
45
+ "id": "87fb6a41-b354-11e7-bf5c-94188269ec50",
46
+ "modificationId": "691c8829-b1e7-11e7-bf5c-94188269ec50",
47
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
48
+ "iconNameBefore": null,
49
+ "iconNameAfter": null,
50
+ "iconDescriptionBefore": null,
51
+ "iconDescriptionAfter": null,
52
+ "iconDataBefore": null,
53
+ "iconDataAfter": null,
54
+ "text": "alias-created",
55
+ "date": "2017-10-17T16:02:09Z",
56
+ "user": {
57
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
58
+ "name": "Austin Andrews",
59
+ "github": "templarian",
60
+ "twitter": "Templarian"
61
+ },
62
+ "icon": {
63
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
64
+ "name": "icon-name",
65
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
66
+ "user": {
67
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
68
+ "name": "First Last",
69
+ "github": "GitHubUser",
70
+ "twitter": "TwitterName"
71
+ }
72
+ },
73
+ "issue": 42
74
+ },
75
+ {
76
+ "id": "820b8714-b354-11e7-bf5c-94188269ec50",
77
+ "modificationId": "f1f70a76-b975-11e9-8ca0-94188269ec50",
78
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
79
+ "iconNameBefore": null,
80
+ "iconNameAfter": null,
81
+ "iconDescriptionBefore": null,
82
+ "iconDescriptionAfter": null,
83
+ "iconDataBefore": null,
84
+ "iconDataAfter": null,
85
+ "text": "alias-deleted",
86
+ "date": "2017-10-17T16:01:59Z",
87
+ "user": {
88
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
89
+ "name": "Austin Andrews",
90
+ "github": "templarian",
91
+ "twitter": "Templarian"
92
+ },
93
+ "icon": {
94
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
95
+ "name": "icon-name",
96
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
97
+ "user": {
98
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
99
+ "name": "First Last",
100
+ "github": "GitHubUser",
101
+ "twitter": "TwitterName"
102
+ }
103
+ },
104
+ "issue": 42
105
+ },
106
+ {
107
+ "id": "51b1b2cc-b354-11e7-bf5c-94188269ec50",
108
+ "modificationId": "AFFE875E-01BC-4A34-9BE3-27625A155B28",
109
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
110
+ "iconNameBefore": null,
111
+ "iconNameAfter": null,
112
+ "iconDescriptionBefore": null,
113
+ "iconDescriptionAfter": null,
114
+ "iconDataAfter": null,
115
+ "iconDataBefore": null,
116
+ "text": null,
117
+ "date": "2017-10-17T16:00:38Z",
118
+ "user": {
119
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
120
+ "name": "Austin Andrews",
121
+ "github": "templarian",
122
+ "twitter": "Templarian"
123
+ },
124
+ "icon": {
125
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
126
+ "name": "icon-name",
127
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
128
+ "user": {
129
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
130
+ "name": "First Last",
131
+ "github": "GitHubUser",
132
+ "twitter": "TwitterName"
133
+ }
134
+ },
135
+ "issue": 42
136
+ },
137
+ {
138
+ "id": "46e38abf-b353-11e7-bf5c-94188269ec50",
139
+ "modificationId": "B1CE1713-A18A-4E9D-9E26-D0B4E44A1FAC",
140
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
141
+ "iconNameBefore": null,
142
+ "iconNameAfter": null,
143
+ "iconDescriptionBefore": null,
144
+ "iconDescriptionAfter": null,
145
+ "iconDataBefore": null,
146
+ "iconDataAfter": null,
147
+ "text": null,
148
+ "date": "2017-10-17T15:53:11Z",
149
+ "user": {
150
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
151
+ "name": "Austin Andrews",
152
+ "github": "templarian",
153
+ "twitter": "Templarian"
154
+ },
155
+ "icon": {
156
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
157
+ "name": "icon-name",
158
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
159
+ "user": {
160
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
161
+ "name": "First Last",
162
+ "github": "GitHubUser",
163
+ "twitter": "TwitterName"
164
+ }
165
+ },
166
+ "issue": 42
167
+ },
168
+ {
169
+ "id": "19445be2-b353-11e7-bf5c-94188269ec50",
170
+ "modificationId": "1506F66B-CC2A-4575-A20A-DC138628977A",
171
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
172
+ "iconNameBefore": null,
173
+ "iconNameAfter": null,
174
+ "iconDescriptionBefore": null,
175
+ "iconDescriptionAfter": null,
176
+ "iconDataBefore": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
177
+ "iconDataAfter": "M10 4A4 4 0 0 1 14 8A4 4 0 0 1 10 12A4 4 0 0 1 6 8A4 4 0 0 1 10 4M10 14C14.42 14 18 15.79 18 18V20H2V18C2 15.79 5.58 14 10 14M20 12V7H22V13H20M20 17V15H22V17H20Z",
178
+ "text": null,
179
+ "date": "2017-10-17T15:51:54Z",
180
+ "user": {
181
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
182
+ "name": "Austin Andrews",
183
+ "github": "templarian",
184
+ "twitter": "Templarian"
185
+ },
186
+ "icon": {
187
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
188
+ "name": "icon-name",
189
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
190
+ "user": {
191
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
192
+ "name": "First Last",
193
+ "github": "GitHubUser",
194
+ "twitter": "TwitterName"
195
+ }
196
+ },
197
+ "issue": 42
198
+ },
199
+ {
200
+ "id": "f6100c55-b352-11e7-bf5c-94188269ec50",
201
+ "modificationId": "F7B6D49B-A86F-49AC-AF92-6B9D0DF6188B",
202
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
203
+ "iconNameBefore": "old-name",
204
+ "iconNameAfter": "new-name",
205
+ "iconDescriptionBefore": null,
206
+ "iconDescriptionAfter": null,
207
+ "iconDataBefore": null,
208
+ "iconDataAfter": null,
209
+ "text": null,
210
+ "date": "2017-10-17T15:50:55Z",
211
+ "user": {
212
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
213
+ "name": "Austin Andrews",
214
+ "github": "templarian",
215
+ "twitter": "Templarian"
216
+ },
217
+ "icon": {
218
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
219
+ "name": "icon-name",
220
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
221
+ "user": {
222
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
223
+ "name": "First Last",
224
+ "github": "GitHubUser",
225
+ "twitter": "TwitterName"
226
+ }
227
+ },
228
+ "issue": 42
229
+ },
230
+ {
231
+ "id": "ecb3dfda-b352-11e7-bf5c-94188269ec50",
232
+ "modificationId": "a185a9e8-c192-11e7-bf5c-94188269ec50",
233
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
234
+ "iconNameBefore": null,
235
+ "iconNameAfter": null,
236
+ "iconDescriptionBefore": null,
237
+ "iconDescriptionAfter": null,
238
+ "iconDataBefore": null,
239
+ "iconDataAfter": null,
240
+ "text": "tag-created",
241
+ "date": "2017-10-16T15:50:39Z",
242
+ "user": {
243
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
244
+ "name": "Austin Andrews",
245
+ "github": "templarian",
246
+ "twitter": "Templarian"
247
+ },
248
+ "icon": {
249
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
250
+ "name": "icon-name",
251
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
252
+ "user": {
253
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
254
+ "name": "First Last",
255
+ "github": "GitHubUser",
256
+ "twitter": "TwitterName"
257
+ }
258
+ },
259
+ "issue": 42
260
+ },
261
+ {
262
+ "id": "c6d9381b-b352-11e7-bf5c-94188269ec50",
263
+ "modificationId": "ffe6b5f6-b975-11e9-8ca0-94188269ec50",
264
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
265
+ "iconNameBefore": null,
266
+ "iconNameAfter": null,
267
+ "iconDescriptionBefore": null,
268
+ "iconDescriptionAfter": null,
269
+ "iconDataBefore": null,
270
+ "iconDataAfter": null,
271
+ "text": "tag-deleted",
272
+ "date": "2017-10-16T15:49:36Z",
273
+ "user": {
274
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
275
+ "name": "Austin Andrews",
276
+ "github": "templarian",
277
+ "twitter": "Templarian"
278
+ },
279
+ "icon": {
280
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
281
+ "name": "icon-name",
282
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
283
+ "user": {
284
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
285
+ "name": "First Last",
286
+ "github": "GitHubUser",
287
+ "twitter": "TwitterName"
288
+ }
289
+ },
290
+ "issue": 42
291
+ },
292
+ {
293
+ "id": "c2acb992-b352-11e7-bf5c-94188269ec50",
294
+ "modificationId": "3c638179-c4ca-11e8-9f27-94188269ec50",
295
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
296
+ "iconNameBefore": null,
297
+ "iconNameAfter": null,
298
+ "iconDescriptionBefore": "Old Description",
299
+ "iconDescriptionAfter": "New Description",
300
+ "iconDataBefore": null,
301
+ "iconDataAfter": null,
302
+ "text": null,
303
+ "date": "2017-10-16T15:49:29Z",
304
+ "user": {
305
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
306
+ "name": "Austin Andrews",
307
+ "github": "templarian",
308
+ "twitter": "Templarian"
309
+ },
310
+ "icon": {
311
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
312
+ "name": "icon-name",
313
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
314
+ "user": {
315
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
316
+ "name": "First Last",
317
+ "github": "GitHubUser",
318
+ "twitter": "TwitterName"
319
+ }
320
+ },
321
+ "issue": 42
322
+ },
323
+ {
324
+ "id": "c2acb992-b352-11e7-bf5c-94188269ec50",
325
+ "modificationId": "254591d0-b28e-11e9-8ca0-94188269ec50",
326
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
327
+ "iconNameBefore": null,
328
+ "iconNameAfter": null,
329
+ "iconDescriptionBefore": null,
330
+ "iconDescriptionAfter": null,
331
+ "iconDataBefore": null,
332
+ "iconDataAfter": null,
333
+ "text": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
334
+ "date": "2017-10-16T15:49:29Z",
335
+ "user": {
336
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
337
+ "name": "Austin Andrews",
338
+ "github": "templarian",
339
+ "twitter": "Templarian"
340
+ },
341
+ "icon": {
342
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
343
+ "name": "icon-name",
344
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
345
+ "user": {
346
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
347
+ "name": "First Last",
348
+ "github": "GitHubUser",
349
+ "twitter": "TwitterName"
350
+ }
351
+ },
352
+ "issue": 42
353
+ },
354
+ {
355
+ "id": "c2acb992-b352-11e7-bf5c-94188269ec50",
356
+ "modificationId": "f92f310f-bfed-11e9-8ca0-94188269ec50",
357
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
358
+ "iconNameBefore": null,
359
+ "iconNameAfter": null,
360
+ "iconDescriptionBefore": null,
361
+ "iconDescriptionAfter": null,
362
+ "iconDataBefore": null,
363
+ "iconDataAfter": null,
364
+ "text": null,
365
+ "date": "2017-10-16T15:49:29Z",
366
+ "user": {
367
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
368
+ "name": "Austin Andrews",
369
+ "github": "templarian",
370
+ "twitter": "Templarian"
371
+ },
372
+ "icon": {
373
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
374
+ "name": "icon-name",
375
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
376
+ "user": {
377
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
378
+ "name": "First Last",
379
+ "github": "GitHubUser",
380
+ "twitter": "TwitterName"
381
+ }
382
+ },
383
+ "issue": 42
384
+ },
385
+ {
386
+ "id": "c2acb992-b352-11e7-bf5c-94188269ec50",
387
+ "modificationId": "brokenf-bfed-11e9-8ca0-94188269ec50",
388
+ "packageId": "38EF63D0-4744-11E4-B3CF-842B2B6CFE1B",
389
+ "iconNameBefore": null,
390
+ "iconNameAfter": null,
391
+ "iconDescriptionBefore": null,
392
+ "iconDescriptionAfter": null,
393
+ "iconDataBefore": null,
394
+ "iconDataAfter": null,
395
+ "text": "invalid type, this modification id is supposed to break!",
396
+ "date": "2017-10-16T15:49:29Z",
397
+ "user": {
398
+ "id": "c4ea5584-07e3-11e4-bf19-842b2b6cfe1b",
399
+ "name": "Austin Andrews",
400
+ "github": "templarian",
401
+ "twitter": "Templarian"
402
+ },
403
+ "icon": {
404
+ "id": "AB147073-9D20-4DA1-A108-3856FC1764C1",
405
+ "name": "icon-name",
406
+ "data": "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",
407
+ "user": {
408
+ "id": "79c44334-2d86-11e5-8ac4-842b2b6cfe1b",
409
+ "name": "First Last",
410
+ "github": "GitHubUser",
411
+ "twitter": "TwitterName"
412
+ }
413
+ },
414
+ "issue": 42
415
+ }
416
+ ];
@@ -0,0 +1,3 @@
1
+ import PgModification from './modification';
2
+
3
+ export default PgModification;