@randstad-uca/design-system 1.0.20-alpha.0 → 1.0.21
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/assets/icons/{ayuda.svg → default/ayuda.svg} +5 -5
- package/dist/assets/icons/{calendar.svg → default/calendar.svg} +13 -13
- package/dist/assets/icons/{check.svg → default/check.svg} +10 -10
- package/dist/assets/icons/{email.svg → default/email.svg} +4 -4
- package/dist/assets/icons/{eye.svg → default/eye.svg} +4 -4
- package/dist/assets/icons/{eye_crossed.svg → default/eye_crossed.svg} +3 -3
- package/dist/assets/icons/{info.svg → default/info.svg} +5 -5
- package/dist/assets/icons/{warning.svg → default/warning.svg} +5 -5
- package/dist/components/Form.d.ts +2 -0
- package/dist/components/Icon.d.ts +3 -1
- package/dist/components/Modal.d.ts +0 -11
- package/dist/components/Notice.d.ts +1 -9
- package/dist/components/Popup.d.ts +0 -3
- package/dist/components/Radio.d.ts +1 -0
- package/dist/components/Select.d.ts +5 -11
- package/dist/components/Test.d.ts +5 -0
- package/dist/components/TestButton.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +418 -501
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -3
- package/dist/stories/Button.stories.d.ts +0 -1
- package/dist/stories/Icon.stories.d.ts +2 -1
- package/dist/stories/Modal.stories.d.ts +0 -5
- package/dist/stories/Notice.stories.d.ts +6 -39
- package/dist/stories/Select.stories.d.ts +174 -13
- package/dist/stories/Stepper.stories.d.ts +16 -29
- package/dist/stories/Tabs.stories.d.ts +4 -8
- package/dist/styles/colors.css +3 -17
- package/dist/styles/fonts.css +43 -0
- package/package.json +2 -3
- package/dist/assets/icons/arrow_down.svg +0 -3
- package/dist/assets/icons/arrow_left.svg +0 -10
- package/dist/assets/icons/arrow_up.svg +0 -3
- package/dist/assets/icons/close.svg +0 -10
- package/dist/assets/icons/home.svg +0 -10
- package/dist/assets/icons/icon_check.svg +0 -4
- package/dist/assets/icons/icon_trash.svg +0 -7
- package/dist/assets/icons/icon_warning.svg +0 -6
- package/dist/assets/icons/settings.svg +0 -11
- package/dist/assets/icons/thumbs_up.svg +0 -11
- package/dist/assets/icons/tick-circle.svg +0 -3
- package/dist/assets/icons/user.svg +0 -10
- package/dist/assets/img/carousel-example.png +0 -0
- package/dist/assets/img/facebook_logo.svg +0 -4
- package/dist/assets/img/google_logo.svg +0 -13
- package/dist/assets/img/icon_check.svg +0 -4
- package/dist/assets/img/icon_trash.svg +0 -7
- package/dist/assets/img/icon_warning.svg +0 -6
- package/dist/assets/img/image-upload-circle.svg +0 -6
- package/dist/assets/img/image-upload-disabled.svg +0 -6
- package/dist/assets/img/linkedin_logo.svg +0 -3
- package/dist/styles/fontStyles.d.ts +0 -6
- package/dist/styles/fontStyles.ts +0 -51
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{LitElement as t,css as e,html as i,nothing as o,isServer as s}from"lit";function r(t,e,i,o){var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n}function n(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}"function"==typeof SuppressedError&&SuppressedError;
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const a=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},l=globalThis,d=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),
|
|
7
|
+
const a=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},l=globalThis,d=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2019 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/let
|
|
12
|
+
*/let p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const u=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,c))(e)})(t):t,{is:b,defineProperty:f,getOwnPropertyDescriptor:m,getOwnPropertyNames:g,getOwnPropertySymbols:y,getPrototypeOf:v}=Object,x=globalThis,w=x.trustedTypes,$=w?w.emptyScript:"",k=x.reactiveElementPolyfillSupport,S=(t,e)=>t,C={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},E=(t,e)=>!b(t,e),A={attribute:!0,type:String,converter:C,reflect:!1,useDefault:!1,hasChanged:E};
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
|
-
*/Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=
|
|
17
|
+
*/Symbol.metadata??=Symbol("metadata"),x.litPropertyMetadata??=new WeakMap;class _ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&f(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:s}=m(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const r=o?.call(this);s?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??A}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const t=this.properties,e=[...g(t),...y(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(u(t))}else void 0!==t&&e.push(u(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(d)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=l.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==i.converter?.toAttribute?i.converter:C).toAttribute(e,i.type);this._$Em=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:C;this._$Em=o,this[o]=s.fromAttribute(e,t.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const o=this.constructor,s=this[t];if(i??=o.getPropertyOptions(t),!((i.hasChanged??E)(s,e)||i.useDefault&&i.reflect&&s===this._$Ej?.get(t)&&!this.hasAttribute(o._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:o,wrapped:s},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==s||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,i,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[S("elementProperties")]=new Map,_[S("finalized")]=new Map,k?.({ReactiveElement:_}),(x.reactiveElementVersions??=[]).push("2.1.0");
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
21
21
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
22
|
*/
|
|
23
|
-
const O={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:
|
|
23
|
+
const O={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:E},z=(t=O,e,i)=>{const{kind:o,metadata:s}=i;let r=globalThis.litPropertyMetadata.get(s);if(void 0===r&&globalThis.litPropertyMetadata.set(s,r=new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const s=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,s,t)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=i;return function(i){const s=this[o];e.call(this,i),this.requestUpdate(o,s,t)}}throw Error("Unsupported decorator location: "+o)};function T(t){return(e,i)=>"object"==typeof i?z(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
|
|
24
24
|
/**
|
|
25
25
|
* @license
|
|
26
26
|
* Copyright 2017 Google LLC
|
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/function
|
|
28
|
+
*/function P(t){return T({...t,state:!0,attribute:!1})}
|
|
29
29
|
/**
|
|
30
30
|
* @license
|
|
31
31
|
* Copyright 2017 Google LLC
|
|
@@ -36,61 +36,7 @@ const O={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:A},T=(t=O,e,
|
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
function I(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}t`
|
|
40
|
-
font-family: 'Graphik', sans-serif;
|
|
41
|
-
font-weight: 400;
|
|
42
|
-
font-size: 12px;
|
|
43
|
-
line-height: 15px;
|
|
44
|
-
letter-spacing: 0%;
|
|
45
|
-
`;const j=t`
|
|
46
|
-
font-family: 'Graphik', sans-serif;
|
|
47
|
-
font-weight: 400;
|
|
48
|
-
font-size: 14px;
|
|
49
|
-
line-height: 25px;
|
|
50
|
-
letter-spacing: 0%;
|
|
51
|
-
`,M=t`
|
|
52
|
-
font-family: 'Graphik', sans-serif;
|
|
53
|
-
font-weight: 400;
|
|
54
|
-
font-size: 16px;
|
|
55
|
-
line-height: 25px;
|
|
56
|
-
letter-spacing: 0%;
|
|
57
|
-
`,R=t`
|
|
58
|
-
font-family: 'Graphik', sans-serif;
|
|
59
|
-
font-weight: 400;
|
|
60
|
-
font-size: 18px;
|
|
61
|
-
line-height: 30px;
|
|
62
|
-
letter-spacing: 0%;
|
|
63
|
-
`,L=t`
|
|
64
|
-
font-family: 'Graphik', sans-serif;
|
|
65
|
-
font-weight: 400;
|
|
66
|
-
font-size: 20px;
|
|
67
|
-
line-height: 30px;
|
|
68
|
-
letter-spacing: -1%;
|
|
69
|
-
vertical-align: middle;
|
|
70
|
-
`,U=t`
|
|
71
|
-
font-family: 'Graphik', sans-serif;
|
|
72
|
-
font-weight: 400;
|
|
73
|
-
font-size: 26px;
|
|
74
|
-
line-height: 30px;
|
|
75
|
-
letter-spacing: -1%;
|
|
76
|
-
vertical-align: middle;
|
|
77
|
-
`
|
|
78
|
-
/**
|
|
79
|
-
* @license
|
|
80
|
-
* Copyright 2017 Google LLC
|
|
81
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
82
|
-
*/,N=globalThis,B=N.trustedTypes,V=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",H=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+H,D=`<${q}>`,G=document,W=()=>G.createComment(""),Y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,K=Array.isArray,X="[ \t\n\f\r]",J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,Q=/>/g,tt=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,it=/"/g,ot=/^(?:script|style|textarea|title)$/i,st=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),nt=new WeakMap,at=G.createTreeWalker(G,129);function lt(t,e){if(!K(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==V?V.createHTML(e):e}const dt=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":3===e?"<math>":"",n=J;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===J?"!--"===l[1]?n=Z:void 0!==l[1]?n=Q:void 0!==l[2]?(ot.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=tt):void 0!==l[3]&&(n=tt):n===tt?">"===l[0]?(n=s??J,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?tt:'"'===l[3]?it:et):n===it||n===et?n=tt:n===Z||n===Q?n=J:(n=tt,s=void 0);const p=n===tt&&t[e+1].startsWith("/>")?" ":"";r+=n===J?i+D:d>=0?(o.push(a),i.slice(0,d)+F+i.slice(d)+H+p):i+H+(-2===d?e:p)}return[lt(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class ct{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,d]=dt(t,e);if(this.el=ct.createElement(l,i),at.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=at.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(F)){const e=d[r++],i=o.getAttribute(t).split(H),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:n[2],strings:i,ctor:"."===n[1]?yt:"?"===n[1]?mt:"@"===n[1]?gt:bt}),o.removeAttribute(t)}else t.startsWith(H)&&(a.push({type:6,index:s}),o.removeAttribute(t));if(ot.test(o.tagName)){const t=o.textContent.split(H),e=t.length-1;if(e>0){o.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],W()),at.nextNode(),a.push({type:2,index:++s});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===q)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(H,t+1));)a.push({type:7,index:s}),t+=H.length-1}s++}}static createElement(t,e){const i=G.createElement("template");return i.innerHTML=t,i}}function pt(t,e,i=t,o){if(e===st)return e;let s=void 0!==o?i._$Co?.[o]:i._$Cl;const r=Y(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),void 0===r?s=void 0:(s=new r(t),s._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=s:i._$Cl=s),void 0!==s&&(e=pt(t,s._$AS(t,e.values),s,o)),e}class ht{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??G).importNode(e,!0);at.currentNode=o;let s=at.nextNode(),r=0,n=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new ut(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new ft(s,this,t)),this._$AV.push(e),a=i[++n]}r!==a?.index&&(s=at.nextNode(),r++)}return at.currentNode=G,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ut{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pt(this,t,e),Y(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>K(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==rt&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(G.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ct.createElement(lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new ht(o,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new ct(t)),e}k(t){K(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new ut(this.O(W()),this.O(W()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class bt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rt}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=pt(this,t,e,0),r=!Y(t)||t!==this._$AH&&t!==st,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=pt(this,o[i+n],e,n),a===st&&(a=this._$AH[n]),r||=!Y(a)||a!==this._$AH[n],a===rt?t=rt:t!==rt&&(t+=(a??"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class yt extends bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}}class mt extends bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}}class gt extends bt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??rt)===st)return;const i=this._$AH,o=t===rt&&i!==rt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==rt&&(i===rt||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ft{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){pt(this,t)}}const vt=N.litHtmlPolyfillSupport;vt?.(ct,ut),(N.litHtmlVersions??=[]).push("3.3.0");
|
|
83
|
-
/**
|
|
84
|
-
* @license
|
|
85
|
-
* Copyright 2017 Google LLC
|
|
86
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
87
|
-
*/
|
|
88
|
-
const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
89
|
-
/**
|
|
90
|
-
* @license
|
|
91
|
-
* Copyright 2018 Google LLC
|
|
92
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
|
-
*/const $t=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends wt{constructor(t){if(super(t),t.type!==xt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.st)t in e||(i.remove(t),this.st.delete(t));for(const t in e){const o=!!e[t];o===this.st.has(t)||this.nt?.has(t)||(o?(i.add(t),this.st.add(t)):(i.remove(t),this.st.delete(t)))}return st}});let kt=class extends e{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null,this.type="button"}static{this.styles=t`
|
|
39
|
+
function I(t,e){return(e,i,o)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let F=class extends t{constructor(){super(...arguments),this.variant="button-primary",this.size="md",this.label="",this.loader=!1,this.iconPosition="left",this.disabled=!1,this.iconName=null,this.type="button"}static{this.styles=e`
|
|
94
40
|
:host {
|
|
95
41
|
display: inline-block;
|
|
96
42
|
}
|
|
@@ -99,6 +45,7 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
99
45
|
display: flex;
|
|
100
46
|
align-items: center;
|
|
101
47
|
justify-content: center;
|
|
48
|
+
font-family: "Graphik", sans-serif;
|
|
102
49
|
border-radius: 4px;
|
|
103
50
|
cursor: pointer;
|
|
104
51
|
font-weight: 400;
|
|
@@ -110,12 +57,14 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
110
57
|
}
|
|
111
58
|
|
|
112
59
|
.button-lg {
|
|
113
|
-
|
|
60
|
+
font-size: 18px;
|
|
61
|
+
line-height: 30px;
|
|
114
62
|
min-height: 62px;
|
|
115
63
|
}
|
|
116
64
|
|
|
117
65
|
.button-md {
|
|
118
|
-
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
line-height: 25px;
|
|
119
68
|
min-height: 57px;
|
|
120
69
|
}
|
|
121
70
|
|
|
@@ -152,8 +101,8 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
152
101
|
}
|
|
153
102
|
|
|
154
103
|
.button-secondary:not([disabled]):hover {
|
|
155
|
-
color:
|
|
156
|
-
border-color:
|
|
104
|
+
color: #175197;
|
|
105
|
+
border-color: #175197;
|
|
157
106
|
}
|
|
158
107
|
|
|
159
108
|
.button-secondary:not([disabled]):active {
|
|
@@ -180,11 +129,11 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
180
129
|
}
|
|
181
130
|
|
|
182
131
|
.button-tertiary:not([disabled]):hover {
|
|
183
|
-
background:
|
|
132
|
+
background: #2175D90D;
|
|
184
133
|
}
|
|
185
134
|
|
|
186
135
|
.button-tertiary:not([disabled]):active {
|
|
187
|
-
background-color:
|
|
136
|
+
background-color: #2175D91A;
|
|
188
137
|
}
|
|
189
138
|
|
|
190
139
|
.button-tertiary:not([disabled]):focus-visible {
|
|
@@ -193,7 +142,7 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
193
142
|
}
|
|
194
143
|
|
|
195
144
|
.button-tertiary[disabled] {
|
|
196
|
-
color:
|
|
145
|
+
color: #6F758D;
|
|
197
146
|
cursor: not-allowed;
|
|
198
147
|
}
|
|
199
148
|
|
|
@@ -208,11 +157,11 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
208
157
|
}
|
|
209
158
|
|
|
210
159
|
.button-round:not([disabled]):hover {
|
|
211
|
-
background-color:
|
|
160
|
+
background-color: #E8F1FB;
|
|
212
161
|
}
|
|
213
162
|
|
|
214
163
|
.button-round:not([disabled]):active {
|
|
215
|
-
background-color:
|
|
164
|
+
background-color: #A6C8F0;
|
|
216
165
|
}
|
|
217
166
|
|
|
218
167
|
.button-round:not([disabled]):focus-visible {
|
|
@@ -278,13 +227,11 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
278
227
|
border: none;
|
|
279
228
|
color: var(--white);
|
|
280
229
|
}
|
|
281
|
-
`}handleClick(t){if(!this.disabled)if("submit"===this.type){const t=this.closest("form");t&&t.requestSubmit()}else this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0}))}render(){const t
|
|
230
|
+
`}handleClick(t){if(!this.disabled)if("submit"===this.type){const t=this.closest("form");t&&t.requestSubmit()}else this.dispatchEvent(new CustomEvent("button-click",{bubbles:!0,composed:!0}))}render(){const t=`button ${"button-round"===this.variant?"":`button-${this.size}`} ${this.variant} ${this.loader?"loader":""}`,e="button-tertiary"===this.variant?"#2175D9":"white";return i`
|
|
282
231
|
<button
|
|
283
|
-
part="button"
|
|
284
232
|
type=${this.type}
|
|
285
|
-
class=${
|
|
233
|
+
class=${t}
|
|
286
234
|
?disabled=${this.disabled}
|
|
287
|
-
?aria-busy=${this.loader}
|
|
288
235
|
@click=${this.handleClick}
|
|
289
236
|
>
|
|
290
237
|
${this.loader?i`
|
|
@@ -294,24 +241,26 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
294
241
|
<span class="dot" style="background-color: ${e};"></span>
|
|
295
242
|
</div>
|
|
296
243
|
`:i`
|
|
297
|
-
${this.iconSrc&&"button-round"===this.variant?i`<img src=${this.iconSrc} alt="icon" class="button-icon"
|
|
244
|
+
${this.iconSrc&&"button-round"===this.variant?i`<img src=${this.iconSrc} alt="icon" class="button-icon" />`:""}
|
|
298
245
|
${this.iconName&&"button-round"!==this.variant&&"left"===this.iconPosition?i`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
299
246
|
${this.label?i`<span>${this.label}</span>`:i`<slot></slot>`}
|
|
300
247
|
${this.iconName&&"button-round"!==this.variant&&"right"===this.iconPosition?i`<randstad-icon name=${this.iconName} size="24px"></randstad-icon>`:""}
|
|
301
248
|
`}
|
|
302
249
|
</button>
|
|
303
|
-
`}};r([
|
|
250
|
+
`}};r([T({type:String}),n("design:type",String)],F.prototype,"variant",void 0),r([T({type:String}),n("design:type",String)],F.prototype,"size",void 0),r([T({type:String}),n("design:type",Object)],F.prototype,"label",void 0),r([T({type:Boolean}),n("design:type",Object)],F.prototype,"loader",void 0),r([T({type:String}),n("design:type",String)],F.prototype,"iconSrc",void 0),r([T({type:String}),n("design:type",String)],F.prototype,"iconPosition",void 0),r([T({type:Boolean,reflect:!0}),n("design:type",Boolean)],F.prototype,"disabled",void 0),r([T({type:String}),n("design:type",Object)],F.prototype,"iconName",void 0),r([T({type:String}),n("design:type",String)],F.prototype,"type",void 0),F=r([a("randstad-button")],F);let j=class extends t{constructor(){super(...arguments),this.prefix="Acepto los",this.clause1Text="términos y condiciones",this.connector="y los",this.clause2Text="avisos de privacidad del sitio",this.checked=!1}static{this.styles=e`
|
|
304
251
|
:host {
|
|
305
252
|
display: block;
|
|
306
253
|
max-width: 100%;
|
|
307
254
|
}
|
|
308
255
|
|
|
309
256
|
label {
|
|
310
|
-
${j}
|
|
311
257
|
display: flex;
|
|
312
258
|
align-items: center;
|
|
313
259
|
gap: 8px;
|
|
314
|
-
|
|
260
|
+
font-family: Graphik, sans-serif;
|
|
261
|
+
font-size: 14px;
|
|
262
|
+
line-height: 25px;
|
|
263
|
+
color: #0F1941;
|
|
315
264
|
}
|
|
316
265
|
|
|
317
266
|
input[type="checkbox"] {
|
|
@@ -319,14 +268,14 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
319
268
|
min-height: 24px;
|
|
320
269
|
cursor: pointer;
|
|
321
270
|
border-radius: 4px;
|
|
322
|
-
border: 1px solid
|
|
271
|
+
border: 1px solid #CFD1D9;
|
|
323
272
|
appearance: none;
|
|
324
273
|
position: relative;
|
|
325
274
|
}
|
|
326
275
|
|
|
327
276
|
input[type="checkbox"]:checked {
|
|
328
|
-
background-color:
|
|
329
|
-
border: 1px solid
|
|
277
|
+
background-color: #2175D9;
|
|
278
|
+
border: 1px solid #2175D9;
|
|
330
279
|
}
|
|
331
280
|
|
|
332
281
|
input[type="checkbox"]:checked::after {
|
|
@@ -350,16 +299,14 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
350
299
|
}
|
|
351
300
|
|
|
352
301
|
.terms-link {
|
|
353
|
-
color:
|
|
302
|
+
color: #2175D9;
|
|
354
303
|
text-decoration: none;
|
|
355
304
|
cursor: pointer;
|
|
356
305
|
}
|
|
357
|
-
`}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new
|
|
306
|
+
`}toggleCheck(t){this.checked=t.target.checked,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("input",{bubbles:!0,composed:!0}))}renderClause(t,e){return e?i`<a class="terms-link" href="${e}" target="_blank" rel="noopener" @click=${this.stopPropagation}>${t}</a>`:i`${t}`}stopPropagation(t){t.stopPropagation()}render(){return i`
|
|
358
307
|
<label>
|
|
359
308
|
<input
|
|
360
309
|
type="checkbox"
|
|
361
|
-
role="checkbox"
|
|
362
|
-
aria-checked=${this.checked?"true":"false"}
|
|
363
310
|
.checked=${this.checked}
|
|
364
311
|
@change=${this.toggleCheck}
|
|
365
312
|
/>
|
|
@@ -370,7 +317,7 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
370
317
|
${this.renderClause(this.clause2Text,this.clause2Url)}.
|
|
371
318
|
</span>
|
|
372
319
|
</label>
|
|
373
|
-
`}};r([
|
|
320
|
+
`}};r([T({type:String}),n("design:type",Object)],j.prototype,"prefix",void 0),r([T({type:String}),n("design:type",Object)],j.prototype,"clause1Text",void 0),r([T({type:String}),n("design:type",String)],j.prototype,"clause1Url",void 0),r([T({type:String}),n("design:type",Object)],j.prototype,"connector",void 0),r([T({type:String}),n("design:type",Object)],j.prototype,"clause2Text",void 0),r([T({type:String}),n("design:type",String)],j.prototype,"clause2Url",void 0),r([T({type:Boolean,reflect:!0}),n("design:type",Object)],j.prototype,"checked",void 0),j=r([a("randstad-checkbox")],j);let M=class extends t{constructor(){super(...arguments),this.value="",this.size="md",this.icon=null,this.helper=null,this.error=!1,this.errorMessage="",this.success=!1,this.disabled=!1,this.typing=!1,this.type="text",this.isPasswordVisible=!1,this.cleanButton=!1}static{this.styles=e`
|
|
374
321
|
:host {
|
|
375
322
|
display: block;
|
|
376
323
|
font-family: 'Graphik', sans-serif;
|
|
@@ -392,10 +339,55 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
392
339
|
}
|
|
393
340
|
|
|
394
341
|
.form-label {
|
|
395
|
-
|
|
342
|
+
font-size: 16px;
|
|
343
|
+
line-height: 25px;
|
|
344
|
+
font-weight: 400;
|
|
396
345
|
color: var(--label-color, var(--secondary-color-80));
|
|
397
346
|
}
|
|
398
347
|
|
|
348
|
+
.tooltip-wrapper {
|
|
349
|
+
position: relative;
|
|
350
|
+
display: inline-flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.tooltip {
|
|
355
|
+
visibility: hidden;
|
|
356
|
+
position: absolute;
|
|
357
|
+
top: auto;
|
|
358
|
+
right: 125%;
|
|
359
|
+
left: auto;
|
|
360
|
+
transform: none;
|
|
361
|
+
background-color: #333;
|
|
362
|
+
color: #fff;
|
|
363
|
+
padding: 8px 12px;
|
|
364
|
+
border-radius: 4px;
|
|
365
|
+
font-size: 14px;
|
|
366
|
+
line-height: 20px;
|
|
367
|
+
white-space: nowrap;
|
|
368
|
+
z-index: 10;
|
|
369
|
+
opacity: 0;
|
|
370
|
+
transition: opacity 0.2s ease;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.tooltip::after {
|
|
374
|
+
content: '';
|
|
375
|
+
position: absolute;
|
|
376
|
+
right: -6px;
|
|
377
|
+
bottom: 50%;
|
|
378
|
+
transform: translateY(50%);
|
|
379
|
+
width: 0;
|
|
380
|
+
height: 0;
|
|
381
|
+
border-style: solid;
|
|
382
|
+
border-width: 6px 0 6px 6px;
|
|
383
|
+
border-color: transparent transparent transparent #333;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.tooltip-wrapper:hover .tooltip {
|
|
387
|
+
visibility: visible;
|
|
388
|
+
opacity: 1;
|
|
389
|
+
}
|
|
390
|
+
|
|
399
391
|
.form-container {
|
|
400
392
|
position: relative;
|
|
401
393
|
display: flex;
|
|
@@ -404,43 +396,52 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
404
396
|
}
|
|
405
397
|
|
|
406
398
|
.form-input {
|
|
407
|
-
|
|
399
|
+
font-size: 18px;
|
|
400
|
+
line-height: 30px;
|
|
408
401
|
padding: 16px;
|
|
409
402
|
border: 1px solid var(--secondary-color-10);
|
|
410
403
|
border-radius: 4px;
|
|
411
404
|
outline: none;
|
|
412
405
|
transition: border-color 0.3s ease, box-shadow 0.3s ease;
|
|
413
406
|
width: 100%;
|
|
414
|
-
color:
|
|
407
|
+
color: #0F1941;
|
|
415
408
|
}
|
|
416
409
|
|
|
417
410
|
.form.error .form-input {
|
|
418
|
-
background-color:
|
|
419
|
-
border-color:
|
|
411
|
+
background-color: #FDF3F3;
|
|
412
|
+
border-color: #e3342f;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.form.success .form-input {
|
|
416
|
+
border-color: #28a745;
|
|
417
|
+
background-color: #d4edda;
|
|
420
418
|
}
|
|
421
419
|
|
|
422
420
|
/* Hover normal (sin error ni foco) */
|
|
423
421
|
.form:not(.error):not(:focus-within) .form-input:hover {
|
|
424
|
-
box-shadow: 0px 0px 0px 4px
|
|
422
|
+
box-shadow: 0px 0px 0px 4px #D1D3DB;
|
|
425
423
|
}
|
|
426
424
|
|
|
427
425
|
/* Hover con error (sin foco) */
|
|
428
426
|
.form.error:not(:focus-within) .form-input:hover {
|
|
429
|
-
box-shadow: 0px 0px 0px 4px
|
|
427
|
+
box-shadow: 0px 0px 0px 4px #E00F0F1A;
|
|
430
428
|
}
|
|
431
429
|
|
|
432
430
|
.form-input:focus {
|
|
433
|
-
border: 2px solid
|
|
431
|
+
border: 2px solid #2175D9
|
|
434
432
|
}
|
|
435
433
|
|
|
436
434
|
.form.disabled .form-input {
|
|
437
|
-
background-color:
|
|
435
|
+
background-color: #f5f5f5;
|
|
438
436
|
cursor: not-allowed;
|
|
439
437
|
}
|
|
440
438
|
|
|
441
439
|
input::placeholder {
|
|
442
|
-
|
|
440
|
+
font-family: 'Graphik', sans-serif;
|
|
443
441
|
color: var(--secondary-color-40);
|
|
442
|
+
font-size: 18px;
|
|
443
|
+
line-height: 30px;
|
|
444
|
+
font-weight: 400;
|
|
444
445
|
}
|
|
445
446
|
|
|
446
447
|
.input-with-button {
|
|
@@ -477,7 +478,11 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
477
478
|
}
|
|
478
479
|
|
|
479
480
|
textarea {
|
|
480
|
-
|
|
481
|
+
font-family: Graphik;
|
|
482
|
+
font-weight: 400;
|
|
483
|
+
font-size: 18px;
|
|
484
|
+
line-height: 30px;
|
|
485
|
+
letter-spacing: 0%;
|
|
481
486
|
resize: none;
|
|
482
487
|
}
|
|
483
488
|
|
|
@@ -487,12 +492,14 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
487
492
|
}
|
|
488
493
|
|
|
489
494
|
.form.disabled textarea.form-input {
|
|
490
|
-
background-color:
|
|
495
|
+
background-color: #f5f5f5;
|
|
491
496
|
cursor: not-allowed;
|
|
492
497
|
}
|
|
493
498
|
|
|
494
499
|
.helper-description {
|
|
495
|
-
|
|
500
|
+
font-size: 16px;
|
|
501
|
+
font-weight: 400;
|
|
502
|
+
line-height: 25px;
|
|
496
503
|
color: var(--secondary-color-40);
|
|
497
504
|
margin: 0px;
|
|
498
505
|
}
|
|
@@ -502,15 +509,21 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
502
509
|
}
|
|
503
510
|
|
|
504
511
|
.error-message {
|
|
505
|
-
|
|
512
|
+
font-size: 16px;
|
|
513
|
+
line-height: 25px;
|
|
506
514
|
color: var(--ui-negative);
|
|
507
515
|
margin: 0px;
|
|
508
516
|
}
|
|
509
517
|
|
|
510
518
|
.link-text {
|
|
511
|
-
|
|
512
|
-
|
|
519
|
+
font-size: 16px;
|
|
520
|
+
line-height: 25px;
|
|
521
|
+
color: #2175D9;
|
|
513
522
|
cursor: pointer;
|
|
523
|
+
margin: 0px;
|
|
524
|
+
font-family: Graphik;
|
|
525
|
+
font-weight: 400;
|
|
526
|
+
letter-spacing: 0%;
|
|
514
527
|
text-align: end;
|
|
515
528
|
text-decoration: none;
|
|
516
529
|
vertical-align: middle;
|
|
@@ -521,11 +534,20 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
521
534
|
}
|
|
522
535
|
|
|
523
536
|
.link-text:hover {
|
|
524
|
-
color:
|
|
537
|
+
color: #0f3b65;
|
|
525
538
|
}
|
|
526
539
|
|
|
527
|
-
randstad-icon {
|
|
528
|
-
color:
|
|
540
|
+
.tooltip-wrapper randstad-icon {
|
|
541
|
+
color: #2175D9 !important;
|
|
542
|
+
}
|
|
543
|
+
.tooltip-wrapper randstad-icon svg {
|
|
544
|
+
fill: #2175D9 !important;
|
|
545
|
+
}
|
|
546
|
+
.toggle-password randstad-icon {
|
|
547
|
+
color: #2175D9 !important;
|
|
548
|
+
}
|
|
549
|
+
.toggle-password randstad-icon svg {
|
|
550
|
+
fill: #2175D9 !important;
|
|
529
551
|
}
|
|
530
552
|
|
|
531
553
|
.clean-button {
|
|
@@ -542,65 +564,20 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
542
564
|
width: 40px;
|
|
543
565
|
height: 40px;
|
|
544
566
|
}
|
|
545
|
-
|
|
546
567
|
.clean-button randstad-icon {
|
|
547
568
|
width: 24px;
|
|
548
569
|
height: 24px;
|
|
549
570
|
}
|
|
550
|
-
|
|
551
|
-
// TOOLTIP, NO SE ESTÁ USANDO EN FORMS EN ESTE MOMENTO, PERO SE DEJA POR SI SE NECESITA
|
|
552
|
-
.tooltip-wrapper {
|
|
553
|
-
position: relative;
|
|
554
|
-
display: inline-flex;
|
|
555
|
-
align-items: center;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
.tooltip {
|
|
559
|
-
visibility: hidden;
|
|
560
|
-
position: absolute;
|
|
561
|
-
top: auto;
|
|
562
|
-
right: 125%;
|
|
563
|
-
left: auto;
|
|
564
|
-
transform: none;
|
|
565
|
-
background-color: #333;
|
|
566
|
-
color: #fff;
|
|
567
|
-
padding: 8px 12px;
|
|
568
|
-
border-radius: 4px;
|
|
569
|
-
font-size: 14px;
|
|
570
|
-
line-height: 20px;
|
|
571
|
-
white-space: nowrap;
|
|
572
|
-
z-index: 10;
|
|
573
|
-
opacity: 0;
|
|
574
|
-
transition: opacity 0.2s ease;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
.tooltip::after {
|
|
578
|
-
content: '';
|
|
579
|
-
position: absolute;
|
|
580
|
-
right: -6px;
|
|
581
|
-
bottom: 50%;
|
|
582
|
-
transform: translateY(50%);
|
|
583
|
-
width: 0;
|
|
584
|
-
height: 0;
|
|
585
|
-
border-style: solid;
|
|
586
|
-
border-width: 6px 0 6px 6px;
|
|
587
|
-
border-color: transparent transparent transparent #333;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.tooltip-wrapper:hover .tooltip {
|
|
591
|
-
visibility: visible;
|
|
592
|
-
opacity: 1;
|
|
593
|
-
}
|
|
594
|
-
`}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}render(){const t=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type;return i`
|
|
571
|
+
`}togglePassword(t){this.isPasswordVisible=!this.isPasswordVisible;const e=t.currentTarget.parentElement?.querySelector("input");e&&(e.type=this.isPasswordVisible?"text":"password"),this.requestUpdate()}handleInput(t){const e=t.target.value;void 0!==this.maxLength&&"textarea"!==this.type?this.value=e.slice(0,this.maxLength):this.value=e,this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleClear(){this.value="",this.dispatchEvent(new CustomEvent("valueChanged",{detail:this.value})),this.dispatchEvent(new Event("input",{bubbles:!0})),this.requestUpdate()}handleLinkClick(t){t.preventDefault(),this.linkRoute&&this.dispatchEvent(new CustomEvent("linkClicked",{detail:this.linkRoute,bubbles:!0,composed:!0}))}handleKeyDown(t){if("Enter"===t.key){const t=new Event("submit",{bubbles:!0,composed:!0,cancelable:!0}),e=this.closest("form");e&&e.dispatchEvent(t)}}render(){const t=this.cleanButton&&this.value&&"password"!==this.type&&"textarea"!==this.type;return i`
|
|
595
572
|
<div
|
|
596
|
-
class="form ${this.error?"error":""} ${this.disabled?"disabled":""}"
|
|
573
|
+
class="form ${this.error?"error":""} ${this.success?"success":""} ${this.disabled?"disabled":""}"
|
|
597
574
|
style=${this.labelColor?`--label-color: ${this.labelColor}`:o}
|
|
598
575
|
>
|
|
599
576
|
${this.label?i`
|
|
600
577
|
<div class="label-container">
|
|
601
578
|
<label class="form-label">${this.label}</label>
|
|
602
579
|
${this.tooltipMessage?.trim()?i`<div class="tooltip-wrapper">
|
|
603
|
-
<randstad-icon class="help-icon" name="ayuda" size="20px"></randstad-icon>
|
|
580
|
+
<randstad-icon class="help-icon" name="ayuda" size="20px" color="#2175D9"></randstad-icon>
|
|
604
581
|
</div>`:o}
|
|
605
582
|
</div>
|
|
606
583
|
`:o}
|
|
@@ -616,6 +593,8 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
616
593
|
.value=${this.value}
|
|
617
594
|
?disabled=${this.disabled}
|
|
618
595
|
@input=${this.handleInput}
|
|
596
|
+
@keydown=${this.handleKeyDown}
|
|
597
|
+
maxlength=${this.maxLength??o}
|
|
619
598
|
></textarea>`:i`
|
|
620
599
|
<input
|
|
621
600
|
class="form-input"
|
|
@@ -624,15 +603,16 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
624
603
|
.value=${this.value}
|
|
625
604
|
?disabled=${this.disabled}
|
|
626
605
|
@input=${this.handleInput}
|
|
606
|
+
@keydown=${this.handleKeyDown}
|
|
627
607
|
maxlength=${this.maxLength??o}
|
|
628
608
|
/>
|
|
629
609
|
|
|
630
610
|
${"password"===this.type?i`<button type="button" class="toggle-password" @click=${this.togglePassword}>
|
|
631
|
-
${this.isPasswordVisible?i`<randstad-icon name='eye_crossed' size="24px"></randstad-icon>`:i`<randstad-icon name='eye' size="24px"></randstad-icon>`}
|
|
611
|
+
${this.isPasswordVisible?i`<randstad-icon name='eye_crossed' size="24px" color="#2175D9"></randstad-icon>`:i`<randstad-icon name='eye' size="24px" color="#2175D9"></randstad-icon>`}
|
|
632
612
|
</button>`:o}
|
|
633
613
|
|
|
634
614
|
${t?i`<button type="button" class="clean-button" @click=${this.handleClear}>
|
|
635
|
-
<randstad-icon name="close" size="24px"
|
|
615
|
+
<randstad-icon name="close" size="24px" color="#2175D9"></randstad-icon>
|
|
636
616
|
</button>`:o}
|
|
637
617
|
`}
|
|
638
618
|
</div>
|
|
@@ -646,12 +626,12 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
646
626
|
</p>`:o}
|
|
647
627
|
|
|
648
628
|
${this.linkText&&this.linkRoute?i`<div style="text-align: end;">
|
|
649
|
-
<a class="link-text" @click=${this.handleLinkClick}>${this.linkText}</a>
|
|
629
|
+
<a class="link-text" href="#" @click=${this.handleLinkClick}>${this.linkText}</a>
|
|
650
630
|
</div>`:o}
|
|
651
631
|
|
|
652
632
|
${this.helper?i`<p class="helper-description">${this.helper}</p>`:o}
|
|
653
633
|
</div>
|
|
654
|
-
`}};r([
|
|
634
|
+
`}};r([T({type:String}),n("design:type",String)],M.prototype,"placeholder",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"label",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"labelColor",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"value",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"size",void 0),r([T({type:String}),n("design:type",Object)],M.prototype,"icon",void 0),r([T({type:String}),n("design:type",Object)],M.prototype,"helper",void 0),r([T({type:Boolean}),n("design:type",Boolean)],M.prototype,"error",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"errorMessage",void 0),r([T({type:Boolean}),n("design:type",Boolean)],M.prototype,"success",void 0),r([T({type:Boolean}),n("design:type",Boolean)],M.prototype,"disabled",void 0),r([T({type:Boolean}),n("design:type",Boolean)],M.prototype,"typing",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"type",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"tooltipMessage",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"linkText",void 0),r([T({type:String}),n("design:type",String)],M.prototype,"linkRoute",void 0),r([T({type:Boolean,reflect:!0}),n("design:type",Object)],M.prototype,"isPasswordVisible",void 0),r([T({type:Boolean}),n("design:type",Boolean)],M.prototype,"cleanButton",void 0),r([T({type:Number}),n("design:type",Number)],M.prototype,"maxLength",void 0),M=r([a("randstad-form")],M);class D extends t{static{this.styles=e`
|
|
655
635
|
:host {
|
|
656
636
|
display: inline-flex;
|
|
657
637
|
width: var(--icon-size, 24px);
|
|
@@ -659,68 +639,13 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
659
639
|
align-items: center;
|
|
660
640
|
justify-content: center;
|
|
661
641
|
}
|
|
662
|
-
|
|
663
642
|
svg {
|
|
664
|
-
width: var(--icon-size, 24px);
|
|
665
|
-
height: var(--icon-size, 24px);
|
|
643
|
+
width: var(--icon-size, 24px); /* Tamaño fijo basado en size */
|
|
644
|
+
height: var(--icon-size, 24px); /* Tamaño fijo basado en size */
|
|
666
645
|
fill: var(--icon-color, currentColor);
|
|
667
646
|
}
|
|
668
|
-
`}connectedCallback(){super.connectedCallback(),this.style.setProperty("--icon-size",this.size)
|
|
669
|
-
:host {
|
|
670
|
-
display: block;
|
|
671
|
-
font-family: 'Graphik', sans-serif;
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
.container {
|
|
675
|
-
${M}
|
|
676
|
-
display: flex;
|
|
677
|
-
align-items: flex-start;
|
|
678
|
-
gap: 8px;
|
|
679
|
-
border-radius: 8px;
|
|
680
|
-
padding: 16px;
|
|
681
|
-
color: var(--secondary-color);
|
|
682
|
-
}
|
|
683
|
-
|
|
684
|
-
.icon {
|
|
685
|
-
font-size: 34px;
|
|
686
|
-
flex-shrink: 0;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
.hidden {
|
|
690
|
-
display: none;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
.success {
|
|
694
|
-
border: 1px solid var(--ui-positive);
|
|
695
|
-
background: var(--ui-positive-5);
|
|
696
|
-
--icon-color: var(--ui-positive);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.error {
|
|
700
|
-
border: 1px solid var(--ui-negative);
|
|
701
|
-
background: var(--ui-negative-5);
|
|
702
|
-
--icon-color: var(--ui-negative);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
.warning {
|
|
706
|
-
border: 1px solid var(--ui-warning);
|
|
707
|
-
background: var(--ui-warning-10);
|
|
708
|
-
--icon-color: var(--ui-warning);
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
.informative {
|
|
712
|
-
border: 1px solid var(--ui-informative);
|
|
713
|
-
background: var(--ui-informative-10);
|
|
714
|
-
--icon-color: var(--ui-informative);
|
|
715
|
-
}
|
|
716
|
-
`}render(){return i`
|
|
717
|
-
<div class="container ${this.open?"":"hidden"} ${this.type}">
|
|
718
|
-
<randstad-icon class="icon" name="${this.icon}" size="24px" style="color: var(--icon-color);"></randstad-icon>
|
|
719
|
-
<span class="message">${this.message}</span>
|
|
720
|
-
</div>
|
|
721
|
-
`}};r([P({type:String}),n("design:type",String)],Et.prototype,"type",void 0),r([P({type:String}),n("design:type",String)],Et.prototype,"icon",void 0),r([P({type:String}),n("design:type",String)],Et.prototype,"message",void 0),r([P({type:Boolean}),n("design:type",Boolean)],Et.prototype,"open",void 0),Et=r([a("randstad-notice")],Et);let _t=class extends e{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.scrollable=!1,this.showNotice=!1,this.noticeType="informative",this.noticeMessage="",this.noticeIcon="info",this.showPrimaryButton=!1,this.primaryButtonLabel="Aceptar",this.showSecondaryButton=!1,this.secondaryButtonLabel="Cancelar"}static{this.styles=t`
|
|
647
|
+
`}constructor(){super(),this.name="",this.size="24px",this.color=""}connectedCallback(){super.connectedCallback(),this.name&&this.loadIcon()}updated(t){t.has("name")&&this.name&&this.loadIcon(),t.has("size")&&this.style.setProperty("--icon-size",this.size),t.has("color")&&this.style.setProperty("--icon-color",this.color)}async loadIcon(){if(this.name)try{const t=await fetch(`/assets/icons/${this.name}.svg`);if(!t.ok)throw new Error("Icon not found");const e=await t.text(),i=new DOMParser,o=i.parseFromString(e,"image/svg+xml").querySelector("svg");if(!o)throw new Error("No se encontró un elemento SVG válido");o.removeAttribute("fill"),o.setAttribute("width",this.size||"24px"),o.setAttribute("height",this.size||"24px"),this.renderRoot.innerHTML="",this.renderRoot.appendChild(o)}catch(t){console.error(`❌ Error cargando icono ${this.name}:`,t),this.renderRoot.innerHTML="<span>⚠️</span>"}else this.renderRoot.innerHTML=""}render(){return null}}r([T({type:String}),n("design:type",String)],D.prototype,"name",void 0),r([T({type:String}),n("design:type",String)],D.prototype,"size",void 0),r([T({type:String}),n("design:type",String)],D.prototype,"color",void 0),customElements.define("randstad-icon",D);let R=class extends t{constructor(){super(...arguments),this.open=!1,this.title="Título del modal",this.scrollable=!1}static{this.styles=e`
|
|
722
648
|
:host {
|
|
723
|
-
font-family: 'Graphik', sans-serif;
|
|
724
649
|
display: none;
|
|
725
650
|
}
|
|
726
651
|
|
|
@@ -740,84 +665,51 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
740
665
|
}
|
|
741
666
|
|
|
742
667
|
.overlay.scroll {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
.modal-body {
|
|
776
|
-
display: flex;
|
|
777
|
-
flex-direction: column;
|
|
778
|
-
padding: 24px;
|
|
779
|
-
gap: 16px;
|
|
780
|
-
}
|
|
668
|
+
display: flex;
|
|
669
|
+
align-items: center;
|
|
670
|
+
justify-content: center;
|
|
671
|
+
height: 100%;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.overlay.no-scroll {
|
|
675
|
+
display: block;
|
|
676
|
+
height: auto;
|
|
677
|
+
min-height: 100vh;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.modal {
|
|
681
|
+
background: #f7f5f0;
|
|
682
|
+
width: 100%;
|
|
683
|
+
max-width: 500px;
|
|
684
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
685
|
+
display: flex;
|
|
686
|
+
flex-direction: column;
|
|
687
|
+
margin: 40px auto;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
.modal.scrollable {
|
|
691
|
+
max-height: 90vh;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.modal-body.scrollable {
|
|
695
|
+
overflow-y: auto;
|
|
696
|
+
flex: 1;
|
|
697
|
+
}
|
|
781
698
|
|
|
782
699
|
.modal-header {
|
|
783
700
|
display: flex;
|
|
784
|
-
flex-direction: column;
|
|
785
|
-
gap: 8px;
|
|
786
|
-
justify-content: space-between;
|
|
787
|
-
align-items: center;
|
|
788
|
-
padding: 24px;
|
|
789
|
-
border-bottom: 1px solid var(--secondary-color-20);
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
.modal-header-content {
|
|
793
|
-
display: flex;
|
|
794
|
-
gap: 32px;
|
|
795
|
-
width: 100%;
|
|
796
701
|
justify-content: space-between;
|
|
797
702
|
align-items: center;
|
|
703
|
+
padding: 25px;
|
|
704
|
+
border-bottom: 1px solid #E0E0E0;
|
|
798
705
|
}
|
|
799
706
|
|
|
800
|
-
|
|
801
|
-
display: flex;
|
|
802
|
-
flex-direction: column;
|
|
803
|
-
gap: 8px;
|
|
804
|
-
flex-grow: 1;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
.modal-title {
|
|
808
|
-
${U}
|
|
809
|
-
margin: 0;
|
|
810
|
-
color: var(--secondary-color);
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
.modal-subtitle {
|
|
814
|
-
${M}
|
|
707
|
+
h3 {
|
|
815
708
|
margin: 0;
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
width: 100%;
|
|
709
|
+
font-weight: 400;
|
|
710
|
+
font-size: 20px;
|
|
711
|
+
line-height: 30px;
|
|
712
|
+
color: #0F1941;
|
|
821
713
|
}
|
|
822
714
|
|
|
823
715
|
.modal-close {
|
|
@@ -830,80 +722,89 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
830
722
|
padding: 0;
|
|
831
723
|
}
|
|
832
724
|
|
|
833
|
-
.modal-
|
|
834
|
-
|
|
835
|
-
justify-content: flex-end;
|
|
836
|
-
flex-direction: row;
|
|
837
|
-
padding: 24px;
|
|
838
|
-
gap: 16px;
|
|
839
|
-
border-top: 1px solid var(--secondary-color-20);
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
.modal-footer.one-button randstad-button {
|
|
843
|
-
width: 100%;
|
|
725
|
+
.modal-body {
|
|
726
|
+
padding: 20px 25px;
|
|
844
727
|
}
|
|
845
728
|
|
|
846
|
-
.modal-
|
|
847
|
-
|
|
729
|
+
.modal-body.scrollable {
|
|
730
|
+
overflow-y: auto;
|
|
731
|
+
flex: 1;
|
|
848
732
|
}
|
|
849
733
|
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
.modal-footer.two-buttons randstad-button {
|
|
856
|
-
width: 100%;
|
|
857
|
-
}
|
|
734
|
+
.modal-footer {
|
|
735
|
+
display: flex;
|
|
736
|
+
justify-content: flex-end;
|
|
737
|
+
padding: 20px 25px;
|
|
738
|
+
border-top: 1px solid #E0E0E0;
|
|
858
739
|
}
|
|
859
740
|
`}closeModal(){this.dispatchEvent(new CustomEvent("modal-close")),this.open=!1}render(){return i`
|
|
860
|
-
<div class="overlay ${this.scrollable?"scroll":"no-scroll"}"
|
|
741
|
+
<div class="overlay ${this.scrollable?"scroll":"no-scroll"}">
|
|
861
742
|
<div class="modal ${this.scrollable?"scrollable":""}">
|
|
862
743
|
<div class="modal-header">
|
|
863
|
-
<
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
</div>
|
|
868
|
-
<button class="modal-close" @click=${this.closeModal} aria-label="Cerrar modal">
|
|
869
|
-
<randstad-icon name="close" size="24px" style="--icon-color: var(--primary-color);"></randstad-icon>
|
|
870
|
-
</button>
|
|
871
|
-
</div>
|
|
872
|
-
${this.showNotice?i`
|
|
873
|
-
<randstad-notice
|
|
874
|
-
.open=${!0}
|
|
875
|
-
.type=${this.noticeType}
|
|
876
|
-
.icon=${this.noticeIcon}
|
|
877
|
-
.message=${this.noticeMessage}
|
|
878
|
-
></randstad-notice>
|
|
879
|
-
`:o}
|
|
744
|
+
<h3>${this.title}</h3>
|
|
745
|
+
<button class="modal-close" @click=${this.closeModal} aria-label="Cerrar modal">
|
|
746
|
+
<randstad-icon name="close" size="24px"></randstad-icon>
|
|
747
|
+
</button>
|
|
880
748
|
</div>
|
|
881
749
|
<div class="modal-body ${this.scrollable?"scrollable":""}">
|
|
882
750
|
<slot name="content"></slot>
|
|
883
751
|
</div>
|
|
884
|
-
<div class="modal-footer
|
|
885
|
-
|
|
886
|
-
<randstad-button
|
|
887
|
-
variant="button-primary"
|
|
888
|
-
size="md"
|
|
889
|
-
@click=${()=>this.dispatchEvent(new CustomEvent("primary-click"))}
|
|
890
|
-
label=${this.primaryButtonLabel}
|
|
891
|
-
>
|
|
892
|
-
</randstad-button>
|
|
893
|
-
`:o}
|
|
894
|
-
${this.showSecondaryButton?i`
|
|
895
|
-
<randstad-button
|
|
896
|
-
variant="button-secondary"
|
|
897
|
-
size="md"
|
|
898
|
-
@click=${()=>this.dispatchEvent(new CustomEvent("secondary-click"))}
|
|
899
|
-
label=${this.secondaryButtonLabel}
|
|
900
|
-
>
|
|
901
|
-
</randstad-button>
|
|
902
|
-
`:o}
|
|
752
|
+
<div class="modal-footer">
|
|
753
|
+
<slot name="confirm-button"></slot>
|
|
903
754
|
</div>
|
|
904
755
|
</div>
|
|
905
756
|
</div>
|
|
906
|
-
`}};r([
|
|
757
|
+
`}};r([T({type:Boolean,reflect:!0}),n("design:type",Object)],R.prototype,"open",void 0),r([T({type:String}),n("design:type",Object)],R.prototype,"title",void 0),r([T({type:Boolean}),n("design:type",Object)],R.prototype,"scrollable",void 0),R=r([a("custom-modal")],R);class U extends t{static{this.styles=e`
|
|
758
|
+
:host {
|
|
759
|
+
display: block;
|
|
760
|
+
border-radius: 4px;
|
|
761
|
+
font-size: 16px;
|
|
762
|
+
line-height: 25px;
|
|
763
|
+
font-weight: 400;
|
|
764
|
+
color: white;
|
|
765
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
766
|
+
font-family: 'Graphik', sans-serif;
|
|
767
|
+
}
|
|
768
|
+
.container {
|
|
769
|
+
display: flex;
|
|
770
|
+
color: #0F1941;
|
|
771
|
+
align-items: flex-start;
|
|
772
|
+
gap: 8px;
|
|
773
|
+
border-radius: 8px;
|
|
774
|
+
padding: 16px;
|
|
775
|
+
}
|
|
776
|
+
.icon {
|
|
777
|
+
font-size: 34px;
|
|
778
|
+
}
|
|
779
|
+
.hidden {
|
|
780
|
+
display: none;
|
|
781
|
+
}
|
|
782
|
+
.success {
|
|
783
|
+
border: 1px solid #257156;
|
|
784
|
+
background: #F4F8F6;
|
|
785
|
+
--icon-color: #257156;
|
|
786
|
+
}
|
|
787
|
+
.error {
|
|
788
|
+
border: 1px solid #E00F0F;
|
|
789
|
+
background: #FDF3F3;
|
|
790
|
+
--icon-color: #E00F0F;
|
|
791
|
+
}
|
|
792
|
+
.warning {
|
|
793
|
+
border: 1px solid #E9A204;
|
|
794
|
+
background: #FCF5E5;
|
|
795
|
+
--icon-color: #E9A204;
|
|
796
|
+
}
|
|
797
|
+
.informative {
|
|
798
|
+
border: 1px solid #4E90E1;
|
|
799
|
+
background: #E8F1FB;
|
|
800
|
+
--icon-color: #4E90E1;
|
|
801
|
+
}
|
|
802
|
+
`}constructor(){super(),this.type="informative",this.icon="info",this.message="Este es un mensaje.",this.open=!1}static get properties(){return{type:{type:String},icon:{type:String},message:{type:String},open:{type:Boolean}}}render(){return console.log("Notice rendering with icon:",this.icon),i`
|
|
803
|
+
<div class="container ${this.open?"":"hidden"} ${this.type}">
|
|
804
|
+
<randstad-icon class="icon" name="${this.icon}" size="24px" style="color: var(--icon-color);"></randstad-icon>
|
|
805
|
+
<span class="message">${this.message}</span>
|
|
806
|
+
</div>
|
|
807
|
+
`}}customElements.define("randstad-notice",U);let L=class extends t{constructor(){super(...arguments),this.open=!1,this.type="default",this.icon="warning",this.title="Título del Popup",this.description="Descripción del popup",this.width="400px",this.buttonText="Aceptar",this.confirmText="Sí",this.cancelText="No"}static{this.styles=e`
|
|
907
808
|
:host {
|
|
908
809
|
display: none;
|
|
909
810
|
position: fixed;
|
|
@@ -916,122 +817,95 @@ const xt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
916
817
|
align-items: center;
|
|
917
818
|
font-family: "Graphik", sans-serif;
|
|
918
819
|
}
|
|
919
|
-
|
|
920
820
|
:host([open]) {
|
|
921
821
|
display: flex;
|
|
922
822
|
}
|
|
923
|
-
|
|
924
823
|
.popup {
|
|
925
|
-
background:
|
|
926
|
-
padding:
|
|
927
|
-
border-radius:
|
|
824
|
+
background: white;
|
|
825
|
+
padding: 20px;
|
|
826
|
+
border-radius: 8px;
|
|
827
|
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
928
828
|
text-align: center;
|
|
929
829
|
animation: fadeIn 0.2s ease-in-out;
|
|
930
830
|
width: var(--popup-width, 400px);
|
|
931
|
-
display: flex;
|
|
932
|
-
flex-direction: column;
|
|
933
|
-
gap: 24px;
|
|
934
|
-
align-items: center;
|
|
935
831
|
}
|
|
936
|
-
|
|
937
832
|
@keyframes fadeIn {
|
|
938
833
|
from { opacity: 0; transform: scale(0.9); }
|
|
939
834
|
to { opacity: 1; transform: scale(1); }
|
|
940
835
|
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
display: flex;
|
|
950
|
-
flex-direction: column;
|
|
951
|
-
gap: 8px;
|
|
952
|
-
align-items: center;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
.popup-title {
|
|
956
|
-
${L}
|
|
957
|
-
margin: 0;
|
|
958
|
-
color: var(--secondary-color-80);
|
|
836
|
+
h2 {
|
|
837
|
+
font-family: Graphik;
|
|
838
|
+
font-weight: 400;
|
|
839
|
+
font-size: 20px;
|
|
840
|
+
line-height: 22px;
|
|
841
|
+
letter-spacing: 0%;
|
|
842
|
+
text-align: center;
|
|
843
|
+
color: #404767;
|
|
959
844
|
}
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
845
|
+
p {
|
|
846
|
+
font-family: Graphik;
|
|
847
|
+
font-weight: 400;
|
|
848
|
+
font-size: 16px;
|
|
849
|
+
line-height: 17.6px;
|
|
850
|
+
letter-spacing: 0%;
|
|
851
|
+
text-align: center;
|
|
852
|
+
color: #6F758D;
|
|
965
853
|
}
|
|
966
|
-
|
|
967
|
-
.buttons-container {
|
|
854
|
+
.buttons {
|
|
968
855
|
margin-top: 12px;
|
|
969
856
|
display: flex;
|
|
857
|
+
justify-content: space-around;
|
|
970
858
|
gap: 10px;
|
|
971
859
|
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
variant="button-secondary"
|
|
1009
|
-
size="md"
|
|
1010
|
-
@click=${()=>this.closePopup(!1)}
|
|
1011
|
-
label=${this.cancelText}
|
|
1012
|
-
></randstad-button>
|
|
1013
|
-
<randstad-button
|
|
1014
|
-
variant="button-primary"
|
|
1015
|
-
size="md"
|
|
1016
|
-
@click=${()=>this.closePopup(!0)}
|
|
1017
|
-
label=${this.confirmText}
|
|
1018
|
-
></randstad-button>
|
|
1019
|
-
</div>
|
|
1020
|
-
`}
|
|
1021
|
-
</div>
|
|
860
|
+
button {
|
|
861
|
+
border: none;
|
|
862
|
+
cursor: pointer;
|
|
863
|
+
font-size: 14px;
|
|
864
|
+
font-weight: 400;
|
|
865
|
+
width: 100%;
|
|
866
|
+
width: 212;
|
|
867
|
+
height: 57;
|
|
868
|
+
border-radius: 4px;
|
|
869
|
+
padding: 16px;
|
|
870
|
+
font-family: Graphik;
|
|
871
|
+
}
|
|
872
|
+
.accept { background-color: #2175D9; color: white; }
|
|
873
|
+
.cancel { background-color: #FFFFFF; border: 1px solid #2175D9; color: #2175D9 }
|
|
874
|
+
.primary { background-color: #2175D9; color: white; }
|
|
875
|
+
`}closePopup(t){this.dispatchEvent(new CustomEvent("popup-close",{detail:t})),this.open=!1}render(){return i`
|
|
876
|
+
<div class="popup" style="width: ${this.width};">
|
|
877
|
+
${"default"===this.type?i`
|
|
878
|
+
<div>
|
|
879
|
+
<randstad-icon name="${this.icon}" size="56px"></randstad-icon>
|
|
880
|
+
</div>
|
|
881
|
+
<p>${this.description}</p>
|
|
882
|
+
<div class="buttons">
|
|
883
|
+
<button class="primary" @click=${()=>this.closePopup(!0)}>${this.buttonText}</button>
|
|
884
|
+
</div>
|
|
885
|
+
`:i`
|
|
886
|
+
<div>
|
|
887
|
+
<randstad-icon name="${this.icon}" size="56px"></randstad-icon>
|
|
888
|
+
</div>
|
|
889
|
+
<h2>${this.title}</h2>
|
|
890
|
+
<p>${this.description}</p>
|
|
891
|
+
<div class="buttons">
|
|
892
|
+
<button class="cancel" @click=${()=>this.closePopup(!1)}>${this.cancelText}</button>
|
|
893
|
+
<button class="accept" @click=${()=>this.closePopup(!0)}>${this.confirmText}</button>
|
|
894
|
+
</div>
|
|
895
|
+
`}
|
|
1022
896
|
</div>
|
|
1023
|
-
`}};r([
|
|
897
|
+
`}};r([T({type:Boolean,reflect:!0}),n("design:type",Object)],L.prototype,"open",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"type",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"icon",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"title",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"description",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"width",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"buttonText",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"confirmText",void 0),r([T({type:String}),n("design:type",Object)],L.prototype,"cancelText",void 0),L=r([a("custom-popup")],L);
|
|
1024
898
|
/**
|
|
1025
899
|
* @license
|
|
1026
900
|
* Copyright 2023 Google LLC
|
|
1027
901
|
* SPDX-License-Identifier: Apache-2.0
|
|
1028
902
|
*/
|
|
1029
|
-
const
|
|
903
|
+
const V=Symbol("attachableController");let N;s||(N=new MutationObserver((t=>{for(const e of t)e.target[V]?.hostConnected()})));class B{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){null===t?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?this.htmlFor&&this.host.isConnected?this.host.getRootNode().querySelector(`#${this.htmlFor}`):null:this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[V]=this,N?.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}
|
|
1030
904
|
/**
|
|
1031
905
|
* @license
|
|
1032
906
|
* Copyright 2021 Google LLC
|
|
1033
907
|
* SPDX-License-Identifier: Apache-2.0
|
|
1034
|
-
*/const
|
|
908
|
+
*/const H=["focusin","focusout","pointerdown"];class q extends t{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new B(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){if(!t[G]){switch(t.type){default:return;case"focusin":this.visible=this.control?.matches(":focus-visible")??!1;break;case"focusout":case"pointerdown":this.visible=!1}t[G]=!0}}onControlChange(t,e){if(!s)for(const i of H)t?.removeEventListener(i,this),e?.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}r([T({type:Boolean,reflect:!0})],q.prototype,"visible",void 0),r([T({type:Boolean,reflect:!0})],q.prototype,"inward",void 0);const G=Symbol("handledByFocusRing"),K=e`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
1035
909
|
`
|
|
1036
910
|
/**
|
|
1037
911
|
* @license
|
|
@@ -1042,81 +916,92 @@ const Tt=Symbol("attachableController");let Pt;s||(Pt=new MutationObserver((t=>{
|
|
|
1042
916
|
* @license
|
|
1043
917
|
* Copyright 2024 Google LLC
|
|
1044
918
|
* SPDX-License-Identifier: Apache-2.0
|
|
1045
|
-
*/let
|
|
919
|
+
*/let W=class extends q{};W.styles=[K],W=r([a("md-focus-ring")],W);
|
|
1046
920
|
/**
|
|
1047
921
|
* @license
|
|
1048
|
-
* Copyright
|
|
1049
|
-
* SPDX-License-Identifier:
|
|
922
|
+
* Copyright 2017 Google LLC
|
|
923
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1050
924
|
*/
|
|
1051
|
-
const
|
|
925
|
+
const Y=globalThis,X=Y.trustedTypes,J=X?X.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",Q=`lit$${Math.random().toFixed(9).slice(2)}$`,tt="?"+Q,et=`<${tt}>`,it=document,ot=()=>it.createComment(""),st=t=>null===t||"object"!=typeof t&&"function"!=typeof t,rt=Array.isArray,nt="[ \t\n\f\r]",at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,ct=RegExp(`>|${nt}(?:([^\\s"'>=/]+)(${nt}*=${nt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ht=/'/g,pt=/"/g,ut=/^(?:script|style|textarea|title)$/i,bt=Symbol.for("lit-noChange"),ft=Symbol.for("lit-nothing"),mt=new WeakMap,gt=it.createTreeWalker(it,129);function yt(t,e){if(!rt(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==J?J.createHTML(e):e}const vt=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":3===e?"<math>":"",n=at;for(let e=0;e<i;e++){const i=t[e];let a,l,d=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===at?"!--"===l[1]?n=lt:void 0!==l[1]?n=dt:void 0!==l[2]?(ut.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=ct):void 0!==l[3]&&(n=ct):n===ct?">"===l[0]?(n=s??at,d=-1):void 0===l[1]?d=-2:(d=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?ct:'"'===l[3]?pt:ht):n===pt||n===ht?n=ct:n===lt||n===dt?n=at:(n=ct,s=void 0);const h=n===ct&&t[e+1].startsWith("/>")?" ":"";r+=n===at?i+et:d>=0?(o.push(a),i.slice(0,d)+Z+i.slice(d)+Q+h):i+Q+(-2===d?e:h)}return[yt(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class xt{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,d]=vt(t,e);if(this.el=xt.createElement(l,i),gt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=gt.nextNode())&&a.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(Z)){const e=d[r++],i=o.getAttribute(t).split(Q),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:n[2],strings:i,ctor:"."===n[1]?Ct:"?"===n[1]?Et:"@"===n[1]?At:St}),o.removeAttribute(t)}else t.startsWith(Q)&&(a.push({type:6,index:s}),o.removeAttribute(t));if(ut.test(o.tagName)){const t=o.textContent.split(Q),e=t.length-1;if(e>0){o.textContent=X?X.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],ot()),gt.nextNode(),a.push({type:2,index:++s});o.append(t[e],ot())}}}else if(8===o.nodeType)if(o.data===tt)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(Q,t+1));)a.push({type:7,index:s}),t+=Q.length-1}s++}}static createElement(t,e){const i=it.createElement("template");return i.innerHTML=t,i}}function wt(t,e,i=t,o){if(e===bt)return e;let s=void 0!==o?i._$Co?.[o]:i._$Cl;const r=st(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),void 0===r?s=void 0:(s=new r(t),s._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=s:i._$Cl=s),void 0!==s&&(e=wt(t,s._$AS(t,e.values),s,o)),e}class $t{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??it).importNode(e,!0);gt.currentNode=o;let s=gt.nextNode(),r=0,n=0,a=i[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new kt(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new _t(s,this,t)),this._$AV.push(e),a=i[++n]}r!==a?.index&&(s=gt.nextNode(),r++)}return gt.currentNode=it,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class kt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=ft,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=wt(this,t,e),st(t)?t===ft||null==t||""===t?(this._$AH!==ft&&this._$AR(),this._$AH=ft):t!==this._$AH&&t!==bt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>rt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ft&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(it.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=xt.createElement(yt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new $t(o,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=mt.get(t.strings);return void 0===e&&mt.set(t.strings,e=new xt(t)),e}k(t){rt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new kt(this.O(ot()),this.O(ot()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class St{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,s){this.type=1,this._$AH=ft,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ft}_$AI(t,e=this,i,o){const s=this.strings;let r=!1;if(void 0===s)t=wt(this,t,e,0),r=!st(t)||t!==this._$AH&&t!==bt,r&&(this._$AH=t);else{const o=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=wt(this,o[i+n],e,n),a===bt&&(a=this._$AH[n]),r||=!st(a)||a!==this._$AH[n],a===ft?t=ft:t!==ft&&(t+=(a??"")+s[n+1]),this._$AH[n]=a}r&&!o&&this.j(t)}j(t){t===ft?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ct extends St{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ft?void 0:t}}class Et extends St{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ft)}}class At extends St{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){if((t=wt(this,t,e,0)??ft)===bt)return;const i=this._$AH,o=t===ft&&i!==ft||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,s=t!==ft&&(i===ft||o);o&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){wt(this,t)}}const Ot=Y.litHtmlPolyfillSupport;Ot?.(xt,kt),(Y.litHtmlVersions??=[]).push("3.3.0");
|
|
1052
926
|
/**
|
|
1053
927
|
* @license
|
|
1054
|
-
* Copyright
|
|
928
|
+
* Copyright 2017 Google LLC
|
|
929
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
930
|
+
*/
|
|
931
|
+
const zt=1;class Tt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
932
|
+
/**
|
|
933
|
+
* @license
|
|
934
|
+
* Copyright 2018 Google LLC
|
|
935
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
936
|
+
*/const Pt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends Tt{constructor(t){if(super(t),t.type!==zt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.st)t in e||(i.remove(t),this.st.delete(t));for(const t in e){const o=!!e[t];o===this.st.has(t)||this.nt?.has(t)||(o?(i.add(t),this.st.add(t)):(i.remove(t),this.st.delete(t)))}return bt}}),It="cubic-bezier(0.2, 0, 0, 1)";
|
|
937
|
+
/**
|
|
938
|
+
* @license
|
|
939
|
+
* Copyright 2021 Google LLC
|
|
1055
940
|
* SPDX-License-Identifier: Apache-2.0
|
|
1056
|
-
*/var
|
|
941
|
+
*/var Ft;!function(t){t[t.INACTIVE=0]="INACTIVE",t[t.TOUCH_DELAY=1]="TOUCH_DELAY",t[t.HOLDING=2]="HOLDING",t[t.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"}(Ft||(Ft={}));const jt=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],Mt=s?null:window.matchMedia("(forced-colors: active)");class Dt extends t{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=Ft.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new B(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return i`<div class="surface ${Pt(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==Ft.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state!==Ft.HOLDING)return this.state===Ft.TOUCH_DELAY?(this.state=Ft.WAITING_FOR_CLICK,void this.startPressAnimation(this.rippleStartEvent)):void 0;this.state=Ft.WAITING_FOR_CLICK}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t))return this.state=Ft.WAITING_FOR_CLICK,void this.startPressAnimation(t);this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=Ft.TOUCH_DELAY,await new Promise((t=>{setTimeout(t,150)})),this.state===Ft.TOUCH_DELAY&&(this.state=Ft.HOLDING,this.startPressAnimation(t)))}}handleClick(){this.disabled||(this.state!==Ft.WAITING_FOR_CLICK?this.state===Ft.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()):this.endPressAnimation())}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),i=Math.max(t,e),o=Math.max(.35*i,75),s=Math.floor(.2*i),r=Math.sqrt(e**2+t**2)+10;this.initialSize=s,this.rippleScale=""+(r+o)/s,this.rippleSize=`${s}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:i}=window,{left:o,top:s}=this.getBoundingClientRect(),r=e+o,n=i+s,{pageX:a,pageY:l}=t;return{x:a-r,y:l-n}}getTranslationCoordinates(t){const{height:e,width:i}=this.getBoundingClientRect(),o={x:(i-this.initialSize)/2,y:(e-this.initialSize)/2};let s;return s=t instanceof PointerEvent?this.getNormalizedPointerEventCoords(t):{x:i/2,y:e/2},s={x:s.x-this.initialSize/2,y:s.y-this.initialSize/2},{startPoint:s,endPoint:o}}startPressAnimation(t){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:i}=this.getTranslationCoordinates(t),o=`${e.x}px, ${e.y}px`,s=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${o}) scale(1)`,`translate(${s}) scale(${this.rippleScale})`]},{pseudoElement:"::after",duration:450,easing:It,fill:"forwards"})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=Ft.INACTIVE;const t=this.growAnimation;let e=1/0;"number"==typeof t?.currentTime?e=t.currentTime:t?.currentTime&&(e=t.currentTime.to("ms").value),e>=225?this.pressed=!1:(await new Promise((t=>{setTimeout(t,225-e)})),this.growAnimation===t&&(this.pressed=!1))}shouldReactToEvent(t){if(this.disabled||!t.isPrimary)return!1;if(this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if("pointerenter"===t.type||"pointerleave"===t.type)return!this.isTouch(t);const e=1===t.buttons;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:i,left:o,bottom:s,right:r}=this.getBoundingClientRect();return t>=o&&t<=r&&e>=i&&e<=s}isTouch({pointerType:t}){return"touch"===t}async handleEvent(t){if(!Mt?.matches)switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t)}}onControlChange(t,e){if(!s)for(const i of jt)t?.removeEventListener(i,this),e?.addEventListener(i,this)}}r([T({type:Boolean,reflect:!0})],Dt.prototype,"disabled",void 0),r([P()],Dt.prototype,"hovered",void 0),r([P()],Dt.prototype,"pressed",void 0),r([I(".surface")],Dt.prototype,"mdRoot",void 0);
|
|
1057
942
|
/**
|
|
1058
943
|
* @license
|
|
1059
944
|
* Copyright 2024 Google LLC
|
|
1060
945
|
* SPDX-License-Identifier: Apache-2.0
|
|
1061
946
|
*/
|
|
1062
|
-
const
|
|
947
|
+
const Rt=e`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
1063
948
|
`
|
|
1064
949
|
/**
|
|
1065
950
|
* @license
|
|
1066
951
|
* Copyright 2022 Google LLC
|
|
1067
952
|
* SPDX-License-Identifier: Apache-2.0
|
|
1068
|
-
*/;let
|
|
953
|
+
*/;let Ut=class extends Dt{};
|
|
1069
954
|
/**
|
|
1070
955
|
* @license
|
|
1071
956
|
* Copyright 2021 Google LLC
|
|
1072
957
|
* SPDX-License-Identifier: Apache-2.0
|
|
1073
958
|
*/
|
|
1074
|
-
function
|
|
959
|
+
function Lt(t){return t.currentTarget===t.target&&(t.composedPath()[0]===t.target&&(!t.target.disabled&&!function(t){const e=Vt;e&&(t.preventDefault(),t.stopImmediatePropagation());return async function(){Vt=!0,await null,Vt=!1}
|
|
1075
960
|
/**
|
|
1076
961
|
* @license
|
|
1077
962
|
* Copyright 2023 Google LLC
|
|
1078
963
|
* SPDX-License-Identifier: Apache-2.0
|
|
1079
|
-
*/(),e}(t)))}
|
|
964
|
+
*/(),e}(t)))}Ut.styles=[Rt],Ut=r([a("md-ripple")],Ut);let Vt=!1;const Nt=Symbol("internals"),Bt=Symbol("privateInternals");
|
|
1080
965
|
/**
|
|
1081
966
|
* @license
|
|
1082
967
|
* Copyright 2023 Google LLC
|
|
1083
968
|
* SPDX-License-Identifier: Apache-2.0
|
|
1084
969
|
*/
|
|
1085
|
-
const
|
|
970
|
+
const Ht=Symbol("createValidator"),qt=Symbol("getValidityAnchor"),Gt=Symbol("privateValidator"),Kt=Symbol("privateSyncValidity"),Wt=Symbol("privateCustomValidationMessage");
|
|
1086
971
|
/**
|
|
1087
972
|
* @license
|
|
1088
973
|
* Copyright 2023 Google LLC
|
|
1089
974
|
* SPDX-License-Identifier: Apache-2.0
|
|
1090
975
|
*/
|
|
1091
|
-
const
|
|
976
|
+
const Yt=Symbol("isFocusable"),Xt=Symbol("privateIsFocusable"),Jt=Symbol("externalTabIndex"),Zt=Symbol("isUpdatingTabIndex"),Qt=Symbol("updateTabIndex");
|
|
1092
977
|
/**
|
|
1093
978
|
* @license
|
|
1094
979
|
* Copyright 2023 Google LLC
|
|
1095
980
|
* SPDX-License-Identifier: Apache-2.0
|
|
1096
981
|
*/
|
|
1097
|
-
const
|
|
982
|
+
const te=Symbol("getFormValue"),ee=Symbol("getFormState");
|
|
1098
983
|
/**
|
|
1099
984
|
* @license
|
|
1100
985
|
* Copyright 2023 Google LLC
|
|
1101
986
|
* SPDX-License-Identifier: Apache-2.0
|
|
1102
987
|
*/
|
|
1103
|
-
class
|
|
988
|
+
class ie{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{},validationMessage:""}}getValidity(){const t=this.getCurrentState();if(!(!this.prevState||!this.equals(this.prevState,t)))return this.currentValidity;const{validity:e,validationMessage:i}=this.computeValidity(t);return this.prevState=this.copy(t),this.currentValidity={validationMessage:i,validity:{badInput:e.badInput,customError:e.customError,patternMismatch:e.patternMismatch,rangeOverflow:e.rangeOverflow,rangeUnderflow:e.rangeUnderflow,stepMismatch:e.stepMismatch,tooLong:e.tooLong,tooShort:e.tooShort,typeMismatch:e.typeMismatch,valueMissing:e.valueMissing}},this.currentValidity}}
|
|
1104
989
|
/**
|
|
1105
990
|
* @license
|
|
1106
991
|
* Copyright 2023 Google LLC
|
|
1107
992
|
* SPDX-License-Identifier: Apache-2.0
|
|
1108
|
-
*/class
|
|
993
|
+
*/class oe extends ie{computeValidity(t){this.radioElement||(this.radioElement=document.createElement("input"),this.radioElement.type="radio",this.radioElement.name="group");let e=!1,i=!1;for(const{checked:o,required:s}of t)s&&(e=!0),o&&(i=!0);return this.radioElement.checked=i,this.radioElement.required=e,{validity:{valueMissing:e&&!i},validationMessage:this.radioElement.validationMessage}}equals(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const o=t[i],s=e[i];if(o.checked!==s.checked||o.required!==s.required)return!1}return!0}copy(t){return t.map((({checked:t,required:e})=>({checked:t,required:e})))}}
|
|
1109
994
|
/**
|
|
1110
995
|
* @license
|
|
1111
996
|
* Copyright 2022 Google LLC
|
|
1112
997
|
* SPDX-License-Identifier: Apache-2.0
|
|
1113
|
-
*/class
|
|
998
|
+
*/class se{get controls(){const t=this.host.getAttribute("name");return t&&this.root&&this.host.isConnected?Array.from(this.root.querySelectorAll(`[name="${t}"]`)):[this.host]}constructor(t){this.host=t,this.focused=!1,this.root=null,this.handleFocusIn=()=>{this.focused=!0,this.updateTabIndices()},this.handleFocusOut=()=>{this.focused=!1,this.updateTabIndices()},this.handleKeyDown=t=>{const e="ArrowDown"===t.key,i="ArrowUp"===t.key,o="ArrowLeft"===t.key,s="ArrowRight"===t.key;if(!(o||s||e||i))return;const r=this.controls;if(!r.length)return;t.preventDefault();const n="rtl"===getComputedStyle(this.host).direction?o||e:s||e,a=r.indexOf(this.host);let l=n?a+1:a-1;for(;l!==a;){l>=r.length?l=0:l<0&&(l=r.length-1);const t=r[l];if(!t.hasAttribute("disabled")){for(const e of r)e!==t&&(e.checked=!1,e.tabIndex=-1,e.blur());t.checked=!0,t.tabIndex=0,t.focus(),t.dispatchEvent(new Event("change",{bubbles:!0}));break}n?l++:l--}}}hostConnected(){this.root=this.host.getRootNode(),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("focusin",this.handleFocusIn),this.host.addEventListener("focusout",this.handleFocusOut),this.host.checked&&this.uncheckSiblings(),this.updateTabIndices()}hostDisconnected(){this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("focusin",this.handleFocusIn),this.host.removeEventListener("focusout",this.handleFocusOut),this.updateTabIndices(),this.root=null}handleCheckedChange(){this.host.checked&&(this.uncheckSiblings(),this.updateTabIndices())}uncheckSiblings(){for(const t of this.controls)t!==this.host&&(t.checked=!1)}updateTabIndices(){const t=this.controls,e=t.find((t=>t.checked));if(e||this.focused){const i=e||this.host;i.tabIndex=0;for(const e of t)e!==i&&(e.tabIndex=-1)}else for(const e of t)e.tabIndex=0}}
|
|
1114
999
|
/**
|
|
1115
1000
|
* @license
|
|
1116
1001
|
* Copyright 2018 Google LLC
|
|
1117
1002
|
* SPDX-License-Identifier: Apache-2.0
|
|
1118
|
-
*/var
|
|
1119
|
-
<div class="container ${
|
|
1003
|
+
*/var re;const ne=Symbol("checked");let ae=0;const le=function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=""}get validity(){return this[Kt](),this[Nt].validity}get validationMessage(){return this[Kt](),this[Nt].validationMessage}get willValidate(){return this[Kt](),this[Nt].willValidate}checkValidity(){return this[Kt](),this[Nt].checkValidity()}reportValidity(){return this[Kt](),this[Nt].reportValidity()}setCustomValidity(t){this[Wt]=t,this[Kt]()}requestUpdate(t,e,i){super.requestUpdate(t,e,i),this[Kt]()}firstUpdated(t){super.firstUpdated(t),this[Kt]()}[(e=Wt,Kt)](){if(s)return;this[Gt]||(this[Gt]=this[Ht]());const{validity:t,validationMessage:e}=this[Gt].getValidity(),i=!!this[Wt],o=this[Wt]||e;this[Nt].setValidity({...t,customError:i},o,this[qt]()??void 0)}[Ht](){throw new Error("Implement [createValidator]")}[qt](){throw new Error("Implement [getValidityAnchor]")}}return i}(function(t){class e extends t{get form(){return this[Nt].form}get labels(){return this[Nt].labels}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.toggleAttribute("disabled",t)}attributeChangedCallback(t,e,i){if("name"!==t&&"disabled"!==t)super.attributeChangedCallback(t,e,i);else{const i="disabled"===t?null!==e:e;this.requestUpdate(t,i)}}requestUpdate(t,e,i){super.requestUpdate(t,e,i),this[Nt].setFormValue(this[te](),this[ee]())}[te](){throw new Error("Implement [getFormValue]")}[ee](){return this[te]()}formDisabledCallback(t){this.disabled=t}}return e.formAssociated=!0,r([T({noAccessor:!0})],e.prototype,"name",null),r([T({type:Boolean,noAccessor:!0})],e.prototype,"disabled",null),e}((de=function(t){var e,i,o;class s extends t{constructor(){super(...arguments),this[e]=!0,this[i]=null,this[o]=!1}get[Yt](){return this[Xt]}set[Yt](t){this[Yt]!==t&&(this[Xt]=t,this[Qt]())}connectedCallback(){super.connectedCallback(),this[Qt]()}attributeChangedCallback(t,e,i){if("tabindex"===t){if(this.requestUpdate("tabIndex",Number(e??-1)),!this[Zt])return this.hasAttribute("tabindex")?void(this[Jt]=this.tabIndex):(this[Jt]=null,void this[Qt]())}else super.attributeChangedCallback(t,e,i)}[(e=Xt,i=Jt,o=Zt,Qt)](){const t=this[Yt]?0:-1,e=this[Jt]??t;this[Zt]=!0,this.tabIndex=e,this[Zt]=!1}}return r([T({noAccessor:!0})],s.prototype,"tabIndex",void 0),s}(t),class extends de{get[Nt](){return this[Bt]||(this[Bt]=this.attachInternals()),this[Bt]}})));var de;class ce extends le{get checked(){return this[ne]}set checked(t){const e=this.checked;e!==t&&(this[ne]=t,this.requestUpdate("checked",e),this.selectionController.handleCheckedChange())}constructor(){super(),this.maskId="cutout"+ ++ae,this[re]=!1,this.required=!1,this.value="on",this.selectionController=new se(this),this.addController(this.selectionController),s||(this[Nt].role="radio",this.addEventListener("click",this.handleClick.bind(this)),this.addEventListener("keydown",this.handleKeydown.bind(this)))}render(){const t={checked:this.checked};return i`
|
|
1004
|
+
<div class="container ${Pt(t)}" aria-hidden="true">
|
|
1120
1005
|
<md-ripple
|
|
1121
1006
|
part="ripple"
|
|
1122
1007
|
.control=${this}
|
|
@@ -1138,19 +1023,19 @@ class ae{constructor(t){this.getCurrentState=t,this.currentValidity={validity:{}
|
|
|
1138
1023
|
|
|
1139
1024
|
<div class="touch-target"></div>
|
|
1140
1025
|
</div>
|
|
1141
|
-
`}updated(){this[
|
|
1026
|
+
`}updated(){this[Nt].ariaChecked=String(this.checked)}async handleClick(t){this.disabled||(await 0,t.defaultPrevented||(Lt(t)&&this.focus(),this.checked=!0,this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0}))))}async handleKeydown(t){await 0," "!==t.key||t.defaultPrevented||this.click()}[(re=ne,te)](){return this.checked?this.value:null}[ee](){return String(this.checked)}formResetCallback(){this.checked=this.hasAttribute("checked")}formStateRestoreCallback(t){this.checked="true"===t}[Ht](){return new oe((()=>this.selectionController?this.selectionController.controls:[this]))}[qt](){return this.container}}r([T({type:Boolean})],ce.prototype,"checked",null),r([T({type:Boolean})],ce.prototype,"required",void 0),r([T()],ce.prototype,"value",void 0),r([I(".container")],ce.prototype,"container",void 0);
|
|
1142
1027
|
/**
|
|
1143
1028
|
* @license
|
|
1144
1029
|
* Copyright 2024 Google LLC
|
|
1145
1030
|
* SPDX-License-Identifier: Apache-2.0
|
|
1146
1031
|
*/
|
|
1147
|
-
const
|
|
1032
|
+
const he=e`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20px);outline:none;position:relative;vertical-align:top;width:var(--md-radio-icon-size, 20px);-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;--md-ripple-hover-color: var(--md-radio-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-radio-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-pressed-opacity: var(--md-radio-pressed-state-layer-opacity, 0.12)}:host([disabled]){cursor:default}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--md-radio-icon-size, 20px))/2)}.container{display:flex;height:100%;place-content:center;place-items:center;width:100%}md-focus-ring{height:44px;inset:unset;width:44px}.checked{--md-ripple-hover-color: var(--md-radio-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--md-ripple-hover-opacity: var(--md-radio-selected-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-radio-selected-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-radio-selected-pressed-state-layer-opacity, 0.12)}.touch-target{height:48px;position:absolute;width:48px}:host([touch-target=none]) .touch-target{display:none}md-ripple{border-radius:50%;height:var(--md-radio-state-layer-size, 40px);inset:unset;width:var(--md-radio-state-layer-size, 40px)}.icon{fill:var(--md-radio-icon-color, var(--md-sys-color-on-surface-variant, #49454f));inset:0;position:absolute}.outer.circle{transition:fill 50ms linear}.inner.circle{opacity:0;transform-origin:center;transition:opacity 50ms linear}.checked .icon{fill:var(--md-radio-selected-icon-color, var(--md-sys-color-primary, #6750a4))}.checked .inner.circle{animation:inner-circle-grow 300ms cubic-bezier(0.05, 0.7, 0.1, 1);opacity:1}@keyframes inner-circle-grow{from{transform:scale(0)}to{transform:scale(1)}}:host([disabled]) .circle{animation-duration:0s;transition-duration:0s}:host(:hover) .icon{fill:var(--md-radio-hover-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:focus-within) .icon{fill:var(--md-radio-focus-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host(:active) .icon{fill:var(--md-radio-pressed-icon-color, var(--md-sys-color-on-surface, #1d1b20))}:host([disabled]) .icon{fill:var(--md-radio-disabled-unselected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-unselected-icon-opacity, 0.38)}:host(:hover) .checked .icon{fill:var(--md-radio-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:focus-within) .checked .icon{fill:var(--md-radio-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4))}:host(:active) .checked .icon{fill:var(--md-radio-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4))}:host([disabled]) .checked .icon{fill:var(--md-radio-disabled-selected-icon-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-radio-disabled-selected-icon-opacity, 0.38)}}@layer hcm{@media(forced-colors: active){.icon{fill:CanvasText}:host([disabled]) .icon{fill:GrayText;opacity:1}}}
|
|
1148
1033
|
`
|
|
1149
1034
|
/**
|
|
1150
1035
|
* @license
|
|
1151
1036
|
* Copyright 2022 Google LLC
|
|
1152
1037
|
* SPDX-License-Identifier: Apache-2.0
|
|
1153
|
-
*/;let
|
|
1038
|
+
*/;let pe=class extends ce{};pe.styles=[he],pe=r([a("md-radio")],pe);let ue=class extends t{constructor(){super(...arguments),this.name="radio-group",this.checked=!1,this.disabled=!1,this.error=!1}static{this.styles=e`
|
|
1154
1039
|
:host {
|
|
1155
1040
|
font-family: "Graphik", sans-serif;
|
|
1156
1041
|
}
|
|
@@ -1166,38 +1051,44 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1166
1051
|
width: 24px;
|
|
1167
1052
|
height: 24px;
|
|
1168
1053
|
border-radius: 50%;
|
|
1169
|
-
background:
|
|
1170
|
-
border: 1px solid
|
|
1054
|
+
background: #FFFFFF;
|
|
1055
|
+
border: 1px solid #CFD1D9;
|
|
1171
1056
|
}
|
|
1172
1057
|
|
|
1058
|
+
/* Hover solo en el círculo */
|
|
1173
1059
|
md-radio::part(container):hover {
|
|
1174
1060
|
box-shadow: 0px 0px 0px 4px #0F19411A;
|
|
1175
|
-
border: 1px solid
|
|
1061
|
+
border: 1px solid #CFD1D9;
|
|
1176
1062
|
border-radius: 50%;
|
|
1177
1063
|
}
|
|
1178
1064
|
|
|
1065
|
+
/* Focus solo en el círculo */
|
|
1179
1066
|
md-radio:focus-visible::part(container) {
|
|
1180
|
-
border: 1px solid
|
|
1067
|
+
border: 1px solid #2175D9;
|
|
1181
1068
|
}
|
|
1182
1069
|
|
|
1070
|
+
/* Estilos cuando está seleccionado (On) */
|
|
1183
1071
|
md-radio.checked {
|
|
1184
|
-
background:
|
|
1185
|
-
border: 1px solid
|
|
1072
|
+
background: #2175D9;
|
|
1073
|
+
border: 1px solid #2175D9;
|
|
1186
1074
|
}
|
|
1187
1075
|
|
|
1076
|
+
/* Estilos cuando está seleccionado y hay error (Error On) */
|
|
1188
1077
|
md-radio.checked.error {
|
|
1189
|
-
background:
|
|
1190
|
-
border: 1px solid
|
|
1078
|
+
background: #E00F0F;
|
|
1079
|
+
border: 1px solid #E00F0F;
|
|
1191
1080
|
}
|
|
1192
1081
|
|
|
1082
|
+
/* Estilos cuando está en Error Off */
|
|
1193
1083
|
md-radio.error {
|
|
1194
|
-
border: 1px solid
|
|
1084
|
+
border: 1px solid #E00F0F;
|
|
1195
1085
|
}
|
|
1196
1086
|
|
|
1087
|
+
/* Estilos cuando está deshabilitado */
|
|
1197
1088
|
md-radio.disabled {
|
|
1198
1089
|
cursor: not-allowed;
|
|
1199
|
-
background:
|
|
1200
|
-
border: 1px solid
|
|
1090
|
+
background: #CFD1D9;
|
|
1091
|
+
border: 1px solid #CFD1D9;
|
|
1201
1092
|
}
|
|
1202
1093
|
`}render(){const t=[this.checked?"checked":"",this.error?"error":"",this.disabled?"disabled":""].join(" ");return i`
|
|
1203
1094
|
<label class="radio-container">
|
|
@@ -1209,7 +1100,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1209
1100
|
></md-radio>
|
|
1210
1101
|
<span>${this.checked?"On":"Off"} ${this.error?"Error":""}</span>
|
|
1211
1102
|
</label>
|
|
1212
|
-
`}};r([
|
|
1103
|
+
`}};r([T({type:String}),n("design:type",Object)],ue.prototype,"name",void 0),r([T({type:Boolean}),n("design:type",Object)],ue.prototype,"checked",void 0),r([T({type:Boolean}),n("design:type",Object)],ue.prototype,"disabled",void 0),r([T({type:Boolean}),n("design:type",Object)],ue.prototype,"error",void 0),ue=r([a("custom-radio")],ue);let be=class extends t{static{this.styles=e`
|
|
1213
1104
|
:host {
|
|
1214
1105
|
display: block;
|
|
1215
1106
|
font-family: 'Graphik', sans-serif;
|
|
@@ -1252,7 +1143,9 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1252
1143
|
}
|
|
1253
1144
|
|
|
1254
1145
|
.form-label {
|
|
1255
|
-
|
|
1146
|
+
font-size: 16px;
|
|
1147
|
+
line-height: 25px;
|
|
1148
|
+
font-weight: 400;
|
|
1256
1149
|
color: var(--label-color, var(--secondary-color-80));
|
|
1257
1150
|
}
|
|
1258
1151
|
|
|
@@ -1300,7 +1193,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1300
1193
|
left: 20px;
|
|
1301
1194
|
right: 20px;
|
|
1302
1195
|
height: 1px;
|
|
1303
|
-
background-color:
|
|
1196
|
+
background-color: #d7d7d7;
|
|
1304
1197
|
z-index: 10;
|
|
1305
1198
|
}
|
|
1306
1199
|
|
|
@@ -1319,13 +1212,16 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1319
1212
|
}
|
|
1320
1213
|
|
|
1321
1214
|
.filter-input {
|
|
1322
|
-
|
|
1215
|
+
font-size: 18px;
|
|
1216
|
+
line-height: 30px;
|
|
1323
1217
|
padding: 16px;
|
|
1324
1218
|
padding-right: 40px;
|
|
1325
1219
|
border: none;
|
|
1326
1220
|
outline: none;
|
|
1327
1221
|
width: 100%;
|
|
1328
1222
|
box-sizing: border-box;
|
|
1223
|
+
font-family: 'Graphik', sans-serif;
|
|
1224
|
+
font-weight: 400;
|
|
1329
1225
|
background: white;
|
|
1330
1226
|
cursor: pointer;
|
|
1331
1227
|
color: var(--secondary-color);
|
|
@@ -1339,8 +1235,10 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1339
1235
|
}
|
|
1340
1236
|
|
|
1341
1237
|
.filter-input::placeholder {
|
|
1342
|
-
${R};
|
|
1343
1238
|
color: var(--secondary-color-40);
|
|
1239
|
+
font-size: 18px;
|
|
1240
|
+
line-height: 30px;
|
|
1241
|
+
font-weight: 400;
|
|
1344
1242
|
}
|
|
1345
1243
|
|
|
1346
1244
|
.icon-button {
|
|
@@ -1362,7 +1260,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1362
1260
|
randstad-icon {
|
|
1363
1261
|
width: 24px;
|
|
1364
1262
|
height: 24px;
|
|
1365
|
-
color:
|
|
1263
|
+
color: #2175D9;
|
|
1366
1264
|
}
|
|
1367
1265
|
|
|
1368
1266
|
.options-list {
|
|
@@ -1384,9 +1282,11 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1384
1282
|
}
|
|
1385
1283
|
|
|
1386
1284
|
.options-list li {
|
|
1387
|
-
${R};
|
|
1388
1285
|
padding: 8px 16px 8px 16px;
|
|
1389
1286
|
cursor: pointer;
|
|
1287
|
+
font-size: 18px;
|
|
1288
|
+
line-height: 30px;
|
|
1289
|
+
font-weight: 400;
|
|
1390
1290
|
color: var(--secondary-color-80);
|
|
1391
1291
|
}
|
|
1392
1292
|
|
|
@@ -1449,12 +1349,15 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1449
1349
|
}
|
|
1450
1350
|
|
|
1451
1351
|
.filter-fake {
|
|
1452
|
-
|
|
1352
|
+
font-size: 18px;
|
|
1353
|
+
line-height: 30px;
|
|
1453
1354
|
padding: 15px;
|
|
1454
1355
|
padding-right: 40px;
|
|
1455
1356
|
width: 100%;
|
|
1456
1357
|
background: white;
|
|
1457
1358
|
box-sizing: border-box;
|
|
1359
|
+
font-family: 'Graphik', sans-serif;
|
|
1360
|
+
font-weight: 400;
|
|
1458
1361
|
cursor: pointer;
|
|
1459
1362
|
color: var(--secondary-color-80);
|
|
1460
1363
|
white-space: nowrap;
|
|
@@ -1480,14 +1383,14 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1480
1383
|
}
|
|
1481
1384
|
|
|
1482
1385
|
.options-list::-webkit-scrollbar-thumb {
|
|
1483
|
-
background-color: var(--secondary-color-30);
|
|
1386
|
+
background-color: var(--secondary-color-30, #ccc);
|
|
1484
1387
|
border-radius: 4px;
|
|
1485
1388
|
}
|
|
1486
1389
|
|
|
1487
1390
|
.options-list::-webkit-scrollbar-button {
|
|
1488
1391
|
display: none;
|
|
1489
1392
|
}
|
|
1490
|
-
`}constructor(){if(super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.value="",this.labelColor="",this.filterable=!0,this.
|
|
1393
|
+
`}constructor(){if(super(),this.options=[],this.placeholder="Filtrar opciones...",this.defaultValue="",this.disabled=!1,this.label="",this.value="",this.labelColor="",this.filterable=!0,this.isMobile=!1,this.error=!1,this.filteredOptions=[],this.filterValue="",this.isOpen=!1,this.mobileFilterValue="",this.debounceTimeout=null,this.updateResponsiveModeBound=this.updateResponsiveMode.bind(this),this.defaultValue){const t=this.options.find((t=>"string"==typeof t?t===this.defaultValue:t.value===this.defaultValue));t&&(this.filterValue="string"==typeof t?t:t.label)}}willUpdate(t){if(t.has("options")&&(this.filteredOptions=[...this.options]),t.has("defaultValue")||t.has("options")){const t=this.options.find((t=>"string"==typeof t?t===this.defaultValue:t.value===this.defaultValue));t&&(this.filterValue="string"==typeof t?t:t.label)}if(t.has("value")){const t=this.options.find((t=>"string"==typeof t?t===this.value:t.value===this.value));t&&(this.filterValue="string"==typeof t?t:t.label)}}connectedCallback(){super.connectedCallback(),this.updateResponsiveMode(),window.addEventListener("resize",this.updateResponsiveModeBound),document.addEventListener("click",this.handleClickOutside.bind(this))}disconnectedCallback(){window.removeEventListener("resize",this.updateResponsiveModeBound),document.removeEventListener("click",this.handleClickOutside.bind(this)),super.disconnectedCallback()}updateResponsiveMode(){this.isMobile=window.innerWidth<=940}handleInputClick(t){this.isMobile&&(this.mobileFilterValue=""),this.disabled||(this.isOpen=!this.isOpen,this.requestUpdate())}handleInput(t){if(!this.filterable)return;const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.filterValue=i,this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(this.filterValue.toLowerCase()))),this.isOpen=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{this.filterValue.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:this.filterValue},bubbles:!0,composed:!0}))}),300),this.requestUpdate()}handleMobileInput(t){const e=t.target.value,i=this.maxLength?e.slice(0,this.maxLength).toLowerCase():e.toLowerCase();this.mobileFilterValue=i,this.filteredOptions=this.options.filter((t=>("string"==typeof t?t:t.label).toLowerCase().includes(i))),this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=window.setTimeout((()=>{i.length>2&&this.dispatchEvent(new CustomEvent("filter-location",{detail:{value:i},bubbles:!0,composed:!0}))}),300)}handleSelect(t){this.value="string"==typeof t?t:t.value;const e="string"==typeof t?t:t.value;this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:e},bubbles:!0,composed:!0})),this.filterValue="string"==typeof t?t:t.label,this.isOpen=!1,this.requestUpdate()}handleIconClick(){this.disabled||(this.filterable&&this.filterValue?(this.filterValue="",this.filteredOptions=[...this.options],this.dispatchEvent(new CustomEvent("option-selected",{detail:{value:""},bubbles:!0,composed:!0})),this.isOpen=!1):this.isOpen=!this.isOpen,this.requestUpdate())}handleClickOutside(t){this.contains(t.target)||(this.isOpen=!1,this.requestUpdate())}render(){const t=this.isMobile;return i`
|
|
1491
1394
|
<div class="select-container" style="${this.labelColor?` --label-color: ${this.labelColor}`:""}">
|
|
1492
1395
|
${this.label?i`
|
|
1493
1396
|
<div class="label-container">
|
|
@@ -1519,7 +1422,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1519
1422
|
@click="${this.handleIconClick}"
|
|
1520
1423
|
?disabled="${this.disabled}"
|
|
1521
1424
|
>
|
|
1522
|
-
${this.filterable&&this.filterValue?i`<randstad-icon name="close" size="24px"
|
|
1425
|
+
${this.filterable&&this.filterValue?i`<randstad-icon name="close" size="24px" color="#2175D9"></randstad-icon>`:this.isOpen&&this.filteredOptions.length>0?i`<randstad-icon name="arrow_up" size="24px" color="#2175D9"></randstad-icon>`:i`<randstad-icon name="arrow_down" size="24px" color="#2175D9"></randstad-icon>`}
|
|
1523
1426
|
</button>
|
|
1524
1427
|
</div>
|
|
1525
1428
|
|
|
@@ -1564,77 +1467,72 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1564
1467
|
`:""}
|
|
1565
1468
|
</div>
|
|
1566
1469
|
</div>
|
|
1567
|
-
`}};r([
|
|
1470
|
+
`}};r([T({type:Array}),n("design:type",Array)],be.prototype,"options",void 0),r([T({type:String}),n("design:type",Object)],be.prototype,"placeholder",void 0),r([T({type:String,attribute:"default-value"}),n("design:type",Object)],be.prototype,"defaultValue",void 0),r([T({type:Boolean}),n("design:type",Object)],be.prototype,"disabled",void 0),r([T({type:String}),n("design:type",Object)],be.prototype,"label",void 0),r([T({type:String}),n("design:type",String)],be.prototype,"value",void 0),r([T({type:String}),n("design:type",Object)],be.prototype,"labelColor",void 0),r([T({type:Boolean}),n("design:type",Object)],be.prototype,"filterable",void 0),r([T({type:Number}),n("design:type",Number)],be.prototype,"maxLength",void 0),r([P(),n("design:type",Boolean)],be.prototype,"isMobile",void 0),r([T({type:Boolean,reflect:!0}),n("design:type",Boolean)],be.prototype,"error",void 0),r([P(),n("design:type",Object)],be.prototype,"filteredOptions",void 0),r([P(),n("design:type",Object)],be.prototype,"filterValue",void 0),r([P(),n("design:type",Object)],be.prototype,"isOpen",void 0),r([P(),n("design:type",Object)],be.prototype,"mobileFilterValue",void 0),be=r([a("filterable-select"),n("design:paramtypes",[])],be);let fe=class extends t{constructor(){super(...arguments),this.totalSteps=4,this.currentStep=0}static{this.styles=e`
|
|
1568
1471
|
.stepper {
|
|
1569
1472
|
display: flex;
|
|
1570
1473
|
gap: 20px;
|
|
1571
1474
|
align-items: center;
|
|
1572
1475
|
}
|
|
1573
|
-
|
|
1574
1476
|
.step {
|
|
1575
1477
|
width: 20px;
|
|
1576
1478
|
height: 20px;
|
|
1577
1479
|
border-radius: 50%;
|
|
1578
|
-
background-color:
|
|
1579
|
-
border: 1px solid
|
|
1480
|
+
background-color: #ffffff;
|
|
1481
|
+
border: 1px solid #CFD1D9;
|
|
1580
1482
|
position: relative;
|
|
1581
1483
|
box-sizing: content-box;
|
|
1582
1484
|
display: flex;
|
|
1583
1485
|
align-items: center;
|
|
1584
1486
|
justify-content: center;
|
|
1585
1487
|
font-size: 12px;
|
|
1586
|
-
color:
|
|
1488
|
+
color: #CFD1D9;
|
|
1587
1489
|
}
|
|
1588
|
-
|
|
1589
1490
|
.step .inner-circle {
|
|
1590
1491
|
width: 4px;
|
|
1591
1492
|
height: 4px;
|
|
1592
1493
|
border-radius: 50%;
|
|
1593
|
-
background-color:
|
|
1494
|
+
background-color: #ffffff;
|
|
1594
1495
|
position: absolute;
|
|
1595
1496
|
top: 50%;
|
|
1596
1497
|
left: 50%;
|
|
1597
1498
|
transform: translate(-50%, -50%);
|
|
1499
|
+
/* Improve sharpness */
|
|
1598
1500
|
image-rendering: -webkit-optimize-contrast;
|
|
1599
1501
|
image-rendering: crisp-edges;
|
|
1600
1502
|
backface-visibility: hidden;
|
|
1601
1503
|
transform-style: preserve-3d;
|
|
1602
1504
|
}
|
|
1603
|
-
|
|
1604
1505
|
.step.completed {
|
|
1605
|
-
background-color:
|
|
1606
|
-
border: 1px solid
|
|
1506
|
+
background-color: #2175d9;
|
|
1507
|
+
border: 1px solid #2175d9;
|
|
1607
1508
|
}
|
|
1608
|
-
|
|
1609
1509
|
.step.completed randstad-icon {
|
|
1610
1510
|
color: white;
|
|
1611
1511
|
}
|
|
1612
|
-
|
|
1613
1512
|
.step.active {
|
|
1614
|
-
background-color:
|
|
1615
|
-
border: 1px solid
|
|
1513
|
+
background-color: #ffffff;
|
|
1514
|
+
border: 1px solid #2175d9;
|
|
1616
1515
|
}
|
|
1617
|
-
|
|
1618
1516
|
.step.active .inner-circle {
|
|
1619
|
-
background-color:
|
|
1517
|
+
background-color: #2175d9;
|
|
1620
1518
|
}
|
|
1621
|
-
|
|
1519
|
+
/* Animation for the active step's pulsing circle */
|
|
1622
1520
|
.step.active .pulse-circle {
|
|
1623
1521
|
width: 12px;
|
|
1624
1522
|
height: 12px;
|
|
1625
1523
|
border-radius: 50%;
|
|
1626
|
-
background-color:
|
|
1524
|
+
background-color: #2175d9;
|
|
1627
1525
|
opacity: 0.25;
|
|
1628
1526
|
position: absolute;
|
|
1629
1527
|
top: 50%;
|
|
1630
1528
|
left: 50%;
|
|
1631
1529
|
transform: translate(-50%, -50%) scale(0.6);
|
|
1632
1530
|
animation: pulse 2000ms ease-in-out infinite;
|
|
1531
|
+
/* Improve sharpness */
|
|
1633
1532
|
image-rendering: -webkit-optimize-contrast;
|
|
1634
1533
|
image-rendering: crisp-edges;
|
|
1635
1534
|
backface-visibility: hidden;
|
|
1636
1535
|
}
|
|
1637
|
-
|
|
1638
1536
|
@keyframes pulse {
|
|
1639
1537
|
0% {
|
|
1640
1538
|
transform: translate(-50%, -50%) scale(0.6);
|
|
@@ -1643,7 +1541,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1643
1541
|
transform: translate(-50%, -50%) scale(1.2);
|
|
1644
1542
|
}
|
|
1645
1543
|
}
|
|
1646
|
-
|
|
1544
|
+
/* Improve rendering */
|
|
1647
1545
|
.step,
|
|
1648
1546
|
.inner-circle,
|
|
1649
1547
|
.pulse-circle {
|
|
@@ -1664,7 +1562,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1664
1562
|
</div>
|
|
1665
1563
|
`))}
|
|
1666
1564
|
</div>
|
|
1667
|
-
`}};r([
|
|
1565
|
+
`}};r([T({type:Number}),n("design:type",Object)],fe.prototype,"totalSteps",void 0),r([T({type:Number}),n("design:type",Object)],fe.prototype,"currentStep",void 0),fe=r([a("custom-stepper")],fe);const me=new CSSStyleSheet;me.replaceSync("\n @font-face {\n font-family: 'Graphik';\n src: url('/src/assets/font/Graphik-Regular.woff2') format('woff2'),\n url('/src/assets/font/Graphik-Regular.woff') format('woff'),\n url('/src/assets/font/Graphik-Regular.eot') format('embedded-opentype');\n font-weight: normal;\n font-style: normal;\n }\n\n .body-s {\n font-weight: 400;\n font-size: 14px;\n line-height: 100%;\n letter-spacing: 0%;\n color: green;\n }\n");class ge extends t{static{this.styles=[me,e`
|
|
1668
1566
|
:host {
|
|
1669
1567
|
display: flex;
|
|
1670
1568
|
position: fixed;
|
|
@@ -1674,6 +1572,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1674
1572
|
z-index: 9999;
|
|
1675
1573
|
}
|
|
1676
1574
|
|
|
1575
|
+
/* Posiciones por defecto */
|
|
1677
1576
|
:host([position="top-left"]) {
|
|
1678
1577
|
top: 16px;
|
|
1679
1578
|
left: 16px;
|
|
@@ -1720,6 +1619,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1720
1619
|
justify-content: flex-end;
|
|
1721
1620
|
}
|
|
1722
1621
|
|
|
1622
|
+
/* Estilos para mobile forzados */
|
|
1723
1623
|
:host(.mobile) {
|
|
1724
1624
|
bottom: 16px !important;
|
|
1725
1625
|
top: auto !important;
|
|
@@ -1734,7 +1634,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1734
1634
|
}
|
|
1735
1635
|
|
|
1736
1636
|
.container {
|
|
1737
|
-
|
|
1637
|
+
font-family: 'Graphik', sans-serif;
|
|
1738
1638
|
display: flex;
|
|
1739
1639
|
align-items: center;
|
|
1740
1640
|
box-sizing: border-box;
|
|
@@ -1744,6 +1644,9 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1744
1644
|
border-radius: 4px;
|
|
1745
1645
|
padding: 8px;
|
|
1746
1646
|
gap: 8px;
|
|
1647
|
+
font-size: 14px;
|
|
1648
|
+
line-height: 25px;
|
|
1649
|
+
font-weight: 400;
|
|
1747
1650
|
white-space: nowrap;
|
|
1748
1651
|
color: var(--white);
|
|
1749
1652
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
@@ -1800,7 +1703,21 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1800
1703
|
<randstad-icon name=${this.icon} size="24px" color="white"></randstad-icon>
|
|
1801
1704
|
<span class="message">${this.message}</span>
|
|
1802
1705
|
</div>
|
|
1803
|
-
`}}customElements.define("randstad-snackbar"
|
|
1706
|
+
`}}customElements.define("randstad-snackbar",ge);class ye extends t{static{this.styles=e`
|
|
1707
|
+
div {
|
|
1708
|
+
color: red;
|
|
1709
|
+
font-size: 20px;
|
|
1710
|
+
}
|
|
1711
|
+
`}render(){return i`<div>Hola desde el Design System</div>`}}customElements.define("test-component",ye);let ve=class extends t{constructor(){super(...arguments),this.label="Test Button"}static{this.styles=e`
|
|
1712
|
+
button {
|
|
1713
|
+
padding: 10px 20px;
|
|
1714
|
+
font-size: 16px;
|
|
1715
|
+
background: blue;
|
|
1716
|
+
color: white;
|
|
1717
|
+
border: none;
|
|
1718
|
+
cursor: pointer;
|
|
1719
|
+
}
|
|
1720
|
+
`}render(){return i`<button>${this.label}</button>`}};r([T({type:String}),n("design:type",Object)],ve.prototype,"label",void 0),ve=r([a("test-button")],ve);let xe=class extends t{constructor(){super(...arguments),this.tabs=[],this.selected="",this.internalSelected=""}static{this.styles=e`
|
|
1804
1721
|
:host {
|
|
1805
1722
|
display: flex;
|
|
1806
1723
|
justify-content: space-around;
|
|
@@ -1825,7 +1742,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1825
1742
|
cursor: pointer;
|
|
1826
1743
|
text-decoration: none;
|
|
1827
1744
|
position: relative;
|
|
1828
|
-
flex: 1;
|
|
1745
|
+
flex: 1; /* ✅ para que cada tab ocupe el mismo espacio si lo deseas */
|
|
1829
1746
|
}
|
|
1830
1747
|
|
|
1831
1748
|
.tab.active {
|
|
@@ -1838,7 +1755,7 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1838
1755
|
bottom: -8px;
|
|
1839
1756
|
left: 0;
|
|
1840
1757
|
height: 2px;
|
|
1841
|
-
width: 100%;
|
|
1758
|
+
width: 100%; /* ✅ ocupará todo el ancho del .tab */
|
|
1842
1759
|
background-color: #0060df;
|
|
1843
1760
|
border-radius: 1px;
|
|
1844
1761
|
}
|
|
@@ -1855,5 +1772,5 @@ const me=t`@layer{:host{display:inline-flex;height:var(--md-radio-icon-size, 20p
|
|
|
1855
1772
|
<span>${t.label}</span>
|
|
1856
1773
|
</div>
|
|
1857
1774
|
`))}
|
|
1858
|
-
`}};r([
|
|
1775
|
+
`}};r([T({type:Array}),n("design:type",Array)],xe.prototype,"tabs",void 0),r([T({type:String}),n("design:type",String)],xe.prototype,"selected",void 0),r([P(),n("design:type",String)],xe.prototype,"internalSelected",void 0),xe=r([a("tabs-bar")],xe);export{j as Checkbox,R as CustomModal,L as CustomPopup,ue as CustomRadio,fe as CustomStepper,be as FilterableSelect,D as IconComponent,F as RandstadButton,M as RandstadForm,xe as TabsBar,ve as TestButton,ye as TestComponent};
|
|
1859
1776
|
//# sourceMappingURL=index.js.map
|