@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.
- package/fesm2022/allsorter-ui-components.mjs +2996 -1391
- package/fesm2022/allsorter-ui-components.mjs.map +1 -1
- package/images/Column left.svg +5 -0
- package/images/Move.svg +8 -0
- package/images/Success.svg +5 -0
- package/images/Table.svg +3 -0
- package/images/Vector-1.svg +3 -0
- package/images/Vector.svg +3 -0
- package/images/add-teble.svg +6 -0
- package/images/arrow_downward.svg +3 -0
- package/images/calendar_year.svg +4 -0
- package/images/column right.svg +5 -0
- package/images/delete -table.svg +6 -0
- package/images/delete row.svg +10 -0
- package/images/delete-column.svg +10 -0
- package/images/delete.svg +3 -0
- package/images/drag-drop-icon.svg +8 -0
- package/images/edit.svg +3 -0
- package/images/error.svg +5 -0
- package/images/row bottom.svg +5 -0
- package/images/row top.svg +5 -0
- package/images/search.svg +3 -0
- package/images/subrole.svg +3 -0
- package/images/visibility_off.svg +3 -0
- package/images/warning.svg +5 -0
- package/lib/app-toolbar/app-toolbar.component.d.ts +5 -8
- package/lib/app-toolbar/app-toolbar.module.d.ts +4 -4
- package/lib/app-toolbar-right/app-toolbar-right.component.d.ts +3 -5
- package/lib/button/button.component.d.ts +30 -1
- package/lib/candidate-section/candidate-section.component.d.ts +8 -0
- package/lib/custom-editor/custom-editor.component.d.ts +110 -14
- package/lib/custom-editor/table/table.component.d.ts +5 -0
- package/lib/editable-form-wrapper/editable-form-wrapper.component.d.ts +48 -0
- package/lib/experience-section/experience-section.component.d.ts +4 -2
- package/lib/general-container/general-container.component.d.ts +5 -1
- package/lib/icon-button/icon-button.component.d.ts +16 -7
- package/lib/input/input.component.d.ts +41 -10
- package/lib/newresumeheader/newresumeheader.component.d.ts +43 -4
- package/lib/resume-entries/resume-entries.component.d.ts +7 -1
- package/lib/resume-header/resume-header.model.d.ts +11 -20
- package/lib/shared-popup-modal/shared-popup-modal.component.d.ts +17 -0
- package/lib/side-action-bar-wrapper/side-action-bar-wrapper.component.d.ts +34 -0
- package/lib/side-action-bar-wrapper/side-action-bar-wrapper.module.d.ts +12 -0
- package/lib/styles/border-radius.scss +11 -0
- package/lib/styles/button-mixins.scss +41 -0
- package/lib/styles/button.scss +117 -0
- package/lib/styles/colors.scss +221 -0
- package/lib/styles/elevation.scss +46 -0
- package/lib/styles/new-typography.scss +202 -0
- package/lib/styles/spacing.scss +39 -0
- package/lib/styles/typography-classes.scss +203 -0
- package/lib/utils/icon-utils.d.ts +51 -0
- package/lib/utils/image-utils.d.ts +54 -0
- package/package.json +15 -3
- package/public-api.d.ts +3 -3
- package/src/lib/ai-apply-bar/ai-apply-bar.component.html +43 -0
- package/src/lib/ai-apply-bar/ai-apply-bar.component.scss +182 -0
- package/src/lib/app-toolbar/app-toolbar.component.html +13 -0
- package/src/lib/app-toolbar/app-toolbar.component.scss +141 -0
- package/src/lib/app-toolbar-right/app-toolbar-right.component.html +15 -0
- package/src/lib/app-toolbar-right/app-toolbar-right.component.scss +294 -0
- package/src/lib/button/button.component.html +127 -0
- package/src/lib/button/button.component.scss +1238 -0
- package/src/lib/candidate-section/candidate-section.component.html +91 -0
- package/src/lib/candidate-section/candidate-section.component.scss +154 -0
- package/src/lib/checkbox/checkbox.component.html +24 -0
- package/src/lib/checkbox/checkbox.component.scss +280 -0
- package/src/lib/custom-editor/custom-editor.component.html +129 -0
- package/src/lib/custom-editor/custom-editor.component.scss +441 -0
- package/src/lib/custom-editor/table/table.component.html +21 -0
- package/src/lib/date-range/date-range.component.html +33 -0
- package/src/lib/date-range/date-range.component.scss +284 -0
- package/src/lib/editable-form-wrapper/editable-form-wrapper.component.html +12 -0
- package/src/lib/editable-form-wrapper/editable-form-wrapper.component.scss +227 -0
- package/src/lib/experience-section/experience-section.component.html +20 -0
- package/src/lib/experience-section/experience-section.component.scss +0 -0
- package/src/lib/field-placeholder/field-placeholder.component.html +17 -0
- package/src/lib/field-placeholder/field-placeholder.component.scss +119 -0
- package/src/lib/general-container/general-container.component.html +3 -0
- package/src/lib/general-container/general-container.component.scss +10 -0
- package/src/lib/icon-button/icon-button.component.html +12 -0
- package/src/lib/icon-button/icon-button.component.scss +77 -0
- package/src/lib/input/input.component.html +86 -0
- package/src/lib/input/input.component.scss +1337 -0
- package/src/lib/loader/loader.component.html +15 -0
- package/src/lib/loader/loader.component.scss +493 -0
- package/src/lib/new-typography/new-typography.component.html +10 -0
- package/src/lib/new-typography/new-typography.component.scss +200 -0
- package/src/lib/newresumeheader/newresumeheader.component.html +178 -0
- package/src/lib/newresumeheader/newresumeheader.component.scss +530 -0
- package/src/lib/radio/radio.component.html +23 -0
- package/src/lib/radio/radio.component.scss +253 -0
- package/src/lib/responsive-columns/responsive-columns.component.html +6 -0
- package/src/lib/responsive-columns/responsive-columns.component.scss +68 -0
- package/src/lib/responsive-layout/responsive-layout.component.html +1 -0
- package/src/lib/responsive-layout/responsive-layout.component.scss +47 -0
- package/src/lib/resume-entries/resume-entries.component.html +97 -0
- package/src/lib/resume-entries/resume-entries.component.scss +341 -0
- package/src/lib/resume-header/resume-header.component.html +167 -0
- package/src/lib/shared-popup-modal/shared-popup-modal.component.html +99 -0
- package/src/lib/shared-popup-modal/shared-popup-modal.component.scss +223 -0
- package/src/lib/side-action-bar-wrapper/side-action-bar-wrapper.component.html +17 -0
- package/src/lib/side-action-bar-wrapper/side-action-bar-wrapper.component.scss +58 -0
- package/src/lib/slide-toggle/slide-toggle.component.html +17 -0
- package/src/lib/slide-toggle/slide-toggle.component.scss +439 -0
- package/src/lib/storybook/testing-strip/testing-strip.component.html +12 -0
- package/src/lib/storybook/testing-strip/testing-strip.component.scss +1 -0
- package/src/lib/styles/border-radius.scss +11 -0
- package/src/lib/styles/button-mixins.scss +41 -0
- package/src/lib/styles/button.scss +117 -0
- package/src/lib/styles/colors.scss +221 -0
- package/src/lib/styles/elevation.scss +46 -0
- package/src/lib/styles/new-typography.scss +202 -0
- package/src/lib/styles/spacing.scss +39 -0
- package/src/lib/styles/typography-classes.scss +203 -0
- package/src/lib/tabs/tabs.component.html +9 -0
- package/src/lib/tabs/tabs.component.scss +151 -0
- package/src/lib/toggle-buttons/toggle-buttons.component.html +17 -0
- package/src/lib/toggle-buttons/toggle-buttons.component.scss +284 -0
- package/src/lib/tooltip/tooltip.component.html +6 -0
- package/src/lib/tooltip/tooltip.component.scss +8 -0
- package/lib/action-bar-wrapper/action-bar-wrapper.component.d.ts +0 -36
- package/lib/resume-header/resume-header.component.d.ts +0 -69
- 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
|
+
|