mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[PRODSEC-6575] Shared link not accessible now after the expiry date which was earlier accessible even after that expiration date (#8540)
* Shared link expiry date code implementation * test case updated * removed unsed code * design changes as per the new design of Share dialog * test cases modification as per new design changes * placeholder modified for expiration date * look and feel changes for share dialog as per Shane comments * boolean name changed as per naming convention * review comments addressed * review comments addressed * type specified for node object * linting corrections * resolved nested ternary date operation into an independent statement * review comments addressed * used date-fns instead of moment.js in code as well as in test cases * review comments for date-fns addressed * removed extra line * removed extra empty lines in template * import changes and indentation correction * error in console resolved which was occuring after selecting date and time * used mat-datepicker instead of mat-datetimepicker * package-lock.json file updated for date-fns implementation * made type 'date' as default and removed the settings coming from the ACA * unit test case modifications as per calender changes * e2e modifications as per new calendar component
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
&__dialog-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 24px;
|
||||
background-color: var(--theme-grey-text-background-color);
|
||||
}
|
||||
|
||||
&__dialog-container {
|
||||
background-color: var(--theme-card-background-color);
|
||||
border-radius: 16px;
|
||||
padding: 16px 24px;
|
||||
}
|
||||
|
||||
&__label,
|
||||
@@ -17,7 +25,7 @@
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-stretch: normal;
|
||||
font-size: var(--theme-subheading-2-font-size);
|
||||
font-size: var(--theme-body-1-font-size);
|
||||
color: var(--adf-theme-foreground-text-color-087);
|
||||
}
|
||||
|
||||
@@ -25,22 +33,68 @@
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
&__info {
|
||||
&__form {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
&__public-content {
|
||||
color: var(--adf-theme-foreground-text-color-054);
|
||||
font-size: var(--theme-caption-font-size);
|
||||
}
|
||||
|
||||
&__warn {
|
||||
color: var(--theme-warn-color);
|
||||
font-size: var(--theme-caption-font-size);
|
||||
}
|
||||
|
||||
&--row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
&__input {
|
||||
color: var(--adf-theme-foreground-text-color-087);
|
||||
}
|
||||
|
||||
&__separation-line {
|
||||
border: 1px solid var(--theme-grey-background-color);
|
||||
margin: 8px -24px;
|
||||
}
|
||||
|
||||
&__close {
|
||||
cursor: pointer;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
color: var(--adf-theme-foreground-icon-color-054);
|
||||
}
|
||||
|
||||
&__para {
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
&__heading {
|
||||
font-weight: 700;
|
||||
font-size: var(--theme-subheading-2-font-size);
|
||||
}
|
||||
|
||||
&__calender-icon {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
&__date-time-container {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
&__border-color {
|
||||
border: 1px solid var(--theme-warn-color);
|
||||
}
|
||||
}
|
||||
|
||||
.adf-input-action {
|
||||
@@ -49,6 +103,13 @@
|
||||
|
||||
.adf-full-width {
|
||||
width: 100%;
|
||||
background-color: var(--theme-grey-text-background-color);
|
||||
border-radius: 6px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.adf-sharable-link {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.mat-form-field-infix {
|
||||
@@ -57,9 +118,13 @@
|
||||
|
||||
.mat-dialog-actions {
|
||||
justify-content: flex-end;
|
||||
padding: 0;
|
||||
margin: 8px 0 0;
|
||||
|
||||
& > button {
|
||||
text-transform: uppercase;
|
||||
color: var(--adf-theme-foreground-base-color);
|
||||
background-color: var(--theme-grey-text-background-color);
|
||||
margin-right: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,6 +132,20 @@
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mat-dialog-container {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.mat-form-field-appearance-legacy .mat-form-field-underline {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mat-form-field-appearance-legacy .mat-form-field-wrapper {
|
||||
padding-bottom: 8px;
|
||||
margin-right: 8px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 380px) {
|
||||
.mat-dialog-container {
|
||||
padding: 0 15px;
|
||||
|
Reference in New Issue
Block a user