@3ddv/software-division-components 1.0.0-alpha.1 → 1.0.0-alpha.3.10

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 (287) hide show
  1. package/3ddv-software-division-components.d.ts.map +1 -0
  2. package/README.md +283 -12
  3. package/backoffice/index.d.ts +2 -0
  4. package/backoffice/index.d.ts.map +1 -0
  5. package/backoffice/public-api.d.ts +2 -0
  6. package/backoffice/public-api.d.ts.map +1 -0
  7. package/backoffice/table/components/body-row/body-row.component.d.ts +9 -0
  8. package/backoffice/table/components/body-row/body-row.component.d.ts.map +1 -0
  9. package/backoffice/table/components/header-row/header-row.component.d.ts +11 -0
  10. package/backoffice/table/components/header-row/header-row.component.d.ts.map +1 -0
  11. package/backoffice/table/index.d.ts +2 -0
  12. package/backoffice/table/index.d.ts.map +1 -0
  13. package/{src/lib/backoffice/table/public-api.ts → backoffice/table/public-api.d.ts} +1 -0
  14. package/backoffice/table/public-api.d.ts.map +1 -0
  15. package/backoffice/table/table.component.d.ts +23 -0
  16. package/backoffice/table/table.component.d.ts.map +1 -0
  17. package/backoffice/table/table.service.d.ts +7 -0
  18. package/backoffice/table/table.service.d.ts.map +1 -0
  19. package/backoffice/table/types.d.ts +18 -0
  20. package/backoffice/table/types.d.ts.map +1 -0
  21. package/dvm/cart/cart.component.d.ts +8 -0
  22. package/dvm/cart/cart.component.d.ts.map +1 -0
  23. package/dvm/cart/cart.service.d.ts +7 -0
  24. package/dvm/cart/cart.service.d.ts.map +1 -0
  25. package/dvm/cart/index.d.ts +2 -0
  26. package/dvm/cart/index.d.ts.map +1 -0
  27. package/{src/lib/dvm/cart/public-api.ts → dvm/cart/public-api.d.ts} +1 -4
  28. package/dvm/cart/public-api.d.ts.map +1 -0
  29. package/dvm/cart-item/cart-item.component.d.ts +8 -0
  30. package/dvm/cart-item/cart-item.component.d.ts.map +1 -0
  31. package/dvm/cart-item/cart-item.service.d.ts +7 -0
  32. package/dvm/cart-item/cart-item.service.d.ts.map +1 -0
  33. package/dvm/cart-item/index.d.ts +2 -0
  34. package/dvm/cart-item/index.d.ts.map +1 -0
  35. package/{src/lib/dvm/cart-item/public-api.ts → dvm/cart-item/public-api.d.ts} +1 -4
  36. package/dvm/cart-item/public-api.d.ts.map +1 -0
  37. package/dvm/index.d.ts +2 -0
  38. package/dvm/index.d.ts.map +1 -0
  39. package/dvm/legend/index.d.ts +2 -0
  40. package/dvm/legend/index.d.ts.map +1 -0
  41. package/dvm/legend/legend.component.d.ts +8 -0
  42. package/dvm/legend/legend.component.d.ts.map +1 -0
  43. package/dvm/legend/legend.service.d.ts +7 -0
  44. package/dvm/legend/legend.service.d.ts.map +1 -0
  45. package/{src/lib/dvm/legend/public-api.ts → dvm/legend/public-api.d.ts} +1 -4
  46. package/dvm/legend/public-api.d.ts.map +1 -0
  47. package/dvm/loader/index.d.ts +2 -0
  48. package/dvm/loader/index.d.ts.map +1 -0
  49. package/dvm/loader/loader.component.d.ts +8 -0
  50. package/dvm/loader/loader.component.d.ts.map +1 -0
  51. package/dvm/loader/loader.service.d.ts +7 -0
  52. package/dvm/loader/loader.service.d.ts.map +1 -0
  53. package/dvm/loader/public-api.d.ts +3 -0
  54. package/dvm/loader/public-api.d.ts.map +1 -0
  55. package/dvm/popover/index.d.ts +2 -0
  56. package/dvm/popover/index.d.ts.map +1 -0
  57. package/dvm/popover/popover.component.d.ts +8 -0
  58. package/dvm/popover/popover.component.d.ts.map +1 -0
  59. package/dvm/popover/popover.service.d.ts +7 -0
  60. package/dvm/popover/popover.service.d.ts.map +1 -0
  61. package/{src/lib/dvm/loader/public-api.ts → dvm/popover/public-api.d.ts} +1 -4
  62. package/dvm/popover/public-api.d.ts.map +1 -0
  63. package/dvm/public-api.d.ts +8 -0
  64. package/dvm/public-api.d.ts.map +1 -0
  65. package/dvm/stepper/index.d.ts +2 -0
  66. package/dvm/stepper/index.d.ts.map +1 -0
  67. package/{src/lib/dvm/stepper/public-api.ts → dvm/stepper/public-api.d.ts} +1 -4
  68. package/dvm/stepper/public-api.d.ts.map +1 -0
  69. package/dvm/stepper/stepper.component.d.ts +8 -0
  70. package/dvm/stepper/stepper.component.d.ts.map +1 -0
  71. package/dvm/stepper/stepper.service.d.ts +7 -0
  72. package/dvm/stepper/stepper.service.d.ts.map +1 -0
  73. package/dvm/ticket-info-item/index.d.ts +2 -0
  74. package/dvm/ticket-info-item/index.d.ts.map +1 -0
  75. package/dvm/ticket-info-item/public-api.d.ts +3 -0
  76. package/dvm/ticket-info-item/public-api.d.ts.map +1 -0
  77. package/dvm/ticket-info-item/ticket-info-item.component.d.ts +8 -0
  78. package/dvm/ticket-info-item/ticket-info-item.component.d.ts.map +1 -0
  79. package/dvm/ticket-info-item/ticket-info-item.service.d.ts +7 -0
  80. package/dvm/ticket-info-item/ticket-info-item.service.d.ts.map +1 -0
  81. package/esm2022/3ddv-software-division-components.mjs +5 -0
  82. package/esm2022/backoffice/index.mjs +2 -0
  83. package/esm2022/backoffice/public-api.mjs +2 -0
  84. package/esm2022/backoffice/table/components/body-row/body-row.component.mjs +32 -0
  85. package/esm2022/backoffice/table/components/header-row/header-row.component.mjs +67 -0
  86. package/esm2022/backoffice/table/index.mjs +2 -0
  87. package/esm2022/backoffice/table/public-api.mjs +3 -0
  88. package/esm2022/backoffice/table/table.component.mjs +100 -0
  89. package/esm2022/backoffice/table/table.service.mjs +14 -0
  90. package/esm2022/backoffice/table/types.mjs +2 -0
  91. package/esm2022/dvm/cart/cart.component.mjs +24 -0
  92. package/esm2022/dvm/cart/cart.service.mjs +14 -0
  93. package/esm2022/dvm/cart/index.mjs +2 -0
  94. package/esm2022/dvm/cart/public-api.mjs +6 -0
  95. package/esm2022/dvm/cart-item/cart-item.component.mjs +24 -0
  96. package/esm2022/dvm/cart-item/cart-item.service.mjs +14 -0
  97. package/esm2022/dvm/cart-item/index.mjs +2 -0
  98. package/esm2022/dvm/cart-item/public-api.mjs +6 -0
  99. package/esm2022/dvm/index.mjs +2 -0
  100. package/esm2022/dvm/legend/index.mjs +2 -0
  101. package/esm2022/dvm/legend/legend.component.mjs +24 -0
  102. package/esm2022/dvm/legend/legend.service.mjs +14 -0
  103. package/esm2022/dvm/legend/public-api.mjs +6 -0
  104. package/esm2022/dvm/loader/index.mjs +2 -0
  105. package/esm2022/dvm/loader/loader.component.mjs +24 -0
  106. package/esm2022/dvm/loader/loader.service.mjs +14 -0
  107. package/esm2022/dvm/loader/public-api.mjs +6 -0
  108. package/esm2022/dvm/popover/index.mjs +2 -0
  109. package/esm2022/dvm/popover/popover.component.mjs +24 -0
  110. package/esm2022/dvm/popover/popover.service.mjs +14 -0
  111. package/esm2022/dvm/popover/public-api.mjs +6 -0
  112. package/esm2022/dvm/public-api.mjs +8 -0
  113. package/esm2022/dvm/stepper/index.mjs +2 -0
  114. package/esm2022/dvm/stepper/public-api.mjs +6 -0
  115. package/esm2022/dvm/stepper/stepper.component.mjs +24 -0
  116. package/esm2022/dvm/stepper/stepper.service.mjs +14 -0
  117. package/esm2022/dvm/ticket-info-item/index.mjs +2 -0
  118. package/esm2022/dvm/ticket-info-item/public-api.mjs +6 -0
  119. package/esm2022/dvm/ticket-info-item/ticket-info-item.component.mjs +24 -0
  120. package/esm2022/dvm/ticket-info-item/ticket-info-item.service.mjs +14 -0
  121. package/esm2022/generic/button/button.component.mjs +93 -0
  122. package/esm2022/generic/button/index.mjs +2 -0
  123. package/esm2022/generic/button/public-api.mjs +5 -0
  124. package/esm2022/generic/button/types.mjs +2 -0
  125. package/esm2022/generic/drawer/drawer.component.mjs +24 -0
  126. package/esm2022/generic/drawer/drawer.service.mjs +14 -0
  127. package/esm2022/generic/drawer/index.mjs +2 -0
  128. package/esm2022/generic/drawer/public-api.mjs +6 -0
  129. package/esm2022/generic/index.mjs +2 -0
  130. package/esm2022/generic/modal/index.mjs +2 -0
  131. package/esm2022/generic/modal/modal.component.mjs +24 -0
  132. package/esm2022/generic/modal/modal.service.mjs +14 -0
  133. package/esm2022/generic/modal/public-api.mjs +6 -0
  134. package/esm2022/generic/public-api.mjs +4 -0
  135. package/esm2022/public-api.mjs +6 -0
  136. package/esm2022/shared/format-value.pipe.mjs +28 -0
  137. package/esm2022/shared/theme-provider.directive.mjs +31 -0
  138. package/esm2022/shared/theme.service.mjs +6 -0
  139. package/esm2022/shared/types.mjs +2 -0
  140. package/esm2022/utils/validate-styles-for-component.mjs +15 -0
  141. package/fesm2022/3ddv-software-division-components.mjs +672 -0
  142. package/fesm2022/3ddv-software-division-components.mjs.map +1 -0
  143. package/generic/button/button.component.d.ts +61 -0
  144. package/generic/button/button.component.d.ts.map +1 -0
  145. package/generic/button/index.d.ts +2 -0
  146. package/generic/button/index.d.ts.map +1 -0
  147. package/generic/button/public-api.d.ts +2 -0
  148. package/generic/button/public-api.d.ts.map +1 -0
  149. package/generic/button/types.d.ts +2 -0
  150. package/generic/button/types.d.ts.map +1 -0
  151. package/generic/drawer/drawer.component.d.ts +8 -0
  152. package/generic/drawer/drawer.component.d.ts.map +1 -0
  153. package/generic/drawer/drawer.service.d.ts +7 -0
  154. package/generic/drawer/drawer.service.d.ts.map +1 -0
  155. package/generic/drawer/index.d.ts +2 -0
  156. package/generic/drawer/index.d.ts.map +1 -0
  157. package/{src/lib/generic/drawer/public-api.ts → generic/drawer/public-api.d.ts} +1 -4
  158. package/generic/drawer/public-api.d.ts.map +1 -0
  159. package/generic/index.d.ts +2 -0
  160. package/generic/index.d.ts.map +1 -0
  161. package/generic/modal/index.d.ts +2 -0
  162. package/generic/modal/index.d.ts.map +1 -0
  163. package/generic/modal/modal.component.d.ts +8 -0
  164. package/generic/modal/modal.component.d.ts.map +1 -0
  165. package/generic/modal/modal.service.d.ts +7 -0
  166. package/generic/modal/modal.service.d.ts.map +1 -0
  167. package/{src/lib/generic/modal/public-api.ts → generic/modal/public-api.d.ts} +1 -4
  168. package/generic/modal/public-api.d.ts.map +1 -0
  169. package/generic/public-api.d.ts +4 -0
  170. package/generic/public-api.d.ts.map +1 -0
  171. package/index.d.ts +6 -0
  172. package/package.json +56 -13
  173. package/public-api.d.ts +6 -0
  174. package/public-api.d.ts.map +1 -0
  175. package/shared/format-value.pipe.d.ts +10 -0
  176. package/shared/format-value.pipe.d.ts.map +1 -0
  177. package/shared/theme-provider.directive.d.ts +11 -0
  178. package/shared/theme-provider.directive.d.ts.map +1 -0
  179. package/shared/theme.service.d.ts +9 -0
  180. package/shared/theme.service.d.ts.map +1 -0
  181. package/shared/types.d.ts +2 -0
  182. package/shared/types.d.ts.map +1 -0
  183. package/utils/validate-styles-for-component.d.ts +2 -0
  184. package/utils/validate-styles-for-component.d.ts.map +1 -0
  185. package/.storybook/main.ts +0 -26
  186. package/.storybook/preview.ts +0 -20
  187. package/.storybook/tsconfig.json +0 -10
  188. package/.storybook/typings.d.ts +0 -4
  189. package/documentation.json +0 -1300
  190. package/ng-package.json +0 -7
  191. package/src/index.ts +0 -1
  192. package/src/lib/backoffice/table/index.ts +0 -1
  193. package/src/lib/backoffice/table/package.json +0 -5
  194. package/src/lib/backoffice/table/table.component.html +0 -37
  195. package/src/lib/backoffice/table/table.component.ts +0 -30
  196. package/src/lib/backoffice/table/table.service.ts +0 -10
  197. package/src/lib/backoffice/table/table.stories.ts +0 -30
  198. package/src/lib/backoffice/table/types.ts +0 -2
  199. package/src/lib/backoffice/table/utils.ts +0 -7
  200. package/src/lib/dvm/cart/cart.component.html +0 -24
  201. package/src/lib/dvm/cart/cart.component.ts +0 -14
  202. package/src/lib/dvm/cart/cart.service.ts +0 -8
  203. package/src/lib/dvm/cart/cart.stories.ts +0 -31
  204. package/src/lib/dvm/cart/index.ts +0 -1
  205. package/src/lib/dvm/cart/package.json +0 -5
  206. package/src/lib/dvm/cart-item/cart-item.component.html +0 -24
  207. package/src/lib/dvm/cart-item/cart-item.component.ts +0 -14
  208. package/src/lib/dvm/cart-item/cart-item.service.ts +0 -8
  209. package/src/lib/dvm/cart-item/cart.stories.ts +0 -31
  210. package/src/lib/dvm/cart-item/index.ts +0 -1
  211. package/src/lib/dvm/cart-item/package.json +0 -5
  212. package/src/lib/dvm/legend/index.ts +0 -1
  213. package/src/lib/dvm/legend/legend.component.html +0 -24
  214. package/src/lib/dvm/legend/legend.component.ts +0 -14
  215. package/src/lib/dvm/legend/legend.service.ts +0 -8
  216. package/src/lib/dvm/legend/legend.stories.ts +0 -31
  217. package/src/lib/dvm/legend/package.json +0 -5
  218. package/src/lib/dvm/loader/index.ts +0 -1
  219. package/src/lib/dvm/loader/loader.component.html +0 -24
  220. package/src/lib/dvm/loader/loader.component.ts +0 -14
  221. package/src/lib/dvm/loader/loader.service.ts +0 -8
  222. package/src/lib/dvm/loader/loader.stories.ts +0 -31
  223. package/src/lib/dvm/loader/package.json +0 -5
  224. package/src/lib/dvm/popover/index.ts +0 -1
  225. package/src/lib/dvm/popover/package.json +0 -5
  226. package/src/lib/dvm/popover/popover.component.html +0 -24
  227. package/src/lib/dvm/popover/popover.component.ts +0 -14
  228. package/src/lib/dvm/popover/popover.service.ts +0 -8
  229. package/src/lib/dvm/popover/popover.stories.ts +0 -31
  230. package/src/lib/dvm/popover/public-api.ts +0 -6
  231. package/src/lib/dvm/stepper/index.ts +0 -1
  232. package/src/lib/dvm/stepper/package.json +0 -5
  233. package/src/lib/dvm/stepper/stepper.component.html +0 -24
  234. package/src/lib/dvm/stepper/stepper.component.ts +0 -14
  235. package/src/lib/dvm/stepper/stepper.service.ts +0 -8
  236. package/src/lib/dvm/stepper/stepper.stories.ts +0 -31
  237. package/src/lib/dvm/ticket-info-item/index.ts +0 -1
  238. package/src/lib/dvm/ticket-info-item/package.json +0 -5
  239. package/src/lib/dvm/ticket-info-item/public-api.ts +0 -6
  240. package/src/lib/dvm/ticket-info-item/ticket-info-item.component.html +0 -24
  241. package/src/lib/dvm/ticket-info-item/ticket-info-item.component.ts +0 -14
  242. package/src/lib/dvm/ticket-info-item/ticket-info-item.service.ts +0 -8
  243. package/src/lib/dvm/ticket-info-item/ticket-info-item.stories.ts +0 -31
  244. package/src/lib/generic/button/button.component.html +0 -25
  245. package/src/lib/generic/button/button.component.scss +0 -5
  246. package/src/lib/generic/button/button.component.ts +0 -25
  247. package/src/lib/generic/button/button.service.ts +0 -8
  248. package/src/lib/generic/button/button.stories.ts +0 -117
  249. package/src/lib/generic/button/index.ts +0 -1
  250. package/src/lib/generic/button/package.json +0 -5
  251. package/src/lib/generic/button/public-api.ts +0 -6
  252. package/src/lib/generic/drawer/drawer.component.html +0 -24
  253. package/src/lib/generic/drawer/drawer.component.ts +0 -14
  254. package/src/lib/generic/drawer/drawer.service.ts +0 -8
  255. package/src/lib/generic/drawer/drawer.stories.ts +0 -31
  256. package/src/lib/generic/drawer/index.ts +0 -1
  257. package/src/lib/generic/drawer/package.json +0 -5
  258. package/src/lib/generic/modal/index.ts +0 -1
  259. package/src/lib/generic/modal/modal.component.html +0 -24
  260. package/src/lib/generic/modal/modal.component.ts +0 -14
  261. package/src/lib/generic/modal/modal.service.ts +0 -8
  262. package/src/lib/generic/modal/modal.stories.ts +0 -31
  263. package/src/lib/generic/modal/package.json +0 -5
  264. package/src/public-api.ts +0 -3
  265. package/src/stories/.eslintrc.json +0 -5
  266. package/src/stories/Configure.mdx +0 -364
  267. package/src/stories/assets/accessibility.png +0 -0
  268. package/src/stories/assets/accessibility.svg +0 -1
  269. package/src/stories/assets/addon-library.png +0 -0
  270. package/src/stories/assets/assets.png +0 -0
  271. package/src/stories/assets/avif-test-image.avif +0 -0
  272. package/src/stories/assets/context.png +0 -0
  273. package/src/stories/assets/discord.svg +0 -1
  274. package/src/stories/assets/docs.png +0 -0
  275. package/src/stories/assets/figma-plugin.png +0 -0
  276. package/src/stories/assets/github.svg +0 -1
  277. package/src/stories/assets/share.png +0 -0
  278. package/src/stories/assets/styling.png +0 -0
  279. package/src/stories/assets/testing.png +0 -0
  280. package/src/stories/assets/theming.png +0 -0
  281. package/src/stories/assets/tutorials.svg +0 -1
  282. package/src/stories/assets/youtube.svg +0 -1
  283. package/src/stories/user.ts +0 -3
  284. package/styles.scss +0 -3
  285. package/tsconfig.lib.json +0 -14
  286. package/tsconfig.lib.prod.json +0 -11
  287. package/tsconfig.spec.json +0 -15
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist",
4
- "lib": {
5
- "entryFile": "src/index.ts"
6
- }
7
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1,37 +0,0 @@
1
- <p-contextMenu #name [model]="items"></p-contextMenu>
2
-
3
- <p-table
4
- #table
5
- dataKey="id"
6
- [columns]="items"
7
- stripedRows
8
- [frozenColumns]="['code', 'name', 'category', 'quantity']"
9
- columnResizeMode="fit"
10
- [contextMenu]="name"
11
- [exportHeader]="'customExportHeader'"
12
- [tableStyle]="{ 'max-width': '50rem' }"
13
- [scrollable]
14
- scrollHeight="'flex'">
15
- <p-button icon="pi pi-external-link" label="Export" (onClick)="table.exportCSV()"></p-button>
16
- <ng-template pTemplate="caption">
17
- <div class="flex items-center justify-between">
18
- <span class="text-xl font-bold">Products</span>
19
- </div>
20
- </ng-template>
21
- <ng-template pTemplate="header" class="flex">
22
- <tr>
23
- <th>Code</th>
24
- <th>Name</th>
25
- <th>Category</th>
26
- <th>Quantity</th>
27
- </tr>
28
- </ng-template>
29
- <ng-template pTemplate="body" let-item>
30
- <tr>
31
- <td>{{ item.code }}</td>
32
- <td>{{ item.name }}</td>
33
- <td>{{ item.category }}</td>
34
- <td>{{ item.quantity }}</td>
35
- </tr>
36
- </ng-template>
37
- </p-table>
@@ -1,30 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
2
- import { ButtonModule } from 'primeng/button';
3
- import { ContextMenuModule } from 'primeng/contextmenu';
4
- import { TableModule } from 'primeng/table';
5
- import { ScrollDirection, TableSize } from './types';
6
- import { sizes } from './utils';
7
-
8
- @Component({
9
- standalone: true,
10
- selector: 'sdc-table',
11
- templateUrl: './table.component.html',
12
- imports: [TableModule, ContextMenuModule, ButtonModule],
13
- changeDetection: ChangeDetectionStrategy.OnPush,
14
- })
15
- export class TableComponent {
16
- @Input('paginator') paginator: boolean = false;
17
- @Input('value') value: Record<string, string | number | boolean | Date>[] = [];
18
- @Input('scrollDirection') scrollDirection: ScrollDirection = 'vertical';
19
-
20
- @Input('size')
21
- set size(value: TableSize) {
22
- this._primeSize = sizes[value];
23
- }
24
- public _primeSize: string = '';
25
-
26
- protected items = [
27
- { label: 'View', icon: 'pi pi-fw pi-search' },
28
- { label: 'Delete', icon: 'pi pi-fw pi-times' },
29
- ];
30
- }
@@ -1,10 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root'
5
- })
6
- export class TableService {
7
-
8
- constructor() { }
9
-
10
- }
@@ -1,30 +0,0 @@
1
- import { moduleMetadata, type Meta, type StoryObj } from '@storybook/angular';
2
- import { TableModule } from 'primeng/table';
3
- import { TableComponent } from './table.component';
4
-
5
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
6
- const meta: Meta<TableComponent> = {
7
- title: 'Backoffice/Table',
8
- decorators: [
9
- moduleMetadata({
10
- imports: [TableModule],
11
- }),
12
- ],
13
- component: TableComponent,
14
- id: 'Table',
15
- argTypes: {},
16
- // Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
17
- };
18
-
19
- export default meta;
20
- type Story = StoryObj<TableComponent>;
21
-
22
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
23
- export const Primary: Story = {
24
- args: {
25
- value: [],
26
- size: 'normal',
27
- paginator: false,
28
- scrollDirection: 'vertical',
29
- },
30
- };
@@ -1,2 +0,0 @@
1
- export type ScrollDirection = 'vertical' | 'horizontal' | 'both';
2
- export type TableSize = 'small' | 'large' | 'normal';
@@ -1,7 +0,0 @@
1
- import { TableSize } from './types';
2
-
3
- export const sizes: Record<TableSize, string> = {
4
- small: 'p-datatable-sm',
5
- large: 'p-datatable-lg',
6
- normal: 'normal',
7
- };
@@ -1,24 +0,0 @@
1
- <p-button
2
- [label]="label"
3
- [icon]="icon"
4
- [type]="type"
5
- [loading]="loading"
6
- [iconPos]="iconPos"
7
- [disabled]="disabled"
8
- [severity]="severity"
9
- [rounded]="rounded"
10
- [raised]="raised"
11
- [link]="link"
12
- [size]="size"
13
- [badge]="badge"
14
- [plain]="plain"
15
- [text]="text"
16
- [style]="style"
17
- [outlined]="outlined"
18
- [ariaLabel]="ariaLabel"
19
- [styleClass]="styleClass"
20
- [badgeClass]="badgeClass"
21
- [loadingIcon]="loadingIcon"
22
- (onClick)="onClick.emit($event)"
23
- (onFocus)="onFocus.emit($event)"
24
- (onBlur)="onBlur.emit($event)" />
@@ -1,14 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { Button, ButtonModule } from 'primeng/button';
3
-
4
- @Component({
5
- selector: 'sdc-cart',
6
- standalone: true,
7
- imports: [ButtonModule],
8
- templateUrl: './cart.component.html',
9
- })
10
- export class CartComponent extends Button {
11
- constructor() {
12
- super();
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root',
5
- })
6
- export class CartService {
7
- constructor() {}
8
- }
@@ -1,31 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { CartComponent } from './cart.component';
3
-
4
- const meta: Meta<CartComponent> = {
5
- title: 'Dvm/Cart',
6
- component: CartComponent,
7
- id: 'Cart',
8
- };
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<CartComponent>;
13
-
14
- export const Primary: Story = {
15
- args: {
16
- label: 'Primary Button',
17
- icon: 'pi pi-check',
18
- type: 'button',
19
- iconPos: 'left',
20
- disabled: false,
21
- loading: false,
22
- severity: 'primary',
23
- rounded: false,
24
- raised: true,
25
- outlined: false,
26
- link: false,
27
- size: undefined,
28
- ariaLabel: 'Primary button',
29
- style: { 'margin-right': '10px' },
30
- },
31
- };
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1,24 +0,0 @@
1
- <p-button
2
- [label]="label"
3
- [icon]="icon"
4
- [type]="type"
5
- [loading]="loading"
6
- [iconPos]="iconPos"
7
- [disabled]="disabled"
8
- [severity]="severity"
9
- [rounded]="rounded"
10
- [raised]="raised"
11
- [link]="link"
12
- [size]="size"
13
- [badge]="badge"
14
- [plain]="plain"
15
- [text]="text"
16
- [style]="style"
17
- [outlined]="outlined"
18
- [ariaLabel]="ariaLabel"
19
- [styleClass]="styleClass"
20
- [badgeClass]="badgeClass"
21
- [loadingIcon]="loadingIcon"
22
- (onClick)="onClick.emit($event)"
23
- (onFocus)="onFocus.emit($event)"
24
- (onBlur)="onBlur.emit($event)" />
@@ -1,14 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { Button, ButtonModule } from 'primeng/button';
3
-
4
- @Component({
5
- selector: 'sdc-cart-item',
6
- standalone: true,
7
- imports: [ButtonModule],
8
- templateUrl: './cart-item.component.html',
9
- })
10
- export class CartItemComponent extends Button {
11
- constructor() {
12
- super();
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root',
5
- })
6
- export class CartItemService {
7
- constructor() {}
8
- }
@@ -1,31 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { CartItemComponent } from './cart-item.component';
3
-
4
- const meta: Meta<CartItemComponent> = {
5
- title: 'Dvm/CartItem',
6
- component: CartItemComponent,
7
- id: 'CartItem',
8
- };
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<CartItemComponent>;
13
-
14
- export const Primary: Story = {
15
- args: {
16
- label: 'Primary Button',
17
- icon: 'pi pi-check',
18
- type: 'button',
19
- iconPos: 'left',
20
- disabled: false,
21
- loading: false,
22
- severity: 'primary',
23
- rounded: false,
24
- raised: true,
25
- outlined: false,
26
- link: false,
27
- size: undefined,
28
- ariaLabel: 'Primary button',
29
- style: { 'margin-right': '10px' },
30
- },
31
- };
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,24 +0,0 @@
1
- <p-button
2
- [label]="label"
3
- [icon]="icon"
4
- [type]="type"
5
- [loading]="loading"
6
- [iconPos]="iconPos"
7
- [disabled]="disabled"
8
- [severity]="severity"
9
- [rounded]="rounded"
10
- [raised]="raised"
11
- [link]="link"
12
- [size]="size"
13
- [badge]="badge"
14
- [plain]="plain"
15
- [text]="text"
16
- [style]="style"
17
- [outlined]="outlined"
18
- [ariaLabel]="ariaLabel"
19
- [styleClass]="styleClass"
20
- [badgeClass]="badgeClass"
21
- [loadingIcon]="loadingIcon"
22
- (onClick)="onClick.emit($event)"
23
- (onFocus)="onFocus.emit($event)"
24
- (onBlur)="onBlur.emit($event)" />
@@ -1,14 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { Button, ButtonModule } from 'primeng/button';
3
-
4
- @Component({
5
- selector: 'sdc-legend',
6
- standalone: true,
7
- imports: [ButtonModule],
8
- templateUrl: './legend.component.html',
9
- })
10
- export class LegendComponent extends Button {
11
- constructor() {
12
- super();
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root',
5
- })
6
- export class LegendService {
7
- constructor() {}
8
- }
@@ -1,31 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { LegendComponent } from './legend.component';
3
-
4
- const meta: Meta<LegendComponent> = {
5
- title: 'Dvm/Legend',
6
- component: LegendComponent,
7
- id: 'Legend',
8
- };
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<LegendComponent>;
13
-
14
- export const Primary: Story = {
15
- args: {
16
- label: 'Primary Button',
17
- icon: 'pi pi-check',
18
- type: 'button',
19
- iconPos: 'left',
20
- disabled: false,
21
- loading: false,
22
- severity: 'primary',
23
- rounded: false,
24
- raised: true,
25
- outlined: false,
26
- link: false,
27
- size: undefined,
28
- ariaLabel: 'Primary button',
29
- style: { 'margin-right': '10px' },
30
- },
31
- };
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,24 +0,0 @@
1
- <p-button
2
- [label]="label"
3
- [icon]="icon"
4
- [type]="type"
5
- [loading]="loading"
6
- [iconPos]="iconPos"
7
- [disabled]="disabled"
8
- [severity]="severity"
9
- [rounded]="rounded"
10
- [raised]="raised"
11
- [link]="link"
12
- [size]="size"
13
- [badge]="badge"
14
- [plain]="plain"
15
- [text]="text"
16
- [style]="style"
17
- [outlined]="outlined"
18
- [ariaLabel]="ariaLabel"
19
- [styleClass]="styleClass"
20
- [badgeClass]="badgeClass"
21
- [loadingIcon]="loadingIcon"
22
- (onClick)="onClick.emit($event)"
23
- (onFocus)="onFocus.emit($event)"
24
- (onBlur)="onBlur.emit($event)" />
@@ -1,14 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { Button, ButtonModule } from 'primeng/button';
3
-
4
- @Component({
5
- selector: 'sdc-loader',
6
- standalone: true,
7
- imports: [ButtonModule],
8
- templateUrl: './loader.component.html',
9
- })
10
- export class LoaderComponent extends Button {
11
- constructor() {
12
- super();
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root',
5
- })
6
- export class LoaderService {
7
- constructor() {}
8
- }
@@ -1,31 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { LoaderComponent } from './loader.component';
3
-
4
- const meta: Meta<LoaderComponent> = {
5
- title: 'Dvm/Loader',
6
- component: LoaderComponent,
7
- id: 'Loader',
8
- };
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<LoaderComponent>;
13
-
14
- export const Primary: Story = {
15
- args: {
16
- label: 'Primary Button',
17
- icon: 'pi pi-check',
18
- type: 'button',
19
- iconPos: 'left',
20
- disabled: false,
21
- loading: false,
22
- severity: 'primary',
23
- rounded: false,
24
- raised: true,
25
- outlined: false,
26
- link: false,
27
- size: undefined,
28
- ariaLabel: 'Primary button',
29
- style: { 'margin-right': '10px' },
30
- },
31
- };
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1,24 +0,0 @@
1
- <p-button
2
- [label]="label"
3
- [icon]="icon"
4
- [type]="type"
5
- [loading]="loading"
6
- [iconPos]="iconPos"
7
- [disabled]="disabled"
8
- [severity]="severity"
9
- [rounded]="rounded"
10
- [raised]="raised"
11
- [link]="link"
12
- [size]="size"
13
- [badge]="badge"
14
- [plain]="plain"
15
- [text]="text"
16
- [style]="style"
17
- [outlined]="outlined"
18
- [ariaLabel]="ariaLabel"
19
- [styleClass]="styleClass"
20
- [badgeClass]="badgeClass"
21
- [loadingIcon]="loadingIcon"
22
- (onClick)="onClick.emit($event)"
23
- (onFocus)="onFocus.emit($event)"
24
- (onBlur)="onBlur.emit($event)" />
@@ -1,14 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import { Button, ButtonModule } from 'primeng/button';
3
-
4
- @Component({
5
- selector: 'sdc-popover',
6
- standalone: true,
7
- imports: [ButtonModule],
8
- templateUrl: './popover.component.html',
9
- })
10
- export class PopoverComponent extends Button {
11
- constructor() {
12
- super();
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
-
3
- @Injectable({
4
- providedIn: 'root',
5
- })
6
- export class PopoverService {
7
- constructor() {}
8
- }
@@ -1,31 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/angular';
2
- import { PopoverComponent } from './popover.component';
3
-
4
- const meta: Meta<PopoverComponent> = {
5
- title: 'Dvm/Popover',
6
- component: PopoverComponent,
7
- id: 'Popover',
8
- };
9
-
10
- export default meta;
11
-
12
- type Story = StoryObj<PopoverComponent>;
13
-
14
- export const Primary: Story = {
15
- args: {
16
- label: 'Primary Button',
17
- icon: 'pi pi-check',
18
- type: 'button',
19
- iconPos: 'left',
20
- disabled: false,
21
- loading: false,
22
- severity: 'primary',
23
- rounded: false,
24
- raised: true,
25
- outlined: false,
26
- link: false,
27
- size: undefined,
28
- ariaLabel: 'Primary button',
29
- style: { 'margin-right': '10px' },
30
- },
31
- };
@@ -1,6 +0,0 @@
1
- /*
2
- * Public API Surface of software-division-components
3
- */
4
-
5
- export * from './popover.component';
6
- export * from './popover.service';
@@ -1 +0,0 @@
1
- export * from './public-api';
@@ -1,5 +0,0 @@
1
- {
2
- "ngPackage": {
3
- "entryFile": "public_api.ts"
4
- }
5
- }
@@ -1,24 +0,0 @@
1
- <p-button
2
- [label]="label"
3
- [icon]="icon"
4
- [type]="type"
5
- [loading]="loading"
6
- [iconPos]="iconPos"
7
- [disabled]="disabled"
8
- [severity]="severity"
9
- [rounded]="rounded"
10
- [raised]="raised"
11
- [link]="link"
12
- [size]="size"
13
- [badge]="badge"
14
- [plain]="plain"
15
- [text]="text"
16
- [style]="style"
17
- [outlined]="outlined"
18
- [ariaLabel]="ariaLabel"
19
- [styleClass]="styleClass"
20
- [badgeClass]="badgeClass"
21
- [loadingIcon]="loadingIcon"
22
- (onClick)="onClick.emit($event)"
23
- (onFocus)="onFocus.emit($event)"
24
- (onBlur)="onBlur.emit($event)" />