@allsorter/ui-components 0.0.367 → 0.0.370

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 (124) hide show
  1. package/fesm2022/allsorter-ui-components.mjs +2996 -1391
  2. package/fesm2022/allsorter-ui-components.mjs.map +1 -1
  3. package/images/Column left.svg +5 -0
  4. package/images/Move.svg +8 -0
  5. package/images/Success.svg +5 -0
  6. package/images/Table.svg +3 -0
  7. package/images/Vector-1.svg +3 -0
  8. package/images/Vector.svg +3 -0
  9. package/images/add-teble.svg +6 -0
  10. package/images/arrow_downward.svg +3 -0
  11. package/images/calendar_year.svg +4 -0
  12. package/images/column right.svg +5 -0
  13. package/images/delete -table.svg +6 -0
  14. package/images/delete row.svg +10 -0
  15. package/images/delete-column.svg +10 -0
  16. package/images/delete.svg +3 -0
  17. package/images/drag-drop-icon.svg +8 -0
  18. package/images/edit.svg +3 -0
  19. package/images/error.svg +5 -0
  20. package/images/row bottom.svg +5 -0
  21. package/images/row top.svg +5 -0
  22. package/images/search.svg +3 -0
  23. package/images/subrole.svg +3 -0
  24. package/images/visibility_off.svg +3 -0
  25. package/images/warning.svg +5 -0
  26. package/lib/app-toolbar/app-toolbar.component.d.ts +5 -8
  27. package/lib/app-toolbar/app-toolbar.module.d.ts +4 -4
  28. package/lib/app-toolbar-right/app-toolbar-right.component.d.ts +3 -5
  29. package/lib/button/button.component.d.ts +30 -1
  30. package/lib/candidate-section/candidate-section.component.d.ts +8 -0
  31. package/lib/custom-editor/custom-editor.component.d.ts +110 -14
  32. package/lib/custom-editor/table/table.component.d.ts +5 -0
  33. package/lib/editable-form-wrapper/editable-form-wrapper.component.d.ts +48 -0
  34. package/lib/experience-section/experience-section.component.d.ts +4 -2
  35. package/lib/general-container/general-container.component.d.ts +5 -1
  36. package/lib/icon-button/icon-button.component.d.ts +16 -7
  37. package/lib/input/input.component.d.ts +41 -10
  38. package/lib/newresumeheader/newresumeheader.component.d.ts +43 -4
  39. package/lib/resume-entries/resume-entries.component.d.ts +7 -1
  40. package/lib/resume-header/resume-header.model.d.ts +11 -20
  41. package/lib/shared-popup-modal/shared-popup-modal.component.d.ts +17 -0
  42. package/lib/side-action-bar-wrapper/side-action-bar-wrapper.component.d.ts +34 -0
  43. package/lib/side-action-bar-wrapper/side-action-bar-wrapper.module.d.ts +12 -0
  44. package/lib/styles/border-radius.scss +11 -0
  45. package/lib/styles/button-mixins.scss +41 -0
  46. package/lib/styles/button.scss +117 -0
  47. package/lib/styles/colors.scss +221 -0
  48. package/lib/styles/elevation.scss +46 -0
  49. package/lib/styles/new-typography.scss +202 -0
  50. package/lib/styles/spacing.scss +39 -0
  51. package/lib/styles/typography-classes.scss +203 -0
  52. package/lib/utils/icon-utils.d.ts +51 -0
  53. package/lib/utils/image-utils.d.ts +54 -0
  54. package/package.json +15 -3
  55. package/public-api.d.ts +3 -3
  56. package/src/lib/ai-apply-bar/ai-apply-bar.component.html +43 -0
  57. package/src/lib/ai-apply-bar/ai-apply-bar.component.scss +182 -0
  58. package/src/lib/app-toolbar/app-toolbar.component.html +13 -0
  59. package/src/lib/app-toolbar/app-toolbar.component.scss +141 -0
  60. package/src/lib/app-toolbar-right/app-toolbar-right.component.html +15 -0
  61. package/src/lib/app-toolbar-right/app-toolbar-right.component.scss +294 -0
  62. package/src/lib/button/button.component.html +127 -0
  63. package/src/lib/button/button.component.scss +1238 -0
  64. package/src/lib/candidate-section/candidate-section.component.html +91 -0
  65. package/src/lib/candidate-section/candidate-section.component.scss +154 -0
  66. package/src/lib/checkbox/checkbox.component.html +24 -0
  67. package/src/lib/checkbox/checkbox.component.scss +280 -0
  68. package/src/lib/custom-editor/custom-editor.component.html +129 -0
  69. package/src/lib/custom-editor/custom-editor.component.scss +441 -0
  70. package/src/lib/custom-editor/table/table.component.html +21 -0
  71. package/src/lib/date-range/date-range.component.html +33 -0
  72. package/src/lib/date-range/date-range.component.scss +284 -0
  73. package/src/lib/editable-form-wrapper/editable-form-wrapper.component.html +12 -0
  74. package/src/lib/editable-form-wrapper/editable-form-wrapper.component.scss +227 -0
  75. package/src/lib/experience-section/experience-section.component.html +20 -0
  76. package/src/lib/experience-section/experience-section.component.scss +0 -0
  77. package/src/lib/field-placeholder/field-placeholder.component.html +17 -0
  78. package/src/lib/field-placeholder/field-placeholder.component.scss +119 -0
  79. package/src/lib/general-container/general-container.component.html +3 -0
  80. package/src/lib/general-container/general-container.component.scss +10 -0
  81. package/src/lib/icon-button/icon-button.component.html +12 -0
  82. package/src/lib/icon-button/icon-button.component.scss +77 -0
  83. package/src/lib/input/input.component.html +86 -0
  84. package/src/lib/input/input.component.scss +1337 -0
  85. package/src/lib/loader/loader.component.html +15 -0
  86. package/src/lib/loader/loader.component.scss +493 -0
  87. package/src/lib/new-typography/new-typography.component.html +10 -0
  88. package/src/lib/new-typography/new-typography.component.scss +200 -0
  89. package/src/lib/newresumeheader/newresumeheader.component.html +178 -0
  90. package/src/lib/newresumeheader/newresumeheader.component.scss +530 -0
  91. package/src/lib/radio/radio.component.html +23 -0
  92. package/src/lib/radio/radio.component.scss +253 -0
  93. package/src/lib/responsive-columns/responsive-columns.component.html +6 -0
  94. package/src/lib/responsive-columns/responsive-columns.component.scss +68 -0
  95. package/src/lib/responsive-layout/responsive-layout.component.html +1 -0
  96. package/src/lib/responsive-layout/responsive-layout.component.scss +47 -0
  97. package/src/lib/resume-entries/resume-entries.component.html +97 -0
  98. package/src/lib/resume-entries/resume-entries.component.scss +341 -0
  99. package/src/lib/resume-header/resume-header.component.html +167 -0
  100. package/src/lib/shared-popup-modal/shared-popup-modal.component.html +99 -0
  101. package/src/lib/shared-popup-modal/shared-popup-modal.component.scss +223 -0
  102. package/src/lib/side-action-bar-wrapper/side-action-bar-wrapper.component.html +17 -0
  103. package/src/lib/side-action-bar-wrapper/side-action-bar-wrapper.component.scss +58 -0
  104. package/src/lib/slide-toggle/slide-toggle.component.html +17 -0
  105. package/src/lib/slide-toggle/slide-toggle.component.scss +439 -0
  106. package/src/lib/storybook/testing-strip/testing-strip.component.html +12 -0
  107. package/src/lib/storybook/testing-strip/testing-strip.component.scss +1 -0
  108. package/src/lib/styles/border-radius.scss +11 -0
  109. package/src/lib/styles/button-mixins.scss +41 -0
  110. package/src/lib/styles/button.scss +117 -0
  111. package/src/lib/styles/colors.scss +221 -0
  112. package/src/lib/styles/elevation.scss +46 -0
  113. package/src/lib/styles/new-typography.scss +202 -0
  114. package/src/lib/styles/spacing.scss +39 -0
  115. package/src/lib/styles/typography-classes.scss +203 -0
  116. package/src/lib/tabs/tabs.component.html +9 -0
  117. package/src/lib/tabs/tabs.component.scss +151 -0
  118. package/src/lib/toggle-buttons/toggle-buttons.component.html +17 -0
  119. package/src/lib/toggle-buttons/toggle-buttons.component.scss +284 -0
  120. package/src/lib/tooltip/tooltip.component.html +6 -0
  121. package/src/lib/tooltip/tooltip.component.scss +8 -0
  122. package/lib/action-bar-wrapper/action-bar-wrapper.component.d.ts +0 -36
  123. package/lib/resume-header/resume-header.component.d.ts +0 -69
  124. package/lib/resume-header/resume-header.module.d.ts +0 -8
