@randstad-uca/design-system 1.0.75 → 1.0.76
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/dist/index.js
CHANGED
|
@@ -3690,7 +3690,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3690
3690
|
|
|
3691
3691
|
${this.renderHelper()}
|
|
3692
3692
|
</div>
|
|
3693
|
-
`}};s([L({type:String}),n("design:type",String)],Se.prototype,"width",void 0),s([L({type:Boolean}),n("design:type",Object)],Se.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],Se.prototype,"readonly",void 0),s([L({type:String}),n("design:type",String)],Se.prototype,"minDate",void 0),s([L({type:String}),n("design:type",String)],Se.prototype,"maxDate",void 0),s([L({type:Boolean}),n("design:type",Object)],Se.prototype,"eighteenOrOlder",void 0),s([L({type:Number}),n("design:type",Number),n("design:paramtypes",[Number])],Se.prototype,"maxLength",null),s([T(),n("design:type",Object)],Se.prototype,"isOpen",void 0),s([T(),n("design:type",Object)],Se.prototype,"selectedDate",void 0),s([T(),n("design:type",Date)],Se.prototype,"viewDate",void 0),s([T(),n("design:type",Object)],Se.prototype,"isMobile",void 0),s([T(),n("design:type",Number)],Se.prototype,"calendarWidth",void 0),s([T(),n("design:type",Object)],Se.prototype,"inputValue",void 0),s([P(".input-container"),n("design:type",HTMLDivElement)],Se.prototype,"inputContainer",void 0),Se=s([a("datepicker-component")],Se);let De=class extends pt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
|
|
3693
|
+
`}};s([L({type:String}),n("design:type",String)],Se.prototype,"width",void 0),s([L({type:Boolean}),n("design:type",Object)],Se.prototype,"isRenderClearButton",void 0),s([L({type:Boolean}),n("design:type",Object)],Se.prototype,"readonly",void 0),s([L({type:String}),n("design:type",String)],Se.prototype,"minDate",void 0),s([L({type:String}),n("design:type",String)],Se.prototype,"maxDate",void 0),s([L({type:Boolean}),n("design:type",Object)],Se.prototype,"eighteenOrOlder",void 0),s([L({type:Number}),n("design:type",Number),n("design:paramtypes",[Number])],Se.prototype,"maxLength",null),s([T(),n("design:type",Object)],Se.prototype,"isOpen",void 0),s([T(),n("design:type",Object)],Se.prototype,"selectedDate",void 0),s([T(),n("design:type",Date)],Se.prototype,"viewDate",void 0),s([T(),n("design:type",Object)],Se.prototype,"isMobile",void 0),s([T(),n("design:type",Number)],Se.prototype,"calendarWidth",void 0),s([T(),n("design:type",Object)],Se.prototype,"inputValue",void 0),s([P(".input-container"),n("design:type",HTMLDivElement)],Se.prototype,"inputContainer",void 0),Se=s([a("datepicker-component")],Se);let De=class extends pt{constructor(){super(...arguments),this.maxFiles=1,this.acceptedFileTypes=[],this.maxFileSize=0,this.buttonText="Agregar archivo",this.showDeleteConfirmation=!1,this.showInternalError=!0,this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}static{this.styles=o`
|
|
3694
3694
|
${X}
|
|
3695
3695
|
${Q}
|
|
3696
3696
|
${G}
|
|
@@ -3756,7 +3756,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3756
3756
|
outline: 2px solid rgb( 0, 215, 255 ) !important;
|
|
3757
3757
|
outline-offset: 1px;
|
|
3758
3758
|
}
|
|
3759
|
-
`}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,gt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}handleRemoveFile(t,e){this.showDeleteConfirmation?this.confirmRemoveFile(t,e):this.removeFile(t,"file")}confirmRemoveFile(t,e){this.fileIndexToRemove=t,this.fileNameToRemove=e,this.isRemovePopupOpen=!0}handlePopupClose(t){t.detail||this.removeFile(this.fileIndexToRemove,"file"),this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
|
|
3759
|
+
`}getFileConfig(){const t=this.acceptedFileTypes.length>0,e=this.maxFileSize>0;return{baseMaxFiles:this.maxFiles,maxFileSize:this.maxFileSize,acceptedFileTypes:this.acceptedFileTypes,errorMessageType:t&&this.showInternalError?`formato de archivo no válido, se aceptan: ${this.getTextAcceptedFileTypes()}`:"",errorMessageSize:e&&this.showInternalError?`el archivo es demasiado grande, el máximo es de ${this.getTextMaxFileSize()}`:"",typeError:"file"}}getTextAcceptedFileTypes(){return this.getReadableFileTypes(this.acceptedFileTypes,gt)}getTextMaxFileSize(){return this.baseGetTextMaxFileSize(this.maxFileSize)}updated(t){super.updated(t),this.applyWidth()}applyWidth(){this.width&&this.style.setProperty("--upload-file-width",this.width)}onFileInputChange(t){this.baseOnFileInputChange(t,this.getFileConfig())}willUpdate(t){(t.has("maxFiles")||0===t.size)&&(this.isMultiple=this.maxFiles>1)}handleRemoveFile(t,e){this.showDeleteConfirmation?this.confirmRemoveFile(t,e):this.removeFile(t,"file")}confirmRemoveFile(t,e){this.fileIndexToRemove=t,this.fileNameToRemove=e,this.isRemovePopupOpen=!0}handlePopupClose(t){t.detail||this.removeFile(this.fileIndexToRemove,"file"),this.isRemovePopupOpen=!1,this.fileIndexToRemove=-1,this.fileNameToRemove=""}render(){const t=this.files.length>=this.maxFiles,o=this.disabled||t,r=e`
|
|
3760
3760
|
<randstad-button
|
|
3761
3761
|
.label=${this.buttonText}
|
|
3762
3762
|
.variant=${"button-primary"}
|
|
@@ -3817,7 +3817,7 @@ function P(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Refl
|
|
|
3817
3817
|
</custom-popup>
|
|
3818
3818
|
`:i}
|
|
3819
3819
|
</div>
|
|
3820
|
-
`}};s([L({type:String}),n("design:type",String)],De.prototype,"width",void 0),s([L({type:Number}),n("design:type",Object)],De.prototype,"maxFiles",void 0),s([L({type:Array}),n("design:type",Array)],De.prototype,"acceptedFileTypes",void 0),s([L({type:Number}),n("design:type",Object)],De.prototype,"maxFileSize",void 0),s([L({type:String}),n("design:type",Object)],De.prototype,"buttonText",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"showDeleteConfirmation",void 0),s([T(),n("design:type",Boolean)],De.prototype,"isRemovePopupOpen",void 0),s([T(),n("design:type",Number)],De.prototype,"fileIndexToRemove",void 0),s([T(),n("design:type",String)],De.prototype,"fileNameToRemove",void 0),De=s([a("upload-file")],De);let Ee=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
|
|
3820
|
+
`}};s([L({type:String}),n("design:type",String)],De.prototype,"width",void 0),s([L({type:Number}),n("design:type",Object)],De.prototype,"maxFiles",void 0),s([L({type:Array}),n("design:type",Array)],De.prototype,"acceptedFileTypes",void 0),s([L({type:Number}),n("design:type",Object)],De.prototype,"maxFileSize",void 0),s([L({type:String}),n("design:type",Object)],De.prototype,"buttonText",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"showDeleteConfirmation",void 0),s([L({type:Boolean}),n("design:type",Object)],De.prototype,"showInternalError",void 0),s([T(),n("design:type",Boolean)],De.prototype,"isRemovePopupOpen",void 0),s([T(),n("design:type",Number)],De.prototype,"fileIndexToRemove",void 0),s([T(),n("design:type",String)],De.prototype,"fileNameToRemove",void 0),De=s([a("upload-file")],De);let Ee=class extends t{constructor(){super(),this.cards=[],this.cardWidth="",this.cardHeight="",this.navWidth=112,this.showNavButtons=!0,this.isDynamicWidth=!0,this.isInfiniteScrollPartial=!0,this.autoPlayDelayMs=0,this.showPrevButton=!1,this.showNextButton=!0,this.isDraggingWithButtons=!1,this.isDownWithButtons=!1,this.startXWithButtons=0,this.scrollLeftPositionWithButtons=0,this.isScrollingByButton=!1,this.isDownDrag=!1,this.prevXDrag=0,this.isDraggingDrag=!1,this.scrollLeftDrag=0,this.observer=null,this.scrollTimeout=null,this.autoPlayTimer=null,this.handleResize=()=>{},this.DESKTOP_GAP=40,this.TABLET_GAP=24,this.MOBILE_GAP=24,this.handleMouseDownWithButtons=this.handleMouseDownWithButtons.bind(this),this.handleMouseLeaveWithButtons=this.handleMouseLeaveWithButtons.bind(this),this.handleMouseUpWithButtons=this.handleMouseUpWithButtons.bind(this),this.handleMouseMoveWithButtons=this.handleMouseMoveWithButtons.bind(this),this.handleScrollWithButtons=this.handleScrollWithButtons.bind(this),this.handleMouseDownDrag=this.handleMouseDownDrag.bind(this),this.handleMouseLeaveDrag=this.handleMouseLeaveDrag.bind(this),this.handleMouseUpDrag=this.handleMouseUpDrag.bind(this),this.handleMouseMoveDrag=this.handleMouseMoveDrag.bind(this),this.handleResize=this.resizeHandler.bind(this)}static{this.styles=o`
|
|
3821
3821
|
:host {
|
|
3822
3822
|
display: block;
|
|
3823
3823
|
width: 100%;
|