commons-shared-web-ui 0.0.55 → 0.0.57

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 (223) hide show
  1. package/fesm2022/commons-shared-web-ui.mjs +15897 -0
  2. package/fesm2022/commons-shared-web-ui.mjs.map +1 -0
  3. package/index.d.ts +4916 -0
  4. package/package.json +34 -53
  5. package/src/lib/modules/button/button.theme.scss +4 -4
  6. package/.claude/settings.local.json +0 -10
  7. package/documentation/alert.md +0 -123
  8. package/documentation/button-dropdown.md +0 -126
  9. package/documentation/button.md +0 -184
  10. package/documentation/cards-usage-guidelines.md +0 -131
  11. package/documentation/configurable-form.md +0 -605
  12. package/documentation/confirmation-modal.md +0 -250
  13. package/documentation/filter-sidebar.md +0 -178
  14. package/documentation/filter-table-selector.md +0 -228
  15. package/documentation/form-builder.md +0 -599
  16. package/documentation/form-components.md +0 -384
  17. package/documentation/form-field-configuration.md +0 -250
  18. package/documentation/nav.md +0 -427
  19. package/documentation/pagination.md +0 -181
  20. package/documentation/side-nav-documentation.md +0 -169
  21. package/documentation/smart-form.md +0 -2765
  22. package/documentation/smart-table.md +0 -1221
  23. package/documentation/snackbar.md +0 -118
  24. package/documentation/style-externalization.md +0 -88
  25. package/documentation/summary-card.md +0 -279
  26. package/documentation/table-column-configuration.md +0 -221
  27. package/documentation/time-picker.md +0 -274
  28. package/ng-package.json +0 -30
  29. package/src/lib/modules/alert/alert.models.ts +0 -6
  30. package/src/lib/modules/alert/alert.module.ts +0 -16
  31. package/src/lib/modules/alert/components/alert/alert.component.html +0 -27
  32. package/src/lib/modules/alert/components/alert/alert.component.scss +0 -92
  33. package/src/lib/modules/alert/components/alert/alert.component.ts +0 -81
  34. package/src/lib/modules/button/button.models.ts +0 -13
  35. package/src/lib/modules/button/button.module.ts +0 -16
  36. package/src/lib/modules/button/components/button/button.component.html +0 -22
  37. package/src/lib/modules/button/components/button/button.component.scss +0 -88
  38. package/src/lib/modules/button/components/button/button.component.ts +0 -67
  39. package/src/lib/modules/button-dropdown/button-dropdown.models.ts +0 -26
  40. package/src/lib/modules/button-dropdown/button-dropdown.module.ts +0 -22
  41. package/src/lib/modules/button-dropdown/components/button-dropdown/button-dropdown.component.html +0 -41
  42. package/src/lib/modules/button-dropdown/components/button-dropdown/button-dropdown.component.scss +0 -135
  43. package/src/lib/modules/button-dropdown/components/button-dropdown/button-dropdown.component.ts +0 -160
  44. package/src/lib/modules/configurable-form/component/configurable-form.component.html +0 -294
  45. package/src/lib/modules/configurable-form/component/configurable-form.component.scss +0 -503
  46. package/src/lib/modules/configurable-form/component/configurable-form.component.ts +0 -628
  47. package/src/lib/modules/configurable-form/configurable-form.examples.ts +0 -154
  48. package/src/lib/modules/configurable-form/configurable-form.model.ts +0 -131
  49. package/src/lib/modules/configurable-form/configurable-form.module.ts +0 -19
  50. package/src/lib/modules/confirmation-modal/components/confirmation-modal/confirmation-modal.component.html +0 -77
  51. package/src/lib/modules/confirmation-modal/components/confirmation-modal/confirmation-modal.component.scss +0 -395
  52. package/src/lib/modules/confirmation-modal/components/confirmation-modal/confirmation-modal.component.ts +0 -266
  53. package/src/lib/modules/confirmation-modal/confirmation-modal.models.ts +0 -71
  54. package/src/lib/modules/confirmation-modal/confirmation-modal.module.ts +0 -20
  55. package/src/lib/modules/filter/components/filter/filter.component.html +0 -131
  56. package/src/lib/modules/filter/components/filter/filter.component.scss +0 -245
  57. package/src/lib/modules/filter/components/filter/filter.component.ts +0 -216
  58. package/src/lib/modules/filter/filter.models.ts +0 -88
  59. package/src/lib/modules/filter/filter.module.ts +0 -24
  60. package/src/lib/modules/filter-sidebar/components/filter-sidebar/filter-sidebar.component.html +0 -112
  61. package/src/lib/modules/filter-sidebar/components/filter-sidebar/filter-sidebar.component.scss +0 -186
  62. package/src/lib/modules/filter-sidebar/components/filter-sidebar/filter-sidebar.component.ts +0 -163
  63. package/src/lib/modules/filter-sidebar/filter-sidebar.models.ts +0 -95
  64. package/src/lib/modules/filter-sidebar/filter-sidebar.module.ts +0 -24
  65. package/src/lib/modules/filter-table-selector/components/filter-table-selector/filter-table-selector.component.html +0 -73
  66. package/src/lib/modules/filter-table-selector/components/filter-table-selector/filter-table-selector.component.scss +0 -321
  67. package/src/lib/modules/filter-table-selector/components/filter-table-selector/filter-table-selector.component.ts +0 -361
  68. package/src/lib/modules/filter-table-selector/filter-table-selector.models.ts +0 -91
  69. package/src/lib/modules/filter-table-selector/filter-table-selector.module.ts +0 -22
  70. package/src/lib/modules/form-builder/components/field-configurator/configurator-config-panel/configurator-config-panel.component.html +0 -63
  71. package/src/lib/modules/form-builder/components/field-configurator/configurator-config-panel/configurator-config-panel.component.scss +0 -496
  72. package/src/lib/modules/form-builder/components/field-configurator/configurator-config-panel/configurator-config-panel.component.ts +0 -445
  73. package/src/lib/modules/form-builder/components/field-configurator/configurator-tree/configurator-tree.component.html +0 -75
  74. package/src/lib/modules/form-builder/components/field-configurator/configurator-tree/configurator-tree.component.scss +0 -210
  75. package/src/lib/modules/form-builder/components/field-configurator/configurator-tree/configurator-tree.component.ts +0 -55
  76. package/src/lib/modules/form-builder/components/field-configurator/field-configurator.component.html +0 -25
  77. package/src/lib/modules/form-builder/components/field-configurator/field-configurator.component.scss +0 -82
  78. package/src/lib/modules/form-builder/components/field-configurator/field-configurator.component.ts +0 -95
  79. package/src/lib/modules/form-builder/components/field-selection/field-selection.component.html +0 -20
  80. package/src/lib/modules/form-builder/components/field-selection/field-selection.component.scss +0 -37
  81. package/src/lib/modules/form-builder/components/field-selection/field-selection.component.ts +0 -94
  82. package/src/lib/modules/form-builder/components/field-selection/group-node/group-node.component.html +0 -46
  83. package/src/lib/modules/form-builder/components/field-selection/group-node/group-node.component.scss +0 -102
  84. package/src/lib/modules/form-builder/components/field-selection/group-node/group-node.component.ts +0 -50
  85. package/src/lib/modules/form-builder/components/field-selection/selection-field-node/selection-field-node.component.html +0 -35
  86. package/src/lib/modules/form-builder/components/field-selection/selection-field-node/selection-field-node.component.scss +0 -67
  87. package/src/lib/modules/form-builder/components/field-selection/selection-field-node/selection-field-node.component.ts +0 -34
  88. package/src/lib/modules/form-builder/components/field-selection/selection-section-node/selection-section-node.component.html +0 -68
  89. package/src/lib/modules/form-builder/components/field-selection/selection-section-node/selection-section-node.component.scss +0 -113
  90. package/src/lib/modules/form-builder/components/field-selection/selection-section-node/selection-section-node.component.ts +0 -74
  91. package/src/lib/modules/form-builder/configs/field-type-schema.map.ts +0 -533
  92. package/src/lib/modules/form-builder/form-builder.module.ts +0 -36
  93. package/src/lib/modules/form-builder/index.ts +0 -9
  94. package/src/lib/modules/form-builder/models/builder.models.ts +0 -7
  95. package/src/lib/modules/form-builder/models/field-configurator.models.ts +0 -38
  96. package/src/lib/modules/form-builder/models/field-selection.models.ts +0 -51
  97. package/src/lib/modules/form-builder/services/field-configurator.service.ts +0 -258
  98. package/src/lib/modules/form-builder/services/field-selection.service.ts +0 -299
  99. package/src/lib/modules/form-builder/services/form-schema-tree.service.ts +0 -670
  100. package/src/lib/modules/form-builder/tokens/builder.tokens.ts +0 -10
  101. package/src/lib/modules/form-builder/utils/constants.ts +0 -43
  102. package/src/lib/modules/form-components/components/checkbox/checkbox.component.html +0 -29
  103. package/src/lib/modules/form-components/components/checkbox/checkbox.component.scss +0 -111
  104. package/src/lib/modules/form-components/components/checkbox/checkbox.component.ts +0 -207
  105. package/src/lib/modules/form-components/components/checkbox/checkbox.models.ts +0 -35
  106. package/src/lib/modules/form-components/components/datepicker/datepicker.component.html +0 -42
  107. package/src/lib/modules/form-components/components/datepicker/datepicker.component.scss +0 -115
  108. package/src/lib/modules/form-components/components/datepicker/datepicker.component.ts +0 -267
  109. package/src/lib/modules/form-components/components/datepicker/datepicker.models.ts +0 -45
  110. package/src/lib/modules/form-components/components/dropdown/dropdown.component.html +0 -74
  111. package/src/lib/modules/form-components/components/dropdown/dropdown.component.scss +0 -252
  112. package/src/lib/modules/form-components/components/dropdown/dropdown.component.ts +0 -377
  113. package/src/lib/modules/form-components/components/dropdown/dropdown.models.ts +0 -53
  114. package/src/lib/modules/form-components/components/input/input.component.html +0 -51
  115. package/src/lib/modules/form-components/components/input/input.component.scss +0 -128
  116. package/src/lib/modules/form-components/components/input/input.component.ts +0 -250
  117. package/src/lib/modules/form-components/components/input/input.models.ts +0 -55
  118. package/src/lib/modules/form-components/components/radio/radio.component.html +0 -22
  119. package/src/lib/modules/form-components/components/radio/radio.component.scss +0 -107
  120. package/src/lib/modules/form-components/components/radio/radio.component.ts +0 -181
  121. package/src/lib/modules/form-components/components/radio/radio.models.ts +0 -39
  122. package/src/lib/modules/form-components/components/search/search.component.html +0 -15
  123. package/src/lib/modules/form-components/components/search/search.component.scss +0 -87
  124. package/src/lib/modules/form-components/components/search/search.component.ts +0 -213
  125. package/src/lib/modules/form-components/components/search/search.models.ts +0 -40
  126. package/src/lib/modules/form-components/components/toggle/toggle.component.html +0 -15
  127. package/src/lib/modules/form-components/components/toggle/toggle.component.scss +0 -81
  128. package/src/lib/modules/form-components/components/toggle/toggle.component.ts +0 -166
  129. package/src/lib/modules/form-components/components/toggle/toggle.models.ts +0 -27
  130. package/src/lib/modules/form-components/directives/click-outside.directive.ts +0 -22
  131. package/src/lib/modules/form-components/form-components.module.ts +0 -42
  132. package/src/lib/modules/form-field-configuration/components/_ffc-controls.scss +0 -89
  133. package/src/lib/modules/form-field-configuration/components/config-field-node/config-field-node.component.html +0 -68
  134. package/src/lib/modules/form-field-configuration/components/config-field-node/config-field-node.component.scss +0 -73
  135. package/src/lib/modules/form-field-configuration/components/config-field-node/config-field-node.component.ts +0 -34
  136. package/src/lib/modules/form-field-configuration/components/config-section-node/config-section-node.component.html +0 -78
  137. package/src/lib/modules/form-field-configuration/components/config-section-node/config-section-node.component.scss +0 -83
  138. package/src/lib/modules/form-field-configuration/components/config-section-node/config-section-node.component.ts +0 -94
  139. package/src/lib/modules/form-field-configuration/components/form-field-configuration/form-field-configuration.component.html +0 -38
  140. package/src/lib/modules/form-field-configuration/components/form-field-configuration/form-field-configuration.component.scss +0 -42
  141. package/src/lib/modules/form-field-configuration/components/form-field-configuration/form-field-configuration.component.ts +0 -92
  142. package/src/lib/modules/form-field-configuration/form-field-configuration.module.ts +0 -23
  143. package/src/lib/modules/form-field-configuration/index.ts +0 -7
  144. package/src/lib/modules/form-field-configuration/models/field-configuration.models.ts +0 -62
  145. package/src/lib/modules/form-field-configuration/services/config-schema-tree.service.ts +0 -159
  146. package/src/lib/modules/form-field-configuration/services/field-configuration.service.ts +0 -228
  147. package/src/lib/modules/material/material.module.ts +0 -94
  148. package/src/lib/modules/nav/components/nav/nav.component.html +0 -34
  149. package/src/lib/modules/nav/components/nav/nav.component.scss +0 -171
  150. package/src/lib/modules/nav/components/nav/nav.component.ts +0 -82
  151. package/src/lib/modules/nav/nav.models.ts +0 -31
  152. package/src/lib/modules/nav/nav.module.ts +0 -17
  153. package/src/lib/modules/pagination/components/pagination/pagination.component.html +0 -52
  154. package/src/lib/modules/pagination/components/pagination/pagination.component.scss +0 -155
  155. package/src/lib/modules/pagination/components/pagination/pagination.component.ts +0 -109
  156. package/src/lib/modules/pagination/pagination.module.ts +0 -17
  157. package/src/lib/modules/side-nav/components/side-nav/side-nav.component.html +0 -56
  158. package/src/lib/modules/side-nav/components/side-nav/side-nav.component.scss +0 -342
  159. package/src/lib/modules/side-nav/components/side-nav/side-nav.component.ts +0 -135
  160. package/src/lib/modules/side-nav/side-nav.models.ts +0 -38
  161. package/src/lib/modules/side-nav/side-nav.module.ts +0 -16
  162. package/src/lib/modules/smart-form/components/form-field/form-field.component.html +0 -1330
  163. package/src/lib/modules/smart-form/components/form-field/form-field.component.scss +0 -2112
  164. package/src/lib/modules/smart-form/components/form-field/form-field.component.ts +0 -3006
  165. package/src/lib/modules/smart-form/components/form-section/form-section.component.html +0 -65
  166. package/src/lib/modules/smart-form/components/form-section/form-section.component.scss +0 -209
  167. package/src/lib/modules/smart-form/components/form-section/form-section.component.ts +0 -131
  168. package/src/lib/modules/smart-form/components/smart-form/smart-form.component.html +0 -253
  169. package/src/lib/modules/smart-form/components/smart-form/smart-form.component.scss +0 -689
  170. package/src/lib/modules/smart-form/components/smart-form/smart-form.component.ts +0 -1131
  171. package/src/lib/modules/smart-form/index.ts +0 -10
  172. package/src/lib/modules/smart-form/models/form-schema.model.ts +0 -793
  173. package/src/lib/modules/smart-form/models/hierarchy-config.model.ts +0 -21
  174. package/src/lib/modules/smart-form/services/expression.service.ts +0 -75
  175. package/src/lib/modules/smart-form/services/smart-form-controller.service.ts +0 -67
  176. package/src/lib/modules/smart-form/smart-form.examples.ts +0 -1324
  177. package/src/lib/modules/smart-form/smart-form.module.ts +0 -38
  178. package/src/lib/modules/smart-form/utils/translation.utils.ts +0 -82
  179. package/src/lib/modules/smart-form/utils/trusted-url.pipe.ts +0 -25
  180. package/src/lib/modules/smart-form/utils/validation.utils.ts +0 -98
  181. package/src/lib/modules/smart-table/components/smart-table/smart-table.component.html +0 -283
  182. package/src/lib/modules/smart-table/components/smart-table/smart-table.component.scss +0 -685
  183. package/src/lib/modules/smart-table/components/smart-table/smart-table.component.ts +0 -1128
  184. package/src/lib/modules/smart-table/models/table-config.model.ts +0 -213
  185. package/src/lib/modules/smart-table/smart-table.module.ts +0 -30
  186. package/src/lib/modules/smart-table/utils/safe-html.pipe.ts +0 -28
  187. package/src/lib/modules/smart-table/utils/smart-table.utils.ts +0 -18
  188. package/src/lib/modules/snackbar/components/snackbar.component.html +0 -41
  189. package/src/lib/modules/snackbar/components/snackbar.component.scss +0 -99
  190. package/src/lib/modules/snackbar/components/snackbar.component.ts +0 -18
  191. package/src/lib/modules/snackbar/models/snackbar.models.ts +0 -10
  192. package/src/lib/modules/snackbar/services/snackbar.service.ts +0 -40
  193. package/src/lib/modules/snackbar/snackbar.module.ts +0 -11
  194. package/src/lib/modules/summary-card/components/summary-card/summary-card.component.html +0 -47
  195. package/src/lib/modules/summary-card/components/summary-card/summary-card.component.scss +0 -199
  196. package/src/lib/modules/summary-card/components/summary-card/summary-card.component.ts +0 -126
  197. package/src/lib/modules/summary-card/summary-card.module.ts +0 -18
  198. package/src/lib/modules/table-column-configuration/components/_tcc-controls.scss +0 -53
  199. package/src/lib/modules/table-column-configuration/components/config-column-node/config-column-node.component.html +0 -47
  200. package/src/lib/modules/table-column-configuration/components/config-column-node/config-column-node.component.scss +0 -50
  201. package/src/lib/modules/table-column-configuration/components/config-column-node/config-column-node.component.ts +0 -33
  202. package/src/lib/modules/table-column-configuration/components/table-column-configuration/table-column-configuration.component.html +0 -30
  203. package/src/lib/modules/table-column-configuration/components/table-column-configuration/table-column-configuration.component.scss +0 -36
  204. package/src/lib/modules/table-column-configuration/components/table-column-configuration/table-column-configuration.component.ts +0 -78
  205. package/src/lib/modules/table-column-configuration/index.ts +0 -5
  206. package/src/lib/modules/table-column-configuration/models/table-column-configuration.models.ts +0 -20
  207. package/src/lib/modules/table-column-configuration/services/table-column-configuration.service.ts +0 -77
  208. package/src/lib/modules/table-column-configuration/table-column-configuration.module.ts +0 -21
  209. package/src/lib/modules/time-picker/components/time-picker/time-picker.component.html +0 -37
  210. package/src/lib/modules/time-picker/components/time-picker/time-picker.component.scss +0 -102
  211. package/src/lib/modules/time-picker/components/time-picker/time-picker.component.ts +0 -178
  212. package/src/lib/modules/time-picker/components/time-wheel-panel/time-wheel-panel.component.html +0 -78
  213. package/src/lib/modules/time-picker/components/time-wheel-panel/time-wheel-panel.component.scss +0 -226
  214. package/src/lib/modules/time-picker/components/time-wheel-panel/time-wheel-panel.component.ts +0 -595
  215. package/src/lib/modules/time-picker/models/time-picker.models.ts +0 -49
  216. package/src/lib/modules/time-picker/time-picker.module.ts +0 -23
  217. package/src/lib/shared-ui.module.ts +0 -55
  218. package/src/lib/utils/constants.ts +0 -11
  219. package/src/lib/utils/storage.utils.ts +0 -37
  220. package/src/lib/utils/string.utils.ts +0 -23
  221. package/src/lib/utils/translation.utils.ts +0 -87
  222. package/src/public-api.ts +0 -127
  223. package/tsconfig.lib.json +0 -15
