@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,12 @@
|
|
|
1
|
+
<button type="button" class="icon-btn" [ngClass]="[
|
|
2
|
+
'icon-btn',
|
|
3
|
+
'size-' + size,
|
|
4
|
+
'color-' + colour,
|
|
5
|
+
iconOutlined ? 'icon-outlined' : '',
|
|
6
|
+
disabled ? 'icon-btn-disabled' : ''
|
|
7
|
+
]" [disabled]="disabled" (click)="handleClick($event)" [attr.aria-label]="icon"
|
|
8
|
+
[attr.data-test-id]="effectiveDataTestId">
|
|
9
|
+
<mat-icon [fontSet]="getEffectiveFontSet()" class="icon-btn-icon"
|
|
10
|
+
[ngStyle]="customColour ? { color: customColour } : null">{{ getEffectiveIconName()
|
|
11
|
+
}}</mat-icon>
|
|
12
|
+
</button>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@import url("https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined");
|
|
2
|
+
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=network_node");
|
|
3
|
+
@import "../styles/typography-classes.scss";
|
|
4
|
+
@import "../styles/colors.scss";
|
|
5
|
+
@import "../styles/border-radius.scss";
|
|
6
|
+
.icon-btn {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
border: none;
|
|
11
|
+
background: none;
|
|
12
|
+
border-radius: 50%;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition: background 0.18s, box-shadow 0.18s;
|
|
15
|
+
outline: none;
|
|
16
|
+
padding: 0;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
min-height: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.icon-btn-disabled {
|
|
22
|
+
opacity: 0.4;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.icon-btn-icon {
|
|
27
|
+
font-size: 20px;
|
|
28
|
+
width: 20px;
|
|
29
|
+
height: 20px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Size variants (match button) */
|
|
33
|
+
.size-xs .icon-btn-icon { font-size: 12px; width: 12px; height: 12px; }
|
|
34
|
+
.size-sm .icon-btn-icon, .size-base .icon-btn-icon { font-size: 16px; width: 16px; height: 16px; }
|
|
35
|
+
.size-l .icon-btn-icon { font-size: 20px; width: 20px; height: 20px; }
|
|
36
|
+
.size-xl .icon-btn-icon { font-size: 24px; width: 24px; height: 24px; }
|
|
37
|
+
.size-header .icon-btn-icon { font-size: 20px; width: 20px; height: 20px; }
|
|
38
|
+
|
|
39
|
+
/* Color variants (extend as needed) */
|
|
40
|
+
.color-blue { color: $color-blue; }
|
|
41
|
+
.color-blue .icon-btn-icon { color: $color-blue; }
|
|
42
|
+
.color-green { color: $color-green; }
|
|
43
|
+
.color-green .icon-btn-icon { color: $color-green; }
|
|
44
|
+
.color-grey { color: $color-grey; }
|
|
45
|
+
.color-grey .icon-btn-icon { color: $color-grey; }
|
|
46
|
+
.color-error { color: $color-error; }
|
|
47
|
+
.color-error .icon-btn-icon { color: $color-error; }
|
|
48
|
+
.color-success { color: $color-success; }
|
|
49
|
+
.color-success .icon-btn-icon { color: $color-success; }
|
|
50
|
+
.color-gradient {
|
|
51
|
+
background: linear-gradient(275deg, #5473E8 -36.22%, #37C1CE 100.04%) !important;
|
|
52
|
+
color: #fff;
|
|
53
|
+
}
|
|
54
|
+
.color-gradient .icon-btn-icon { color: #fff !important; }
|
|
55
|
+
|
|
56
|
+
.icon-outlined { background: none !important; }
|
|
57
|
+
|
|
58
|
+
/* Material Symbols font support */
|
|
59
|
+
.material-symbols-outlined {
|
|
60
|
+
font-family: 'Material Symbols Outlined' !important;
|
|
61
|
+
font-weight: normal;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
font-feature-settings: 'liga';
|
|
64
|
+
-webkit-font-feature-settings: 'liga';
|
|
65
|
+
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Ensure mat-icon uses Material Symbols font when fontSet is material-symbols-outlined */
|
|
69
|
+
mat-icon.material-symbols-outlined,
|
|
70
|
+
.icon-btn-icon.material-symbols-outlined {
|
|
71
|
+
font-family: 'Material Symbols Outlined' !important;
|
|
72
|
+
font-weight: normal !important;
|
|
73
|
+
font-style: normal !important;
|
|
74
|
+
font-feature-settings: 'liga' !important;
|
|
75
|
+
-webkit-font-feature-settings: 'liga' !important;
|
|
76
|
+
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24 !important;
|
|
77
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<!-- Standard floating label layout for all inputs including date picker -->
|
|
2
|
+
<mat-form-field appearance="outline" class="al-input-field" [ngClass]="[
|
|
3
|
+
helperText ? 'has-helper-text' : '',
|
|
4
|
+
getSizeClass(),
|
|
5
|
+
getCategoryClass(),
|
|
6
|
+
noBorder ? 'al-input-no-border' : '',
|
|
7
|
+
leftIcon ? 'has-left-icon' : ''
|
|
8
|
+
]" [attr.data-test-id]="dataTestId" [matTooltip]="tooltip" [matTooltipPosition]="tooltipPosition"
|
|
9
|
+
[matTooltipDisabled]="!tooltip">
|
|
10
|
+
<mat-label *ngIf="labelText && !noBorder">{{ labelText }}</mat-label>
|
|
11
|
+
|
|
12
|
+
<mat-icon *ngIf="leftIcon?.trim() as leftIconText" [fontSet]="outlined ? 'material-icons-outlined' : 'material-icons'"
|
|
13
|
+
matPrefix class="left-icon">{{ leftIconText }}</mat-icon>
|
|
14
|
+
|
|
15
|
+
<ng-container *ngIf="hasDropDown; else regularInput">
|
|
16
|
+
<!-- Searchable Dropdown with Autocomplete -->
|
|
17
|
+
<ng-container *ngIf="isSearchableDropdown; else regularDropdown">
|
|
18
|
+
<input matInput #searchInput type="text" [placeholder]="placeholder || labelText" [disabled]="isDisabled"
|
|
19
|
+
[value]="searchValue" (input)="onSearchInputChange($event)" (focus)="onSearchFocus()" (click)="onSearchFocus()"
|
|
20
|
+
(blur)="onTouched()" [matAutocomplete]="auto" #autocompleteTrigger="matAutocompleteTrigger"
|
|
21
|
+
autocomplete="off" />
|
|
22
|
+
<mat-autocomplete #auto="matAutocomplete" (optionSelected)="onOptionSelected($event)" [displayWith]="displayFn"
|
|
23
|
+
panelClass="al-searchable-dropdown-panel" [autoActiveFirstOption]="false" [panelWidth]="null">
|
|
24
|
+
<mat-option *ngFor="let option of filteredOptions" [value]="option">
|
|
25
|
+
{{ option }}
|
|
26
|
+
</mat-option>
|
|
27
|
+
<mat-option *ngIf="filteredOptions.length === 0 && searchValue && searchValue.trim()" disabled>
|
|
28
|
+
<span style="display: flex; align-items: center; gap: 8px;">
|
|
29
|
+
<mat-icon style="font-size: 18px; width: 18px; height: 18px;">search_off</mat-icon>
|
|
30
|
+
<span>No results found</span>
|
|
31
|
+
</span>
|
|
32
|
+
</mat-option>
|
|
33
|
+
</mat-autocomplete>
|
|
34
|
+
<mat-icon matSuffix class="search-icon" *ngIf="!rightIcon?.trim()">search</mat-icon>
|
|
35
|
+
<mat-icon *ngIf="rightIcon?.trim() && isSearchableDropdown" matSuffix class="right-icon">{{ rightIcon
|
|
36
|
+
}}</mat-icon>
|
|
37
|
+
</ng-container>
|
|
38
|
+
|
|
39
|
+
<!-- Regular Dropdown (non-searchable) -->
|
|
40
|
+
<ng-template #regularDropdown>
|
|
41
|
+
<mat-select [disabled]="isDisabled" [multiple]="multipleSelect"
|
|
42
|
+
[ngModel]="multipleSelect ? selectedValues : value" (selectionChange)="onSelectionChange($event.value)"
|
|
43
|
+
[placeholder]="placeholder || labelText">
|
|
44
|
+
<mat-option *ngFor="let option of options" [value]="option">{{ option }}</mat-option>
|
|
45
|
+
</mat-select>
|
|
46
|
+
</ng-template>
|
|
47
|
+
</ng-container>
|
|
48
|
+
<ng-template #regularInput>
|
|
49
|
+
<!-- Color Picker Input -->
|
|
50
|
+
<ng-container *ngIf="isColorPicker; else datePickerInput">
|
|
51
|
+
<div class="color-picker-container">
|
|
52
|
+
<input matInput [placeholder]="placeholder || labelText" [disabled]="isDisabled" [(ngModel)]="value"
|
|
53
|
+
(input)="onInputChange($any($event.target).value)" (blur)="onTouched()" />
|
|
54
|
+
<input type="color" class="color-picker-input" [value]="value || '#000000'" [disabled]="isDisabled"
|
|
55
|
+
(input)="handleColorChange($event)" (blur)="onTouched()" />
|
|
56
|
+
<mat-icon class="color-picker-icon" matSuffix>palette</mat-icon>
|
|
57
|
+
</div>
|
|
58
|
+
</ng-container>
|
|
59
|
+
|
|
60
|
+
<!-- Date Picker Input - with floating label animation -->
|
|
61
|
+
<ng-template #datePickerInput>
|
|
62
|
+
<ng-container *ngIf="isDatePicker; else standardInput">
|
|
63
|
+
<input matInput [matDatepicker]="datepickerRef" [placeholder]="placeholder || labelText" [disabled]="isDisabled"
|
|
64
|
+
[(ngModel)]="selectedDate" (dateChange)="onDateChange($event)" (blur)="onTouched()" />
|
|
65
|
+
<mat-datepicker-toggle matSuffix [for]="datepickerRef"></mat-datepicker-toggle>
|
|
66
|
+
<mat-datepicker #dp *ngIf="!matDatepicker" startView="multi-year" (monthSelected)="onMonthSelected($event, dp)"
|
|
67
|
+
(yearSelected)="onYearSelected($event, dp)" panelClass="example-month-picker">
|
|
68
|
+
</mat-datepicker>
|
|
69
|
+
</ng-container>
|
|
70
|
+
|
|
71
|
+
<!-- Standard Input -->
|
|
72
|
+
<ng-template #standardInput>
|
|
73
|
+
<input matInput [placeholder]="placeholder || labelText" [type]="type" [disabled]="isDisabled"
|
|
74
|
+
[(ngModel)]="value" (input)="onInputChange($any($event.target).value)" (blur)="onTouched()" />
|
|
75
|
+
</ng-template>
|
|
76
|
+
</ng-template>
|
|
77
|
+
</ng-template>
|
|
78
|
+
|
|
79
|
+
<!-- Right icon - only show when not date picker, not color picker, and not searchable dropdown -->
|
|
80
|
+
<mat-icon *ngIf="!isDatePicker && !isColorPicker && !isSearchableDropdown && rightIcon?.trim() as rightIconText"
|
|
81
|
+
[fontSet]="outlined ? 'material-icons-outlined' : 'material-icons'" matSuffix class="right-icon">{{ rightIconText
|
|
82
|
+
}}</mat-icon>
|
|
83
|
+
|
|
84
|
+
<mat-error *ngIf="false && helperText">{{ helperText }}</mat-error>
|
|
85
|
+
<mat-hint *ngIf="helperText">{{ helperText }}</mat-hint>
|
|
86
|
+
</mat-form-field>
|