@@ -0,0 +1,127 @@
1
+ <!-- Regular button types -->
2
+ <ng-container *ngIf="!(hasDropDown || buttonType === 'dropdown'); else dropdownTpl">
3
+ <button mat-flat-button class="btn custom-button" [class]="effectiveFontClass" [attr.data-test-id]="dataTestId"
4
+ [ngClass]="{
5
+ 'size-header': size === 'header' && !fontClass,
6
+ 'size-xs': size === 'xs' && !fontClass,
7
+ 'size-sm': size === 'sm' && !fontClass,
8
+ 'size-base': size === 'base' && !fontClass,
9
+ 'size-l': size === 'l' && !fontClass,
10
+ 'size-xl': size === 'xl' && !fontClass,
11
+ 'mat-raised-button': variant === 'raised',
12
+ 'mat-flat-button': variant === 'flat',
13
+
14
+ 'mat-stroked-button': variant === 'stroked',
15
+ 'mat-fab': variant === 'fab',
16
+ 'mat-icon-button': variant === 'icon',
17
+ 'icon-circle': buttonType === 'icon-circle',
18
+ 'blue': color === 'blue',
19
+ 'green': color === 'green',
20
+ 'grey': color === 'grey',
21
+ 'error': color === 'error',
22
+ 'success': color === 'success',
23
+ 'gradient': color === 'gradient',
24
+ 'white': color === 'white',
25
+ 'btn-outlined': outline,
26
+ 'btn-default': effectiveState === 'default',
27
+ 'btn-hover': effectiveState === 'hover',
28
+ 'btn-pressed': effectiveState === 'pressed',
29
+ 'btn-disabled': effectiveState === 'disabled'
30
+ }" [disabled]="isDisabled" [matTooltip]="hasTooltip ? tooltip : null" [matTooltipPosition]="tooltipPosition"
31
+ [matTooltipDisabled]="!hasTooltip" (click)="onClick.emit($event)" (mouseenter)="onHover.emit($event)"
32
+ (mouseleave)="onMouseLeave.emit($event)" [style.display]="'inline-flex'" [style.align-items]="'center'"
33
+ [style.gap.px]="computeGap()">
34
+
35
+ <!-- Left Icon (only if provided; for icon-circle prefer `icon` over `leftIcon`) -->
36
+ <ng-container *ngIf="(buttonType === 'icon-circle' ? (icon || leftIcon) : leftIcon)?.trim() as leftIconText">
37
+ <ng-container *ngIf="getLeftSvgIconName() as svgIconName; else leftIconFont">
38
+ <mat-icon [svgIcon]="svgIconName" class="left-icon"></mat-icon>
39
+ </ng-container>
40
+ <ng-template #leftIconFont>
41
+ <mat-icon [fontSet]="getLeftIconFontSet()" class="left-icon">
42
+ {{ getLeftIconName() }}
43
+ </mat-icon>
44
+ </ng-template>
45
+ </ng-container>
46
+
47
+ <!-- Label (hidden when iconOnly is true) -->
48
+ <span *ngIf="!iconOnly && buttonType !== 'icon-circle'" class="button-label">
49
+ {{ labelText || '' }}
50
+ </span>
51
+
52
+ <!-- Right icon (only if provided) -->
53
+ <ng-container *ngIf="rightIcon?.trim() as rightIconText">
54
+ <ng-container *ngIf="getRightSvgIconName() as svgIconName; else rightIconFont">
55
+ <mat-icon [svgIcon]="svgIconName" class="right-icon"></mat-icon>
56
+ </ng-container>
57
+ <ng-template #rightIconFont>
58
+ <mat-icon [fontSet]="getRightIconFontSet()" class="right-icon">
59
+ {{ getRightIconName() }}
60
+ </mat-icon>
61
+ </ng-template>
62
+ </ng-container>
63
+ </button>
64
+ </ng-container>
65
+
66
+ <!-- Dropdown button template -->
67
+ <ng-template #dropdownTpl>
68
+ <button mat-flat-button class="btn custom-button" [class]="effectiveFontClass" [attr.data-test-id]="dataTestId"
69
+ [ngClass]="{
70
+ 'size-header': size === 'header' && !fontClass,
71
+ 'size-xs': size === 'xs' && !fontClass,
72
+ 'size-sm': size === 'sm' && !fontClass,
73
+ 'size-base': size === 'base' && !fontClass,
74
+ 'size-l': size === 'l' && !fontClass,
75
+ 'size-xl': size === 'xl' && !fontClass,
76
+ 'mat-raised-button': variant === 'raised',
77
+ 'mat-flat-button': variant === 'flat',
78
+ 'mat-stroked-button': variant === 'stroked',
79
+ 'mat-fab': variant === 'fab',
80
+ 'mat-icon-button': variant === 'icon',
81
+ 'icon-label': true,
82
+ 'blue': color === 'blue',
83
+ 'green': color === 'green',
84
+ 'grey': color === 'grey',
85
+ 'error': color === 'error',
86
+ 'success': color === 'success',
87
+ 'gradient': color === 'gradient',
88
+ 'white': color === 'white',
89
+ 'btn-outlined': outline,
90
+ 'btn-default': effectiveState === 'default',
91
+ 'btn-hover': effectiveState === 'hover',
92
+ 'btn-pressed': effectiveState === 'pressed',
93
+ 'btn-disabled': effectiveState === 'disabled'
94
+ }" [disabled]="isDisabled" [matTooltip]="hasTooltip ? tooltip : null" [matTooltipPosition]="tooltipPosition"
95
+ [matTooltipDisabled]="!hasTooltip" (mouseenter)="onHover.emit($event)" (mouseleave)="onMouseLeave.emit($event)"
96
+ [style.display]="'inline-flex'" [style.align-items]="'center'" [style.gap.px]="computeGap()"
97
+ [matMenuTriggerFor]="menu">
98
+
99
+ <!-- Left Icon (optional) -->
100
+ <ng-container *ngIf="leftIcon?.trim() as leftIconText">
101
+ <ng-container *ngIf="getSvgIconName(leftIcon) as svgIconName; else leftIconFontDropdown">
102
+ <mat-icon [svgIcon]="svgIconName" class="left-icon"></mat-icon>
103
+ </ng-container>
104
+ <ng-template #leftIconFontDropdown>
105
+ <mat-icon [fontSet]="getLeftIconFontSet()" class="left-icon">
106
+ {{ getLeftIconName() }}
107
+ </mat-icon>
108
+ </ng-template>
109
+ </ng-container>
110
+
111
+ <!-- Label -->
112
+ <span *ngIf="!iconOnly" class="button-label">
113
+ {{ labelText || '' }}
114
+ </span>
115
+
116
+ <!-- Dropdown arrow icon -->
117
+ <mat-icon class="right-icon">arrow_drop_down</mat-icon>
118
+ </button>
119
+ </ng-template>
120
+
121
+ <!-- Mat Menu kept outside conditional to avoid portal reattachment across toggles -->
122
+ <mat-menu #menu="matMenu" panelClass="custom-dropdown-menu">
123
+ <button mat-menu-item *ngFor="let opt of dropdownItems" (click)="selectOption(opt)" [ngClass]="effectiveFontClass">
124
+ {{ opt.label || opt }}
125
+ </button>
126
+ </mat-menu>
127
+