package/package.json CHANGED
@@ -1,54 +1,35 @@
1
- {
2
- "name": "commons-shared-web-ui",
3
- "version": "0.0.55",
4
- "peerDependencies": {
5
- "@angular/animations": "20.3.15",
6
- "@angular/cdk": "20.2.14",
7
- "@angular/common": "20.3.15",
8
- "@angular/compiler": "20.3.15",
9
- "@angular/core": "20.3.15",
10
- "@angular/forms": "20.3.15",
11
- "@angular/material": "20.2.14",
12
- "@angular/platform-browser": "20.3.15",
13
- "@angular/platform-browser-dynamic": "20.3.15",
14
- "@angular/router": "20.3.15",
15
- "rxjs": "7.8.0",
16
- "tslib": "^2.3.0",
17
- "zone.js": "~0.14.0 || ~0.15.0",
18
- "ngx-quill": "^28.0.0",
19
- "quill": "^2.0.3"
20
- },
21
- "dependencies": {
22
- "tslib": "^2.3.0"
23
- },
24
- "devDependencies": {
25
- "@angular-devkit/build-angular": "20.3.13",
26
- "@angular/animations": "20.3.15",
27
- "@angular/cdk": "20.2.14",
28
- "@angular/cli": "20.3.13",
29
- "@angular/common": "20.3.15",
30
- "@angular/compiler": "20.3.15",
31
- "@angular/compiler-cli": "20.3.15",
32
- "@angular/core": "20.3.15",
33
- "@angular/forms": "20.3.15",
34
- "@angular/material": "20.2.14",
35
- "@angular/platform-browser": "20.3.15",
36
- "@angular/platform-browser-dynamic": "20.3.15",
37
- "@angular/router": "20.3.15",
38
- "@types/jasmine": "~3.10.0",
39
- "@types/node": "^20.11.1",
40
- "jasmine-core": "~4.0.0",
41
- "karma": "^6.4.4",
42
- "karma-chrome-launcher": "~3.1.0",
43
- "karma-coverage": "~2.1.0",
44
- "karma-jasmine": "~4.0.0",
45
- "karma-jasmine-html-reporter": "~1.7.0",
46
- "ng-packagr": "^20.0.0",
47
- "rxjs": "7.8.0",
48
- "typescript": "^5.9.3",
49
- "zone.js": "~0.15.0"
50
- },
51
- "scripts": {
52
- "build": "ng-packagr -p ng-package.json"
53
- }
1
+ {
2
+ "name": "commons-shared-web-ui",
3
+ "version": "0.0.57",
4
+ "peerDependencies": {
5
+ "@angular/animations": "20.3.15",
6
+ "@angular/cdk": "20.2.14",
7
+ "@angular/common": "20.3.15",
8
+ "@angular/compiler": "20.3.15",
9
+ "@angular/core": "20.3.15",
10
+ "@angular/forms": "20.3.15",
11
+ "@angular/material": "20.2.14",
12
+ "@angular/platform-browser": "20.3.15",
13
+ "@angular/platform-browser-dynamic": "20.3.15",
14
+ "@angular/router": "20.3.15",
15
+ "rxjs": "7.8.0",
16
+ "zone.js": "~0.14.0 || ~0.15.0",
17
+ "ngx-quill": "^28.0.0",
18
+ "quill": "^2.0.3"
19
+ },
20
+ "dependencies": {
21
+ "tslib": "^2.3.0"
22
+ },
23
+ "module": "fesm2022/commons-shared-web-ui.mjs",
24
+ "typings": "index.d.ts",
25
+ "exports": {
26
+ "./package.json": {
27
+ "default": "./package.json"
28
+ },
29
+ ".": {
30
+ "types": "./index.d.ts",
31
+ "default": "./fesm2022/commons-shared-web-ui.mjs"
32
+ }
33
+ },
34
+ "sideEffects": false
54
35
  }
@@ -20,14 +20,14 @@ $default-button-config: (
20
20
  // Warning (Yellow)
21
21
  warning-bg: #F9C80E,
22
22
  warning-color: #000000,
23
- warning-radius: 0.25rem,
23
+ warning-radius: 0.5rem,
24
24
  // 4px
25
25
  warning-border: none,
26
26
 
27
27
  // Outline (Grey Outline)
28
28
  outline-bg: transparent,
29
29
  outline-color: #000000,
30
- outline-radius: 0.25rem,
30
+ outline-radius: 0.5rem,
31
31
  // 4px
32
32
  outline-border: 0.0625rem solid #BDC1C6,
33
33
  // 1px solid
@@ -35,7 +35,7 @@ $default-button-config: (
35
35
  // Secondary (Light Grey)
36
36
  secondary-bg: #E8EAED,
37
37
  secondary-color: #000000,
38
- secondary-radius: 0.25rem,
38
+ secondary-radius: 0.5rem,
39
39
  // 4px
40
40
  secondary-border: none,
41
41
 
@@ -49,7 +49,7 @@ $default-button-config: (
49
49
  // Danger (Red)
50
50
  danger-bg: #E63E30,
51
51
  danger-color: #FFFFFF,
52
- danger-radius: 0.25rem,
52
+ danger-radius: 0.5rem,
53
53
  // 4px
54
54
  danger-border: none,
55
55
 
@@ -1,10 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npx ng *)",
5
- "Read(//d/work/remote-mfe-codegen/center-management/**)",
6
- "Read(//d/work/remote-mfe-codegen/center-management/src/app/modules/features/center-detail/**)",
7
- "Read(//d/work/remote-mfe-codegen/center-management/src/app/modules/features/add-center-type/add-center-type-navigator/lc-master-form/**)"
8
- ]
9
- }
10
- }
@@ -1,123 +0,0 @@
1
- # Alert Component
2
-
3
- A customizable alert component that supports standard variants and full style overrides, now with flexible icon support.
4
-
5
- ## Installation
6
-
7
- To install the latest version of the `commons-shared-web-ui` library, run the following command:
8
-
9
- ```bash
10
- npm install commons-shared-web-ui@latest
11
- ```
12
-
13
- 1. Import `AlertModule` in your feature module:
14
-
15
- ```typescript
16
- import { AlertModule } from "commons-shared-web-ui";
17
-
18
- @NgModule({
19
- imports: [AlertModule],
20
- })
21
- export class FeatureModule {}
22
- ```
23
-
24
- 2. Include the theme mixin in your global styles:
25
-
26
- ```scss
27
- @use "commons-shared-web-ui/lib/modules/alert/alert.theme" as alert;
28
-
29
- // Default Theme
30
- :root {
31
- @include alert.alert-theme();
32
- }
33
-
34
- // Custom Theme Override
35
- .custom-theme {
36
- @include alert.alert-theme(
37
- (
38
- info-bg: #e8f0fe,
39
- warning-title-color: #e65100,
40
- )
41
- );
42
- }
43
- ```
44
-
45
- ### Configuration Key Reference
46
-
47
- The `alert-theme` mixin accepts a map with the following optional keys.
48
-
49
- | Key | Default | Description |
50
- | ---------------- | ------------------------ | ------------------------------------ |
51
- | **font-family** | `('Roboto', sans-serif)` | Font stack for the alerts. |
52
- | **padding** | `1rem 2rem` | Internal padding (16px 32px). |
53
- | **radius** | `0.75rem` | Border radius (12px). |
54
- | **gap** | `1rem` | Gap between icon and content (16px). |
55
- | **icon-size** | `1.25rem` | Size of the icon (20px). |
56
- | **title-size** | `1rem` | Font size of the title (16px). |
57
- | **message-size** | `0.875rem` | Font size of the message (14px). |
58
- | **info-bg** | `#F1F3F4` | Background for info variant. |
59
- | **warning-bg** | `#F9C80E1F` | Background for warning variant. |
60
- | **success-bg** | `#E6F4EA` | Background for success variant. |
61
- | **error-bg** | `#FCE8E6` | Background for error variant. |
62
-
63
- ---
64
-
65
- ## Usage & Examples
66
-
67
- ### 1. Standard Variants
68
-
69
- ```html
70
- <lib-alert variant="info">This is an info alert</lib-alert>
71
- <lib-alert variant="warning">This is a warning alert</lib-alert>
72
- <lib-alert variant="success">This is a success alert</lib-alert>
73
- <lib-alert variant="error">This is an error alert</lib-alert>
74
- ```
75
-
76
- ### 2. Custom Icons
77
-
78
- The alert supports automatic image detection for strings containing path separators or extensions.
79
-
80
- ```html
81
- <!-- FontAwesome -->
82
- <lib-alert icon="fa-solid fa-bell">Custom Bell Icon</lib-alert>
83
-
84
- <!-- Auto-detected Image (String) -->
85
- <lib-alert icon="assets/icons/custom-alert.svg">Image from path</lib-alert>
86
-
87
- <!-- Material Icon (Object) -->
88
- <lib-alert [icon]="{ type: 'material', value: 'check_circle' }"
89
- >Material Icon</lib-alert
90
- >
91
- ```
92
-
93
- ### 3. Styled Instance
94
-
95
- ```html
96
- <lib-alert
97
- variant="warning"
98
- title="Attention Required"
99
- borderRadius="0"
100
- backgroundColor="#FFF9C4"
101
- borderColor="#FBC02D"
102
- >
103
- This is a highly customized warning alert.
104
- </lib-alert>
105
- ```
106
-
107
- ## API Reference
108
-
109
- ### Inputs
110
-
111
- | Input | Type | Default | Description |
112
- | ----------------- | --------------------------------- | -------- | ------------------------------------------- |
113
- | `variant` | `AlertVariant` | `'info'` | Visual style variant. |
114
- | `title` | `string` | `''` | Optional title. |
115
- | `message` | `string` | `''` | Main message content. |
116
- | `icon` | `boolean \| string \| IconConfig` | `true` | Icon config. Supports auto-image detection. |
117
- | `customIcon` | `string` | `''` | Custom CSS class for icon. |
118
- | `width` | `string` | - | CSS width override. |
119
- | `borderRadius` | `string` | - | CSS border-radius override. |
120
- | `padding` | `string` | - | CSS padding override. |
121
- | `backgroundColor` | `string` | - | CSS background-color override. |
122
- | `fontSize` | `string` | - | CSS font-size override. |
123
- | `boxShadow` | `string` | - | CSS box-shadow override. |
@@ -1,126 +0,0 @@
1
- # Button Dropdown Component
2
-
3
- The `ButtonDropdownComponent` (`<lib-button-dropdown>`) groups multiple actions under a single primary button. It perfectly mimics the behavior of the Smart Table's action menu, allowing you to use it on generic detail pages or custom headers.
4
-
5
- ## Installation
6
-
7
- Import the `ButtonDropdownModule` into your feature module. Note that this is separate from the standard `ButtonModule` to support advanced routing and modal integrations.
8
-
9
- ```typescript
10
- import { ButtonDropdownModule } from "commons-shared-web-ui";
11
-
12
- @NgModule({
13
- imports: [
14
- ButtonDropdownModule,
15
- // ...
16
- ],
17
- })
18
- export class MyFeatureModule {}
19
- ```
20
-
21
- ## Basic Usage
22
-
23
- The component looks and acts like a normal `<lib-button>` until clicked, at which point it opens a floating menu list of `actions`.
24
-
25
- ### Component
26
-
27
- ```typescript
28
- import { DropdownAction } from "commons-shared-web-ui";
29
-
30
- export class MyComponent {
31
- userRecord = { id: 123, name: "John Doe" };
32
-
33
- dropdownActions: DropdownAction[] = [
34
- {
35
- label: "Duplicate",
36
- icon: "fa fa-copy",
37
- type: "callback",
38
- callback: (data) => this.duplicateRecord(data),
39
- },
40
- {
41
- label: "Edit",
42
- icon: "fa fa-edit",
43
- type: "route",
44
- route: "/users/:id/edit", // :id automatically replaced by userRecord.id
45
- },
46
- {
47
- label: "Delete",
48
- icon: "fa fa-trash",
49
- type: "api",
50
- color: "red", // Highlights the text/icon in red and adds a red hover state
51
- apiUrl: "https://api.example.com/users/:id",
52
- apiMethod: "DELETE",
53
- confirmationNeeded: true,
54
- confirmationMessage: "Are you sure you want to delete this user?",
55
- },
56
- ];
57
-
58
- duplicateRecord(user: any) {
59
- console.log("Duplicating", user);
60
- }
61
- }
62
- ```
63
-
64
- ### Template
65
-
66
- ```html
67
- <lib-button-dropdown
68
- label="Actions"
69
- variant="warning"
70
- menuTheme="dark"
71
- icon="fa fa-chevron-down"
72
- [actions]="dropdownActions"
73
- [data]="userRecord"
74
- ></lib-button-dropdown>
75
- ```
76
-
77
- ## API Reference
78
-
79
- ### Inputs
80
-
81
- | Input | Type | Default | Description |
82
- | ------------ | ----------------- | ---------------------- | -------------------------------------------------------------------- |
83
- | `label` | `string` | `'Actions'` | The main text displayed on the button. |
84
- | `variant` | `ButtonVariant` | `'primary'` | The style variant for the toggle button itself. |
85
- | `menuTheme` | `'light'\|'dark'` | `'light'` | Toggles the dropdown menu background and text between light/dark. |
86
- | `icon` | `string` | `'fa fa-chevron-down'` | FontAwesome or Material icon class for the button. |
87
- | `actions` | `DropdownAction[]`| `[]` | Array of action configurations to display in the menu. |
88
- | `data` | `any` | `null` | Context data passed to route parameter parsing or callback methods. |
89
- | `disabled` | `boolean` | `false` | Disables the entire dropdown button. |
90
-
91
- ### DropdownAction Interface
92
-
93
- | Property | Type | Description |
94
- | --------------------- | ------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
95
- | `label` | `string` | Display text for the menu item. |
96
- | `type` | `'api' \| 'route' \| 'callback'` | The execution behavior of the item. |
97
- | `icon` | `string` | (Optional) Icon class for the item (e.g., `fa fa-edit`). |
98
- | `variant` | `ButtonVariant` | (Optional) Applies full variant styles (primary, warning, danger, etc.) to the item block. |
99
- | `color` | `string` | (Optional) Generic text color for the item. Using `'red'` triggers a destructive style. |
100
- | `disabled` | `boolean` | (Optional) Disables this specific item. |
101
- | `route` | `string` | (Required for `type: 'route'`) Internal path. Replaces `:prop` with `data[prop]`. |
102
- | `apiUrl` | `string` | (Required for `type: 'api'`) External URL. Replaces `:prop` with `data[prop]`. |
103
- | `apiMethod` | `'GET' \| 'POST' \| 'PUT' \| 'DELETE' \| 'PATCH'` | (Optional) HTTP method for `api` type. Default is `GET`. |
104
- | `apiPayload` | `any` | (Optional) Body payload for POST/PUT/PATCH. Defaults to `data` if not provided. |
105
- | `callback` | `(data: any) => void` | (Required for `type: 'callback'`) Function to execute. |
106
- | `confirmationNeeded` | `boolean` | (Optional) Triggers a confirmation modal before execution. |
107
- | `confirmationTitle` | `string` | (Optional) Title for the confirmation modal. Default: `'Please Confirm'`. |
108
- | `confirmationMessage` | `string` | (Optional) Message for the confirmation modal. |
109
-
110
- ### Outputs
111
-
112
- | Output | Payload | Description |
113
- | ------------------ | ---------------------------------------------- | -------------------------------------------------------------------- |
114
- | `actionClick` | `{ action: DropdownAction, data: any }` | Emitted when any item is clicked (after confirmation if applicable). |
115
- | `apiActionStart` | `DropdownAction` | Emitted when an `api` type action begins execution. |
116
- | `apiActionSuccess` | `{ action: DropdownAction, response: any }` | Emitted upon successful HTTP execution. |
117
- | `apiActionError` | `{ action: DropdownAction, error: any }` | Emitted if the HTTP execution fails. |
118
-
119
- ## Advanced Execution
120
-
121
- Just like the Smart Table, the `ButtonDropdownComponent` takes care of executing its own events.
122
-
123
- - **Routing:** Automatically injects the Angular `Router` and executes route changes, handling parameterized `:id` replacements.
124
- - **API Calls:** If an action has `type: 'api'` and an `apiUrl`, the component constructs the HTTP call, handles payload insertion, and automatically executes the HTTP request, exposing Success/Error events you can listen to if needed.
125
- - **Confirmations:** Setting `confirmationNeeded: true` entirely intercepts the click, opens a standard `cc-confirmation-modal` overlay, and only proceeds to the route/API/callback if the user clicks "Confirm". No extra component logic is needed!
126
- - **Smart Delete Inference:** If the component detects the action is a "Delete" action (via `apiMethod: 'DELETE'`, `variant: 'danger'`, `color: 'red'`, or the word "delete" in the label), the confirmation modal automatically styles itself with a Red Warning Icon, a Red "Delete" confirm button, changes the title to "Confirm Deletion", and generates a fallback message of *"Are you sure you want to delete this item? This action cannot be undone."* if you didn't provide a Custom `confirmationMessage`!
@@ -1,184 +0,0 @@
1
- # Button Component Documentation
2
-
3
- The `ButtonComponent` is a reusable, themed button control that supports the application's design system with plug-and-play styling.
4
-
5
- ## Features
6
-
7
- - **Standard Variants**: Primary, Warning, Outline, Secondary, Success, Danger, Danger-Outline.
8
- - **Theming**: Completely externalized theming support via SCSS mixins and CSS variables.
9
- - **Independent**: No global palette dependencies.
10
- - **Customization**: Direct input overrides for one-off styling (width, radius, color, etc.).
11
-
12
- ## Installation
13
-
14
- To install the latest version of the `commons-shared-web-ui` library, run the following command:
15
-
16
- ```bash
17
- npm install commons-shared-web-ui@latest
18
- ```
19
-
20
- Import the `ButtonModule` into your feature module or `SharedModule`.
21
-
22
- ```typescript
23
- import { ButtonModule } from "commons-shared-web-ui";
24
- // Adjust path based on your library structure
25
-
26
- @NgModule({
27
- imports: [
28
- ButtonModule,
29
- // ...
30
- ],
31
- })
32
- export class MyFeatureModule {}
33
- ```
34
-
35
- ## Theming & Styling
36
-
37
- The button uses **CSS Variables**. This means you can change the theme dynamically at runtime by applying a CSS class to a parent element (or the `body`).
38
-
39
- ### 1. Import the Button Mixin
40
-
41
- In your application's styles (e.g., `styles.scss`):
42
-
43
- ```scss
44
- @use "commons-shared-web-ui/src/lib/modules/button/button.theme" as button;
45
- ```
46
-
47
- ### 2. Define Default & Custom Themes
48
-
49
- Define your themes by including the mixin with different configurations.
50
-
51
- ```scss
52
- // Default Theme (Light Mode)
53
- :root {
54
- @include button.button-theme(); // Default button styles
55
- }
56
-
57
- // Dark Theme Example
58
- .dark-theme {
59
- // Override specific vars for dark mode
60
- @include button.button-theme(
61
- (
62
- primary-bg: #ffffff,
63
- primary-color: #000000,
64
- secondary-bg: #333333,
65
- secondary-color: #ffffff,
66
- )
67
- );
68
- }
69
-
70
- // Custom Brand Theme
71
- .brand-theme {
72
- @include button.button-theme(
73
- (
74
- primary-bg: #6200ee,
75
- primary-radius: 20px,
76
- )
77
- );
78
- }
79
- ```
80
-
81
- ### 3. Switching Themes
82
-
83
- To switch themes, simply toggle the class on a parent element. The components will automatically update.
84
-
85
- ```html
86
- <!-- Default Theme -->
87
- <lib-button variant="primary">Default Button</lib-button>
88
-
89
- <!-- Dark Theme -->
90
- <div class="dark-theme">
91
- <lib-button variant="primary">Dark Mode Button</lib-button>
92
- </div>
93
- ```
94
-
95
- ### Configuration Key Reference
96
-
97
- The `button-theme` mixin accepts a map with the following optional keys. Any key not provided will fall back to its default value.
98
-
99
- | Key | Default | Description |
100
- | -------------------- | ------------------------ | ---------------------------------- |
101
- | **font-family** | `('Roboto', sans-serif)` | Font stack for the buttons. |
102
- | **font-weight** | `500` | Base font weight. |
103
- | **font-size** | `1rem` | Base font size (16px). |
104
- | **padding** | `0.5rem 1rem` | Base padding (8px 16px). |
105
- | **primary-bg** | `#262125` | Background for primary variant. |
106
- | **primary-color** | `#FFFFFF` | Text color for primary variant. |
107
- | **primary-radius** | `0.5rem` | Border radius for primary variant. |
108
- | **warning-bg** | `#F9C80E` | Background for warning variant. |
109
- | **secondary-bg** | `#E8EAED` | Background for secondary variant. |
110
- | **success-bg** | `#16A34A` | Background for success variant. |
111
- | **danger-bg** | `#E63E30` | Background for danger variant. |
112
- | **disabled-opacity** | `0.6` | Opacity when disabled. |
113
-
114
- > [!NOTE]
115
- > All variants support `-bg`, `-color`, `-radius`, and `-border` keys in the theme map.
116
-
117
- ---
118
-
119
- ## Usage & Examples
120
-
121
- ### 1. Standard Variants
122
-
123
- Pre-defined styles for common use cases.
124
-
125
- ```html
126
- <lib-button variant="primary">Primary Action</lib-button>
127
- <lib-button variant="warning">Warning</lib-button>
128
- <lib-button variant="secondary">Secondary</lib-button>
129
- <lib-button variant="outline">Outline</lib-button>
130
- <lib-button variant="success">Success</lib-button>
131
- <lib-button variant="danger">Danger</lib-button>
132
- <lib-button variant="danger-outline">Danger Outline</lib-button>
133
- ```
134
-
135
- ### 2. Flexible Icons
136
-
137
- The button supports three types of icons: FontAwesome, Material Icons, and Images.
138
-
139
- ```html
140
- <!-- FontAwesome -->
141
- <lib-button icon="fa-solid fa-plus">Add Item</lib-button>
142
-
143
- <!-- Material Icons -->
144
- <lib-button [icon]="{ type: 'material', value: 'save' }">Save</lib-button>
145
-
146
- <!-- Image Icons (Path or URL) -->
147
- <lib-button [icon]="{ type: 'img', value: 'assets/google-icon.png' }"
148
- >Login with Google</lib-button
149
- >
150
- ```
151
-
152
- ### 3. Custom Implementation (Configurable)
153
-
154
- You can customize specific instances using inputs.
155
-
156
- ```html
157
- <lib-button
158
- variant="primary"
159
- width="240px"
160
- borderRadius="50px"
161
- backgroundColor="#6200EE"
162
- >
163
- Custom Wide Button
164
- </lib-button>
165
- ```
166
-
167
- ## API Reference
168
-
169
- ### Inputs
170
-
171
- | Input | Type | Default | Description |
172
- | ----------------- | ------------------------------------------------------ | ----------- | -------------------------------------------------------- |
173
- | `variant` | `ButtonVariant` | `'primary'` | Visual style variant. |
174
- | `type` | `'button' \| 'submit' \| 'reset'` | `'button'` | HTML button type. |
175
- | `disabled` | `boolean` | `false` | Whether the button is disabled. |
176
- | `icon` | `boolean \| string \| { type: string, value: string }` | `''` | Icon configuration. Supports FA class strings or object. |
177
- | `width` | `string` | - | CSS width override. |
178
- | `height` | `string` | - | CSS height override. |
179
- | `borderRadius` | `string` | - | CSS border-radius override. |
180
- | `backgroundColor` | `string` | - | CSS background-color override. |
181
- | `color` | `string` | - | CSS text color override. |
182
- | `fontSize` | `string` | - | CSS font-size override. |
183
- | `fontWeight` | `string` | - | CSS font-weight override. |
184
- | `border` | `string` | - | CSS border override. |