@orangelogic/design-system 2.78.0 → 2.79.0-ci.2
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/library/chunks/{AxisLabelRadial.BTpA5dYy.js → AxisLabelRadial.Bs1P_q_F.js} +1 -1
- package/library/chunks/{BaseColumnSeries.hIO71GLG.js → BaseColumnSeries.C7jwOxIJ.js} +1 -1
- package/library/chunks/{CandlestickSeries.w9C0GR9v.js → CandlestickSeries.CkXGtRWE.js} +2 -2
- package/library/chunks/{Circle.tOnnO-F-.js → Circle.DBa5Ok8V.js} +1 -1
- package/library/chunks/{ColumnSeries.Ckz75x1M.js → ColumnSeries.DGazbfza.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CCMTJT7K.js → EditableAxisLabel.wN0t_G2B.js} +2 -2
- package/library/chunks/{EditableLabel.DPmicdjK.js → EditableLabel.BWeq6fgX.js} +1 -1
- package/library/chunks/{Gradient.BrDBLm8v.js → Gradient.CdcsPIru.js} +1 -1
- package/library/chunks/{LinearGradient.CxfXxvMw.js → LinearGradient.B1z9AGUt.js} +2 -2
- package/library/chunks/{Picture.BNASYM-P.js → Picture.YSPC0l0Q.js} +1 -1
- package/library/chunks/{Polygon.Dr-GV2hn.js → Polygon.BwMvXN2H.js} +1 -1
- package/library/chunks/{ProgressPie.4mPA6xqm.js → ProgressPie.DlCwXN17.js} +5 -5
- package/library/chunks/{RadialLabel.HfsGiN4x.js → RadialLabel.DyVOf2K8.js} +1 -1
- package/library/chunks/{Scrollbar.Bgg-RhjP.js → Scrollbar.BdZVb_Z-.js} +1 -1
- package/library/chunks/{Slice.Dm56LTKj.js → Slice.DiEswWa6.js} +1 -1
- package/library/chunks/{Slider.FKJwoPq2.js → Slider.C20No2z5.js} +1 -1
- package/library/chunks/{SpriteResizer.-qJDgug8.js → SpriteResizer.DFnmcy0h.js} +1 -1
- package/library/chunks/{Triangle.BECgi7mc.js → Triangle.BaOef7HV.js} +1 -1
- package/library/chunks/{ZoomTools.cgwuIB0e.js → ZoomTools.D5JPehoL.js} +1 -1
- package/library/chunks/{am-chart.oZVBmpnn.js → am-chart.H2jnOzFc.js} +253 -261
- package/library/chunks/{animation.DU8t6mrk.js → animation.7ifl4x2S.js} +3 -7
- package/library/chunks/{button.DS64Tr8Z.js → button.B-ktz-w4.js} +7 -40
- package/library/chunks/button.styles.CKqn956w.js +5 -0
- package/library/chunks/{color-swatch-group.C7T6-sY7.js → color-swatch-group.DvllHUil.js} +46 -216
- package/library/chunks/{color-swatch.BuUP5yG4.js → color-swatch.Bx-HOp9f.js} +18 -202
- package/library/chunks/{colorPicker.C4w_vDjh.js → colorPicker.06n6P3aK.js} +5 -5
- package/library/chunks/component.styles.CRO4Odto.js +5 -0
- package/library/chunks/confirm-popover.BbHneK19.js +121 -0
- package/library/chunks/{cropper.D1lO3pl-.js → cropper.DTokTzP9.js} +2533 -2904
- package/library/chunks/{dialog.BdXQkCKY.js → dialog.B1nzoJak.js} +40 -251
- package/library/chunks/dot-pagination.C26bQ3vy.js +204 -0
- package/library/chunks/{exporting.BdjsEGF8.js → exporting.Chnl3UWi.js} +2 -2
- package/library/chunks/file-on-demand.D_Mia7M9.js +1956 -0
- package/library/chunks/{flow.D0FqdfOy.js → flow.D2CqFQa7.js} +5 -5
- package/library/chunks/{folder-select.B2qxSKA5.js → folder-select.DOsefkAC.js} +20 -226
- package/library/chunks/form-control.styles.CaGWmeAS.js +5 -0
- package/library/chunks/{gantt.DfUM7Gvb.js → gantt.DSHD2gjO.js} +8 -8
- package/library/chunks/header.D68fIfe2.js +170 -0
- package/library/chunks/{hierarchy.5kfBCoGt.js → hierarchy.DwVsMmsP.js} +5 -5
- package/library/chunks/icon-button.BuhCp--_.js +149 -0
- package/library/chunks/iframe.BQFZQMTe.js +73 -0
- package/library/chunks/{image.DHBgKeJp.js → image.4eLWAZ3-.js} +16 -272
- package/library/chunks/{index.BkoLctE9.js → index.C9khsiad.js} +17 -17
- package/library/chunks/{json.BjaT7cyo.js → json.zyETMOw-.js} +3 -3
- package/library/chunks/{list-editor.DluUZa06.js → list-editor.DNa6ROgr.js} +45 -360
- package/library/chunks/{map.DbgNAGxD.js → map.CqM2O6LB.js} +2 -2
- package/library/chunks/option.DljDoFx4.js +123 -0
- package/library/chunks/{overlayscrollbars.XhGWx9Zk.js → overlayscrollbars.BMav4RQ4.js} +252 -958
- package/library/chunks/{pagination.g4zErKN2.js → pagination.BiRyMwhM.js} +45 -141
- package/library/chunks/{percent.DO4FjAdu.js → percent.DuQwbCCg.js} +3 -3
- package/library/chunks/{radar.Dd5fJVMg.js → radar.FpYl3UH5.js} +4 -4
- package/library/chunks/{sliceGrouper.DA3aeuJ-.js → sliceGrouper.BsE7fGMt.js} +1 -1
- package/library/chunks/{stock.BfI5MUyK.js → stock.BR-ag4Pt.js} +9 -9
- package/library/chunks/{tab-group.Dg6a82ei.js → tab-group.9HbDE1AF.js} +30 -581
- package/library/chunks/{table.CcqrVieF.js → table.B8LpbiGE.js} +192 -2133
- package/library/chunks/{timeline.BxMLjB5J.js → timeline.DkzkmgEM.js} +5 -5
- package/library/chunks/{tree.OXvhEOjS.js → tree.q7xRVYyh.js} +31 -399
- package/library/chunks/typography.DJC_UXgs.js +52 -0
- package/library/chunks/{venn.CxFupTb9.js → venn.D739bOV3.js} +1 -1
- package/library/chunks/{wc.ThQubbN2.js → wc.DzW311D-.js} +1 -1
- package/library/chunks/{xy.q6e68du3.js → xy.DCRDfTsa.js} +10 -10
- package/library/components/alert.js +9 -177
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +12 -100
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +7 -88
- package/library/components/asset-link-format.js +48 -626
- package/library/components/atoms.js +17 -17
- package/library/components/avatar.js +5 -94
- package/library/components/badge.js +11 -139
- package/library/components/bicolor-picker.js +4 -23
- package/library/components/border-input-group.js +4 -25
- package/library/components/breadcrumb-item.js +24 -155
- package/library/components/breadcrumb.js +3 -21
- package/library/components/button-group.js +3 -28
- package/library/components/button.js +3 -3
- package/library/components/card.js +4 -126
- package/library/components/checkbox.js +11 -252
- package/library/components/color-picker.js +54 -725
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +9 -254
- package/library/components/corner-position-input-group.js +4 -57
- package/library/components/cropper.js +2 -2
- package/library/components/details.js +6 -152
- package/library/components/dialog.js +4 -4
- package/library/components/divider.js +5 -67
- package/library/components/dot-pagination.js +2 -2
- package/library/components/dot-status.js +25 -95
- package/library/components/drawer.js +8 -239
- package/library/components/dropdown.js +47 -149
- package/library/components/dynamic-select.js +7 -72
- package/library/components/e-chart.js +6 -49
- package/library/components/element-clamp.js +5 -78
- package/library/components/file-on-demand.js +9 -9
- package/library/components/folder-select.js +3 -3
- package/library/components/format-date.js +2 -6
- package/library/components/format-time.js +2 -12
- package/library/components/grid-item.js +4 -171
- package/library/components/grid.js +5 -41
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +8 -2448
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +7 -127
- package/library/components/image.js +2 -2
- package/library/components/include.js +2 -6
- package/library/components/input-group.js +4 -29
- package/library/components/input.js +21 -715
- package/library/components/line-clamp.js +7 -83
- package/library/components/list-editor.js +7 -7
- package/library/components/markdown.js +1 -3
- package/library/components/masonry.js +22 -221
- package/library/components/menu-item.js +9 -309
- package/library/components/menu-label.js +3 -20
- package/library/components/menu-section.js +3 -17
- package/library/components/menu.js +4 -112
- package/library/components/molecules.js +5 -5
- package/library/components/mutation-observer.js +2 -6
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +5 -16
- package/library/components/pagination.js +5 -5
- package/library/components/popup.js +204 -538
- package/library/components/position-picker.js +3 -93
- package/library/components/progress-bar.js +18 -135
- package/library/components/progress-ring.js +3 -94
- package/library/components/qr-code.js +4 -16
- package/library/components/radio-button.js +4 -24
- package/library/components/radio-card.js +7 -175
- package/library/components/radio-group.js +20 -151
- package/library/components/radio.js +13 -170
- package/library/components/range.js +120 -657
- package/library/components/rating.js +56 -236
- package/library/components/relative-time.js +2 -12
- package/library/components/resize-observer.js +3 -7
- package/library/components/select.js +225 -933
- package/library/components/shadow-input-group.js +5 -24
- package/library/components/share-option-list.js +18 -310
- package/library/components/sidebar.js +14 -220
- package/library/components/size-input-group.js +10 -75
- package/library/components/skeleton.js +7 -80
- package/library/components/space.js +6 -143
- package/library/components/spinner.js +6 -75
- package/library/components/split-panel.js +16 -123
- package/library/components/step.js +21 -272
- package/library/components/stepper-wizard.js +9 -43
- package/library/components/stepper.js +16 -33
- package/library/components/switch.js +11 -274
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +4 -31
- package/library/components/tab.js +9 -255
- package/library/components/table.js +6 -6
- package/library/components/tag.js +14 -165
- package/library/components/textarea.js +14 -363
- package/library/components/timecode.js +4 -23
- package/library/components/tooltip.js +8 -92
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +18 -117
- package/library/components/types.js +777 -12001
- package/library/components/typography.js +2 -2
- package/library/components/video.js +3522 -5919
- package/library/components/visually-hidden.js +3 -15
- package/library/package.json +4 -1
- package/library/packages/atoms/src/components/pagination/pagination.d.ts +2 -1
- package/library/packages/atoms/src/components/select/select.d.ts +11 -0
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Ajax/Ajax.d.ts +1 -1
- package/library/packages/atoms/src/components/table/tabulator-tables/modules/Edit/List.d.ts +32 -1
- package/library/packages/types/src/table.d.ts +2 -0
- package/library/react-web-component.d.ts +7 -3
- package/package.json +4 -1
- package/library/chunks/button.styles.Dl5IQLHU.js +0 -718
- package/library/chunks/component.styles.DMSLciL5.js +0 -71
- package/library/chunks/confirm-popover.BNjRvnN0.js +0 -288
- package/library/chunks/dot-pagination.CIVxMAAS.js +0 -325
- package/library/chunks/file-on-demand.BTTdth3o.js +0 -3802
- package/library/chunks/form-control.styles.CUGhvlfT.js +0 -67
- package/library/chunks/header.m7v3M94Z.js +0 -777
- package/library/chunks/icon-button.C3eqeQl9.js +0 -683
- package/library/chunks/iframe.CNEyWhcM.js +0 -160
- package/library/chunks/option.Csqefux_.js +0 -296
- package/library/chunks/typography.oDzoLbZS.js +0 -149
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as d, C as rt } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
|
-
import { c as ut } from "../chunks/component.styles.
|
|
3
|
-
import { f as ot } from "../chunks/form-control.styles.
|
|
2
|
+
import { c as ut } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
|
+
import { f as ot } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
4
4
|
import { c as lt } from "../chunks/custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as ht } from "../chunks/default-value.COZopaet.js";
|
|
6
6
|
import { F as pt } from "../chunks/form.DgwYWi0O.js";
|
|
@@ -22,8 +22,8 @@ function Z(a) {
|
|
|
22
22
|
var t;
|
|
23
23
|
return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return Array.isArray(t) ?
|
|
25
|
+
function W(a, t) {
|
|
26
|
+
return Array.isArray(t) ? W(a, (e, i) => t.includes(i)) : Object.entries(a).reduce((e, i) => {
|
|
27
27
|
let [s, n] = i;
|
|
28
28
|
return t(n, s) && (e[s] = n), e;
|
|
29
29
|
}, {});
|
|
@@ -142,7 +142,7 @@ function I(a) {
|
|
|
142
142
|
if (t) {
|
|
143
143
|
const i = t.mask;
|
|
144
144
|
return {
|
|
145
|
-
...
|
|
145
|
+
...W(t, (s, n) => !n.startsWith("_")),
|
|
146
146
|
mask: t.constructor,
|
|
147
147
|
_mask: i,
|
|
148
148
|
...e
|
|
@@ -201,7 +201,7 @@ class K {
|
|
|
201
201
|
/** */
|
|
202
202
|
}
|
|
203
203
|
f.MaskElement = K;
|
|
204
|
-
const
|
|
204
|
+
const X = 90, vt = 89;
|
|
205
205
|
class L extends K {
|
|
206
206
|
/** HTMLElement to use mask on */
|
|
207
207
|
constructor(t) {
|
|
@@ -220,9 +220,9 @@ class L extends K {
|
|
|
220
220
|
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
|
|
221
221
|
}
|
|
222
222
|
_onKeydown(t) {
|
|
223
|
-
if (this._handlers.redo && (t.keyCode ===
|
|
223
|
+
if (this._handlers.redo && (t.keyCode === X && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === vt && t.ctrlKey))
|
|
224
224
|
return t.preventDefault(), this._handlers.redo(t);
|
|
225
|
-
if (this._handlers.undo && t.keyCode ===
|
|
225
|
+
if (this._handlers.undo && t.keyCode === X && (t.metaKey || t.ctrlKey))
|
|
226
226
|
return t.preventDefault(), this._handlers.undo(t);
|
|
227
227
|
t.isComposing || this._handlers.selectionChange(t);
|
|
228
228
|
}
|
|
@@ -2397,545 +2397,7 @@ class Bt {
|
|
|
2397
2397
|
return this.host.autoGrowMirror ? (this.host.autoGrowMirror.textContent = t || " ", Math.ceil(this.host.autoGrowMirror.getBoundingClientRect().width)) : 0;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
const St = ft`
|
|
2401
|
-
:host {
|
|
2402
|
-
display: block;
|
|
2403
|
-
line-height: normal;
|
|
2404
|
-
}
|
|
2405
|
-
|
|
2406
|
-
:host([data-user-invalid])::part(base) {
|
|
2407
|
-
border-color: var(--cx-input-invalid-border-color);
|
|
2408
|
-
}
|
|
2409
|
-
|
|
2410
|
-
:host([data-user-invalid]:focus-within)::part(base) {
|
|
2411
|
-
border-color: var(--cx-input-invalid-border-color);
|
|
2412
|
-
box-shadow: var(--cx-input-invalid-shadow);
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
.input {
|
|
2416
|
-
flex: 1 1 auto;
|
|
2417
|
-
display: inline-flex;
|
|
2418
|
-
align-items: stretch;
|
|
2419
|
-
justify-content: start;
|
|
2420
|
-
position: relative;
|
|
2421
|
-
width: 100%;
|
|
2422
|
-
font-family: var(--cx-input-font-family);
|
|
2423
|
-
font-weight: var(--cx-input-font-weight);
|
|
2424
|
-
letter-spacing: var(--cx-input-letter-spacing);
|
|
2425
|
-
vertical-align: middle;
|
|
2426
|
-
overflow: hidden;
|
|
2427
|
-
cursor: text;
|
|
2428
|
-
transition:
|
|
2429
|
-
var(--cx-transition-fast) color,
|
|
2430
|
-
var(--cx-transition-fast) border,
|
|
2431
|
-
var(--cx-transition-fast) box-shadow,
|
|
2432
|
-
var(--cx-transition-fast) background-color;
|
|
2433
|
-
}
|
|
2434
|
-
|
|
2435
|
-
.input--auto-grow {
|
|
2436
|
-
flex: 0 1 auto;
|
|
2437
|
-
width: auto;
|
|
2438
|
-
max-width: 100%;
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
/* Standard inputs */
|
|
2442
|
-
.input--standard {
|
|
2443
|
-
background-color: var(--cx-input-background-color);
|
|
2444
|
-
border: solid var(--cx-input-border-width) var(--cx-input-border-color);
|
|
2445
|
-
}
|
|
2446
|
-
|
|
2447
|
-
.input--standard:hover:not(.input--disabled) {
|
|
2448
|
-
background-color: var(--cx-input-background-color-hover);
|
|
2449
|
-
border-color: var(--cx-input-border-color-hover);
|
|
2450
|
-
}
|
|
2451
|
-
|
|
2452
|
-
.input--standard.input--focused:not(.input--disabled) {
|
|
2453
|
-
background-color: var(--cx-input-background-color-focus);
|
|
2454
|
-
border-color: var(--cx-input-border-color-focus);
|
|
2455
|
-
}
|
|
2456
|
-
|
|
2457
|
-
.input--standard.input--focused:not(.input--disabled) .input__control {
|
|
2458
|
-
color: var(--cx-input-color-focus);
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
.input--standard.input--disabled {
|
|
2462
|
-
background-color: var(--cx-input-background-color-disabled);
|
|
2463
|
-
border-color: var(--cx-input-border-color-disabled);
|
|
2464
|
-
opacity: 0.5;
|
|
2465
|
-
cursor: default;
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
.input--standard.input--disabled .input__control {
|
|
2469
|
-
color: var(--cx-input-color-disabled);
|
|
2470
|
-
}
|
|
2471
|
-
|
|
2472
|
-
.input--standard.input--disabled .input__control::placeholder {
|
|
2473
|
-
color: var(--cx-input-placeholder-color-disabled);
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
/* Filled inputs */
|
|
2477
|
-
.input--filled {
|
|
2478
|
-
border: none;
|
|
2479
|
-
background-color: var(--cx-input-filled-background-color);
|
|
2480
|
-
color: var(--cx-input-color);
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
.input--filled:hover:not(.input--disabled) {
|
|
2484
|
-
background-color: var(--cx-input-filled-background-color-hover);
|
|
2485
|
-
}
|
|
2486
|
-
|
|
2487
|
-
.input--filled.input--focused:not(.input--disabled) {
|
|
2488
|
-
background-color: var(--cx-input-filled-background-color-focus);
|
|
2489
|
-
outline: var(--cx-focus-ring);
|
|
2490
|
-
outline-offset: var(--cx-focus-ring-offset);
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
.input--filled.input--disabled {
|
|
2494
|
-
background-color: var(--cx-input-filled-background-color-disabled);
|
|
2495
|
-
opacity: 0.5;
|
|
2496
|
-
cursor: default;
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
.input__control {
|
|
2500
|
-
font: inherit;
|
|
2501
|
-
min-width: 0;
|
|
2502
|
-
color: var(--cx-input-color);
|
|
2503
|
-
border: none;
|
|
2504
|
-
background: inherit;
|
|
2505
|
-
box-shadow: none;
|
|
2506
|
-
padding: 0;
|
|
2507
|
-
margin: 0;
|
|
2508
|
-
cursor: inherit;
|
|
2509
|
-
-webkit-appearance: none;
|
|
2510
|
-
line-height: var(--cx-line-height-medium);
|
|
2511
|
-
}
|
|
2512
|
-
|
|
2513
|
-
.input__auto-grow-mirror {
|
|
2514
|
-
position: absolute;
|
|
2515
|
-
visibility: hidden;
|
|
2516
|
-
white-space: pre;
|
|
2517
|
-
pointer-events: none;
|
|
2518
|
-
box-sizing: border-box;
|
|
2519
|
-
font: inherit;
|
|
2520
|
-
letter-spacing: inherit;
|
|
2521
|
-
line-height: var(--cx-line-height-medium);
|
|
2522
|
-
padding: 0;
|
|
2523
|
-
margin: 0;
|
|
2524
|
-
border: 0;
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
.form-control--has-label .input__control,
|
|
2528
|
-
.form-control--has-label .input__auto-grow-mirror {
|
|
2529
|
-
padding-top: var(--cx-spacing-x-small);
|
|
2530
|
-
padding-bottom: var(--cx-spacing-2x-small);
|
|
2531
|
-
}
|
|
2532
|
-
|
|
2533
|
-
.input__control::-webkit-search-decoration,
|
|
2534
|
-
.input__control::-webkit-search-cancel-button,
|
|
2535
|
-
.input__control::-webkit-search-results-button,
|
|
2536
|
-
.input__control::-webkit-search-results-decoration {
|
|
2537
|
-
-webkit-appearance: none;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
|
-
.input__control:-webkit-autofill,
|
|
2541
|
-
.input__control:-webkit-autofill:hover,
|
|
2542
|
-
.input__control:-webkit-autofill:focus,
|
|
2543
|
-
.input__control:-webkit-autofill:active {
|
|
2544
|
-
box-shadow: 0 0 0 var(--cx-input-height-large)
|
|
2545
|
-
var(--cx-input-background-color-hover) inset !important;
|
|
2546
|
-
-webkit-text-fill-color: var(--cx-color-primary-500);
|
|
2547
|
-
caret-color: var(--cx-input-color);
|
|
2548
|
-
}
|
|
2549
|
-
|
|
2550
|
-
.input--filled .input__control:-webkit-autofill,
|
|
2551
|
-
.input--filled .input__control:-webkit-autofill:hover,
|
|
2552
|
-
.input--filled .input__control:-webkit-autofill:focus,
|
|
2553
|
-
.input--filled .input__control:-webkit-autofill:active {
|
|
2554
|
-
box-shadow: 0 0 0 var(--cx-input-height-large)
|
|
2555
|
-
var(--cx-input-filled-background-color) inset !important;
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
.input__control::placeholder {
|
|
2559
|
-
color: var(--cx-input-placeholder-color);
|
|
2560
|
-
user-select: none;
|
|
2561
|
-
-webkit-user-select: none;
|
|
2562
|
-
}
|
|
2563
|
-
|
|
2564
|
-
.input:hover:not(.input--disabled) .input__control {
|
|
2565
|
-
color: var(--cx-input-color-hover);
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
.input__control:focus {
|
|
2569
|
-
outline: none;
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
.input__prefix,
|
|
2573
|
-
.input__suffix {
|
|
2574
|
-
display: inline-flex;
|
|
2575
|
-
flex: 0 0 auto;
|
|
2576
|
-
align-items: center;
|
|
2577
|
-
cursor: default;
|
|
2578
|
-
}
|
|
2579
|
-
|
|
2580
|
-
.input__prefix ::slotted(cx-icon),
|
|
2581
|
-
.input__suffix ::slotted(cx-icon) {
|
|
2582
|
-
color: var(--cx-input-icon-color);
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
.input__character-count {
|
|
2586
|
-
display: flex;
|
|
2587
|
-
align-items: center;
|
|
2588
|
-
justify-content: flex-end;
|
|
2589
|
-
color: var(--cx-input-suffix-color, var(--cx-input-color));
|
|
2590
|
-
font-size: var(--cx-input-font-size);
|
|
2591
|
-
font-weight: var(--cx-input-font-weight);
|
|
2592
|
-
letter-spacing: var(--cx-input-letter-spacing);
|
|
2593
|
-
line-height: var(--cx-input-line-height);
|
|
2594
|
-
padding-inline-end: var(--cx-spacing-x-small);
|
|
2595
|
-
padding-top: var(--cx-spacing-2x-small);
|
|
2596
|
-
white-space: nowrap;
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
/*
|
|
2600
|
-
* Size modifiers
|
|
2601
|
-
*/
|
|
2602
|
-
|
|
2603
|
-
.input--small {
|
|
2604
|
-
border-radius: var(--cx-input-border-radius-small);
|
|
2605
|
-
font-size: var(--cx-input-font-size-small);
|
|
2606
|
-
min-height: var(--cx-input-height-small);
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
.input--small .input__control,
|
|
2610
|
-
.input--small .input__auto-grow-mirror {
|
|
2611
|
-
padding-left: var(--cx-input-spacing-small);
|
|
2612
|
-
padding-right: var(--cx-input-spacing-small);
|
|
2613
|
-
}
|
|
2614
|
-
|
|
2615
|
-
.input--small .input__clear,
|
|
2616
|
-
.input--small .input__password-toggle {
|
|
2617
|
-
width: calc(1em + var(--cx-spacing-x-small) * 2);
|
|
2618
|
-
}
|
|
2619
|
-
|
|
2620
|
-
.input--small .input__prefix ::slotted(*) {
|
|
2621
|
-
margin-inline-start: var(--cx-spacing-x-small);
|
|
2622
|
-
}
|
|
2623
|
-
|
|
2624
|
-
.input--small .input__suffix ::slotted(*) {
|
|
2625
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
.input--small .input__control--file {
|
|
2629
|
-
gap: calc(var(--cx-input-spacing-small) / 2);
|
|
2630
|
-
padding-top: var(--cx-spacing-x-small);
|
|
2631
|
-
padding-bottom: var(--cx-spacing-x-small);
|
|
2632
|
-
}
|
|
2633
|
-
|
|
2634
|
-
.input--medium {
|
|
2635
|
-
border-radius: var(--cx-input-border-radius-medium);
|
|
2636
|
-
font-size: var(--cx-input-font-size-small);
|
|
2637
|
-
min-height: var(--cx-input-height-medium);
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
.input--medium .input__control,
|
|
2641
|
-
.input--medium .input__auto-grow-mirror {
|
|
2642
|
-
padding-left: var(--cx-input-spacing-medium);
|
|
2643
|
-
padding-right: var(--cx-input-spacing-medium);
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
.input--medium .input__clear,
|
|
2647
|
-
.input--medium .input__password-toggle {
|
|
2648
|
-
width: calc(1em + var(--cx-spacing-x-small) * 2);
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
.input--medium .input__prefix ::slotted(*) {
|
|
2652
|
-
margin-inline-start: var(--cx-spacing-x-small);
|
|
2653
|
-
}
|
|
2654
|
-
|
|
2655
|
-
.input--medium .input__suffix ::slotted(*) {
|
|
2656
|
-
margin-inline-end: var(--cx-spacing-x-small);
|
|
2657
|
-
}
|
|
2658
|
-
|
|
2659
|
-
.input--medium .input__control--file {
|
|
2660
|
-
gap: calc(var(--cx-input-spacing-medium) / 2);
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
.input--large {
|
|
2664
|
-
border-radius: var(--cx-input-border-radius-large);
|
|
2665
|
-
font-size: var(--cx-input-font-size-small);
|
|
2666
|
-
min-height: var(--cx-input-height-large);
|
|
2667
|
-
}
|
|
2668
|
-
|
|
2669
|
-
.input--large .input__control,
|
|
2670
|
-
.input--large .input__auto-grow-mirror {
|
|
2671
|
-
padding-left: var(--cx-input-spacing-large);
|
|
2672
|
-
padding-right: var(--cx-input-spacing-large);
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
.input--large .input__clear,
|
|
2676
|
-
.input--large .input__password-toggle {
|
|
2677
|
-
width: calc(1em + var(--cx-input-spacing-small) * 2);
|
|
2678
|
-
}
|
|
2679
|
-
|
|
2680
|
-
.input--large .input__prefix ::slotted(*) {
|
|
2681
|
-
margin-inline-start: var(--cx-input-spacing-small);
|
|
2682
|
-
}
|
|
2683
|
-
|
|
2684
|
-
.input--large .input__suffix ::slotted(*) {
|
|
2685
|
-
margin-inline-end: var(--cx-input-spacing-small);
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
|
-
.input--large .input__control--file {
|
|
2689
|
-
gap: calc(var(--cx-input-spacing-large) / 2);
|
|
2690
|
-
}
|
|
2691
|
-
|
|
2692
|
-
.input--button-only {
|
|
2693
|
-
padding: 0;
|
|
2694
|
-
border: 0;
|
|
2695
|
-
align-items: center;
|
|
2696
|
-
}
|
|
2697
|
-
|
|
2698
|
-
.input--button-only .input__control--file {
|
|
2699
|
-
padding: 0;
|
|
2700
|
-
border: 0;
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
.input--button-only .input-container {
|
|
2704
|
-
display: none;
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
/*
|
|
2708
|
-
* Pill modifier
|
|
2709
|
-
*/
|
|
2710
|
-
|
|
2711
|
-
.input--pill.input--small {
|
|
2712
|
-
border-radius: var(--cx-input-height-small);
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
.input--pill.input--medium {
|
|
2716
|
-
border-radius: var(--cx-input-height-medium);
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
.input--pill.input--large {
|
|
2720
|
-
border-radius: var(--cx-input-height-large);
|
|
2721
|
-
}
|
|
2722
|
-
|
|
2723
|
-
/*
|
|
2724
|
-
* Clearable + Password Toggle
|
|
2725
|
-
*/
|
|
2726
|
-
|
|
2727
|
-
.input__clear,
|
|
2728
|
-
.input__password-toggle {
|
|
2729
|
-
display: inline-flex;
|
|
2730
|
-
align-items: center;
|
|
2731
|
-
justify-content: center;
|
|
2732
|
-
font-size: inherit;
|
|
2733
|
-
color: var(--cx-input-icon-color);
|
|
2734
|
-
border: none;
|
|
2735
|
-
background: none;
|
|
2736
|
-
padding: 0;
|
|
2737
|
-
transition: var(--cx-transition-fast) color;
|
|
2738
|
-
cursor: pointer;
|
|
2739
|
-
}
|
|
2740
|
-
|
|
2741
|
-
.input__clear:hover,
|
|
2742
|
-
.input__password-toggle:hover {
|
|
2743
|
-
color: var(--cx-input-icon-color-hover);
|
|
2744
|
-
}
|
|
2745
|
-
|
|
2746
|
-
.input__clear:focus,
|
|
2747
|
-
.input__password-toggle:focus {
|
|
2748
|
-
outline: none;
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
/* Don't show the browser's password toggle in Edge */
|
|
2752
|
-
::-ms-reveal {
|
|
2753
|
-
display: none;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
/* Hide the built-in number spinner */
|
|
2757
|
-
.input--no-spin-buttons input[type='number']::-webkit-outer-spin-button,
|
|
2758
|
-
.input--no-spin-buttons input[type='number']::-webkit-inner-spin-button {
|
|
2759
|
-
-webkit-appearance: none;
|
|
2760
|
-
display: none;
|
|
2761
|
-
}
|
|
2762
|
-
|
|
2763
|
-
.input--no-spin-buttons input[type='number'] {
|
|
2764
|
-
-moz-appearance: textfield;
|
|
2765
|
-
}
|
|
2766
|
-
|
|
2767
|
-
input[type='file'] {
|
|
2768
|
-
display: none;
|
|
2769
|
-
}
|
|
2770
|
-
|
|
2771
|
-
/*
|
|
2772
|
-
* Adapt label to be inside input
|
|
2773
|
-
*/
|
|
2774
|
-
|
|
2775
|
-
.input-container {
|
|
2776
|
-
position: relative;
|
|
2777
|
-
display: inline-flex;
|
|
2778
|
-
flex-direction: column;
|
|
2779
|
-
justify-content: center;
|
|
2780
|
-
flex: 1;
|
|
2781
|
-
width: 0;
|
|
2782
|
-
}
|
|
2783
|
-
|
|
2784
|
-
.input-container--auto-grow {
|
|
2785
|
-
flex: 0 1 auto;
|
|
2786
|
-
width: auto;
|
|
2787
|
-
}
|
|
2788
|
-
|
|
2789
|
-
.input__control--auto-grow {
|
|
2790
|
-
min-width: var(--cx-input-auto-grow-min-width, 0);
|
|
2791
|
-
max-width: 100%;
|
|
2792
|
-
}
|
|
2793
|
-
|
|
2794
|
-
.form-control__label {
|
|
2795
|
-
position: relative;
|
|
2796
|
-
-webkit-transition: transform 0.2s ease-in-out;
|
|
2797
|
-
-moz-transition: transform 0.2s ease-in-out;
|
|
2798
|
-
transition: transform 0.2s ease-in-out;
|
|
2799
|
-
pointer-events: none;
|
|
2800
|
-
width: fit-content;
|
|
2801
|
-
line-height: 1; /* use line-height: 1 for easier transform calculation */
|
|
2802
|
-
text-transform: var(--cx-input-label-text-transform, none);
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
|
-
/* when empty with no placeholder (initial state), transform label to vertical center
|
|
2806
|
-
= (input height - label height) / 2
|
|
2807
|
-
*/
|
|
2808
|
-
.form-control--has-label .input--small .form-control__label {
|
|
2809
|
-
padding: 0 var(--cx-input-spacing-small);
|
|
2810
|
-
transform: translateY(
|
|
2811
|
-
calc(
|
|
2812
|
-
(
|
|
2813
|
-
var(--cx-input-height-small) +
|
|
2814
|
-
1.25rem - var(--cx-input-font-size-small)
|
|
2815
|
-
) /
|
|
2816
|
-
2
|
|
2817
|
-
)
|
|
2818
|
-
);
|
|
2819
|
-
margin: 0;
|
|
2820
|
-
}
|
|
2821
|
-
|
|
2822
|
-
.form-control--has-label .input--medium .form-control__label {
|
|
2823
|
-
padding: 0 var(--cx-input-spacing-medium);
|
|
2824
|
-
transform: translateY(
|
|
2825
|
-
calc(
|
|
2826
|
-
(
|
|
2827
|
-
var(--cx-input-height-medium) +
|
|
2828
|
-
1rem - var(--cx-input-font-size-medium)
|
|
2829
|
-
) /
|
|
2830
|
-
2
|
|
2831
|
-
)
|
|
2832
|
-
);
|
|
2833
|
-
margin: 0;
|
|
2834
|
-
}
|
|
2835
|
-
|
|
2836
|
-
.form-control--has-label .input--large .form-control__label {
|
|
2837
|
-
padding: 0 var(--cx-input-spacing-large);
|
|
2838
|
-
transform: translateY(
|
|
2839
|
-
calc(
|
|
2840
|
-
(
|
|
2841
|
-
var(--cx-input-height-large) +
|
|
2842
|
-
1rem - var(--cx-input-font-size-large)
|
|
2843
|
-
) /
|
|
2844
|
-
2
|
|
2845
|
-
)
|
|
2846
|
-
);
|
|
2847
|
-
margin: 0;
|
|
2848
|
-
}
|
|
2849
|
-
|
|
2850
|
-
/* Increase input height if there's a label */
|
|
2851
|
-
.form-control--has-label .input--small,
|
|
2852
|
-
.form-control--file .input--small {
|
|
2853
|
-
min-height: calc(var(--cx-input-height-small) + 1rem);
|
|
2854
|
-
}
|
|
2855
|
-
.form-control--has-label .input--medium,
|
|
2856
|
-
.form-control--file .input--medium {
|
|
2857
|
-
min-height: calc(var(--cx-input-height-medium) + 1rem);
|
|
2858
|
-
}
|
|
2859
|
-
.form-control--has-label .input--large,
|
|
2860
|
-
.form-control--file .input--large {
|
|
2861
|
-
min-height: calc(var(--cx-input-height-large) + 1rem);
|
|
2862
|
-
}
|
|
2863
|
-
|
|
2864
|
-
/* When focused or not empty, transform label to top
|
|
2865
|
-
Instead of 0, use var(--cx-spacing-2x-small) to have a distance from top
|
|
2866
|
-
*/
|
|
2867
|
-
.form-control--has-label .input--focused .form-control__label,
|
|
2868
|
-
.form-control--has-label .input--has-placeholder .form-control__label,
|
|
2869
|
-
.form-control--has-label .input:not(.input--empty) .form-control__label {
|
|
2870
|
-
transform: translateY(
|
|
2871
|
-
calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small))
|
|
2872
|
-
); /* distance from top */
|
|
2873
|
-
}
|
|
2874
|
-
|
|
2875
|
-
.input__control--file {
|
|
2876
|
-
display: flex;
|
|
2877
|
-
flex-direction: row;
|
|
2878
|
-
align-items: center;
|
|
2879
|
-
margin-block: 0;
|
|
2880
|
-
text-align: start !important;
|
|
2881
|
-
width: 100%;
|
|
2882
|
-
height: 100%;
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
.input__control--file span {
|
|
2886
|
-
flex: 1 1 auto;
|
|
2887
|
-
text-overflow: ellipsis;
|
|
2888
|
-
overflow: hidden;
|
|
2889
|
-
white-space: nowrap;
|
|
2890
|
-
}
|
|
2891
|
-
|
|
2892
|
-
/*
|
|
2893
|
-
* Input groups support a variety of input types (e.g. inputs with tooltips, inputs as dropdown triggers, etc.).
|
|
2894
|
-
* This means inputs aren't always direct descendants of the input group, thus we can't target them with the
|
|
2895
|
-
* ::slotted selector. To work around this, the input group component does some magic to add these special classes to
|
|
2896
|
-
* inputs and we style them here instead.
|
|
2897
|
-
*/
|
|
2898
|
-
|
|
2899
|
-
:host(
|
|
2900
|
-
[data-cx-input-group__input--first]:not(
|
|
2901
|
-
[data-cx-input-group__input--last]
|
|
2902
|
-
)
|
|
2903
|
-
)
|
|
2904
|
-
.input {
|
|
2905
|
-
border-start-end-radius: 0;
|
|
2906
|
-
border-end-end-radius: 0;
|
|
2907
|
-
}
|
|
2908
|
-
|
|
2909
|
-
:host([data-cx-input-group__input--inner]) .input {
|
|
2910
|
-
border-radius: 0;
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
-
:host(
|
|
2914
|
-
[data-cx-input-group__input--last]:not(
|
|
2915
|
-
[data-cx-input-group__input--first]
|
|
2916
|
-
)
|
|
2917
|
-
)
|
|
2918
|
-
.input {
|
|
2919
|
-
border-start-start-radius: 0;
|
|
2920
|
-
border-end-start-radius: 0;
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
/* All except the first */
|
|
2924
|
-
:host([data-cx-input-group__input]:not([data-cx-input-group__input--first])) {
|
|
2925
|
-
margin-inline-start: calc(-1 * var(--cx-input-border-width));
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
/* Bump hovered, focused, and checked inputs up so their focus ring isn't clipped */
|
|
2929
|
-
:host([data-cx-input-group__input--hover]) {
|
|
2930
|
-
z-index: 1;
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
/* Focus and checked are always on top */
|
|
2934
|
-
:host([data-cx-input-group__input--focus]),
|
|
2935
|
-
:host([data-cx-input-group__input][checked]) {
|
|
2936
|
-
z-index: 2;
|
|
2937
|
-
}
|
|
2938
|
-
`;
|
|
2400
|
+
const St = ft`:host{line-height:normal;display:block}:host([data-user-invalid])::part(base){border-color:var(--cx-input-invalid-border-color)}:host([data-user-invalid]:focus-within)::part(base){border-color:var(--cx-input-invalid-border-color);box-shadow:var(--cx-input-invalid-shadow)}.input{width:100%;font-family:var(--cx-input-font-family);font-weight:var(--cx-input-font-weight);letter-spacing:var(--cx-input-letter-spacing);vertical-align:middle;cursor:text;transition:var(--cx-transition-fast) color, var(--cx-transition-fast) border, var(--cx-transition-fast) box-shadow, var(--cx-transition-fast) background-color;flex:auto;justify-content:start;align-items:stretch;display:inline-flex;position:relative;overflow:hidden}.input--auto-grow{flex:0 auto;width:auto;max-width:100%}.input--standard{background-color:var(--cx-input-background-color);border:solid var(--cx-input-border-width) var(--cx-input-border-color)}.input--standard:hover:not(.input--disabled){background-color:var(--cx-input-background-color-hover);border-color:var(--cx-input-border-color-hover)}.input--standard.input--focused:not(.input--disabled){background-color:var(--cx-input-background-color-focus);border-color:var(--cx-input-border-color-focus)}.input--standard.input--focused:not(.input--disabled) .input__control{color:var(--cx-input-color-focus)}.input--standard.input--disabled{background-color:var(--cx-input-background-color-disabled);border-color:var(--cx-input-border-color-disabled);opacity:.5;cursor:default}.input--standard.input--disabled .input__control{color:var(--cx-input-color-disabled)}.input--standard.input--disabled .input__control::placeholder{color:var(--cx-input-placeholder-color-disabled)}.input--filled{background-color:var(--cx-input-filled-background-color);color:var(--cx-input-color);border:none}.input--filled:hover:not(.input--disabled){background-color:var(--cx-input-filled-background-color-hover)}.input--filled.input--focused:not(.input--disabled){background-color:var(--cx-input-filled-background-color-focus);outline:var(--cx-focus-ring);outline-offset:var(--cx-focus-ring-offset)}.input--filled.input--disabled{background-color:var(--cx-input-filled-background-color-disabled);opacity:.5;cursor:default}.input__control{font:inherit;min-width:0;color:var(--cx-input-color);background:inherit;box-shadow:none;cursor:inherit;-webkit-appearance:none;line-height:var(--cx-line-height-medium);border:none;margin:0;padding:0}.input__auto-grow-mirror{visibility:hidden;white-space:pre;pointer-events:none;box-sizing:border-box;font:inherit;letter-spacing:inherit;line-height:var(--cx-line-height-medium);border:0;margin:0;padding:0;position:absolute}.form-control--has-label .input__control,.form-control--has-label .input__auto-grow-mirror{padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-2x-small)}.input__control::-webkit-search-decoration,.input__control::-webkit-search-cancel-button,.input__control::-webkit-search-results-button,.input__control::-webkit-search-results-decoration{-webkit-appearance:none}.input__control:-webkit-autofill,.input__control:-webkit-autofill:hover,.input__control:-webkit-autofill:focus,.input__control:-webkit-autofill:active{-webkit-text-fill-color:var(--cx-color-primary-500);caret-color:var(--cx-input-color);box-shadow:0 0 0 var(--cx-input-height-large) var(--cx-input-background-color-hover) inset!important}.input--filled .input__control:-webkit-autofill,.input--filled .input__control:-webkit-autofill:hover,.input--filled .input__control:-webkit-autofill:focus,.input--filled .input__control:-webkit-autofill:active{box-shadow:0 0 0 var(--cx-input-height-large) var(--cx-input-filled-background-color) inset!important}.input__control::placeholder{color:var(--cx-input-placeholder-color);-webkit-user-select:none;user-select:none}.input:hover:not(.input--disabled) .input__control{color:var(--cx-input-color-hover)}.input__control:focus{outline:none}.input__prefix,.input__suffix{cursor:default;flex:none;align-items:center;display:inline-flex}.input__prefix ::slotted(cx-icon),.input__suffix ::slotted(cx-icon){color:var(--cx-input-icon-color)}.input__character-count{color:var(--cx-input-suffix-color,var(--cx-input-color));font-size:var(--cx-input-font-size);font-weight:var(--cx-input-font-weight);letter-spacing:var(--cx-input-letter-spacing);line-height:var(--cx-input-line-height);padding-inline-end:var(--cx-spacing-x-small);padding-top:var(--cx-spacing-2x-small);white-space:nowrap;justify-content:flex-end;align-items:center;display:flex}.input--small{border-radius:var(--cx-input-border-radius-small);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-small)}.input--small .input__control,.input--small .input__auto-grow-mirror{padding-left:var(--cx-input-spacing-small);padding-right:var(--cx-input-spacing-small)}.input--small .input__clear,.input--small .input__password-toggle{width:calc(1em + var(--cx-spacing-x-small) * 2)}.input--small .input__prefix ::slotted(*){margin-inline-start:var(--cx-spacing-x-small)}.input--small .input__suffix ::slotted(*){margin-inline-end:var(--cx-spacing-x-small)}.input--small .input__control--file{gap:calc(var(--cx-input-spacing-small) / 2);padding-top:var(--cx-spacing-x-small);padding-bottom:var(--cx-spacing-x-small)}.input--medium{border-radius:var(--cx-input-border-radius-medium);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-medium)}.input--medium .input__control,.input--medium .input__auto-grow-mirror{padding-left:var(--cx-input-spacing-medium);padding-right:var(--cx-input-spacing-medium)}.input--medium .input__clear,.input--medium .input__password-toggle{width:calc(1em + var(--cx-spacing-x-small) * 2)}.input--medium .input__prefix ::slotted(*){margin-inline-start:var(--cx-spacing-x-small)}.input--medium .input__suffix ::slotted(*){margin-inline-end:var(--cx-spacing-x-small)}.input--medium .input__control--file{gap:calc(var(--cx-input-spacing-medium) / 2)}.input--large{border-radius:var(--cx-input-border-radius-large);font-size:var(--cx-input-font-size-small);min-height:var(--cx-input-height-large)}.input--large .input__control,.input--large .input__auto-grow-mirror{padding-left:var(--cx-input-spacing-large);padding-right:var(--cx-input-spacing-large)}.input--large .input__clear,.input--large .input__password-toggle{width:calc(1em + var(--cx-input-spacing-small) * 2)}.input--large .input__prefix ::slotted(*){margin-inline-start:var(--cx-input-spacing-small)}.input--large .input__suffix ::slotted(*){margin-inline-end:var(--cx-input-spacing-small)}.input--large .input__control--file{gap:calc(var(--cx-input-spacing-large) / 2)}.input--button-only{border:0;align-items:center;padding:0}.input--button-only .input__control--file{border:0;padding:0}.input--button-only .input-container{display:none}.input--pill.input--small{border-radius:var(--cx-input-height-small)}.input--pill.input--medium{border-radius:var(--cx-input-height-medium)}.input--pill.input--large{border-radius:var(--cx-input-height-large)}.input__clear,.input__password-toggle{font-size:inherit;color:var(--cx-input-icon-color);transition:var(--cx-transition-fast) color;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.input__clear:hover,.input__password-toggle:hover{color:var(--cx-input-icon-color-hover)}.input__clear:focus,.input__password-toggle:focus{outline:none}::-ms-reveal{display:none}.input--no-spin-buttons input[type=number]::-webkit-outer-spin-button,.input--no-spin-buttons input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;display:none}.input--no-spin-buttons input[type=number]{-moz-appearance:textfield}input[type=file]{display:none}.input-container{flex-direction:column;flex:1;justify-content:center;width:0;display:inline-flex;position:relative}.input-container--auto-grow{flex:0 auto;width:auto}.input__control--auto-grow{min-width:var(--cx-input-auto-grow-min-width,0);max-width:100%}.form-control__label{pointer-events:none;width:fit-content;text-transform:var(--cx-input-label-text-transform,none);line-height:1;-webkit-transition:transform .2s ease-in-out;-moz-transition:transform .2s ease-in-out;transition:transform .2s ease-in-out;position:relative}.form-control--has-label .input--small .form-control__label{padding:0 var(--cx-input-spacing-small);transform:translateY(calc(( var(--cx-input-height-small) + 1.25rem - var(--cx-input-font-size-small) ) / 2));margin:0}.form-control--has-label .input--medium .form-control__label{padding:0 var(--cx-input-spacing-medium);transform:translateY(calc(( var(--cx-input-height-medium) + 1rem - var(--cx-input-font-size-medium) ) / 2));margin:0}.form-control--has-label .input--large .form-control__label{padding:0 var(--cx-input-spacing-large);transform:translateY(calc(( var(--cx-input-height-large) + 1rem - var(--cx-input-font-size-large) ) / 2));margin:0}.form-control--has-label .input--small,.form-control--file .input--small{min-height:calc(var(--cx-input-height-small) + 1rem)}.form-control--has-label .input--medium,.form-control--file .input--medium{min-height:calc(var(--cx-input-height-medium) + 1rem)}.form-control--has-label .input--large,.form-control--file .input--large{min-height:calc(var(--cx-input-height-large) + 1rem)}.form-control--has-label .input--focused .form-control__label,.form-control--has-label .input--has-placeholder .form-control__label,.form-control--has-label .input:not(.input--empty) .form-control__label{transform:translateY(calc(var(--cx-spacing-2x-small) + var(--cx-spacing-3x-small)))}.input__control--file{flex-direction:row;align-items:center;width:100%;height:100%;margin-block:0;display:flex;text-align:start!important}.input__control--file span{text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}:host([data-cx-input-group__input--first]:not([data-cx-input-group__input--last])) .input{border-start-end-radius:0;border-end-end-radius:0}:host([data-cx-input-group__input--inner]) .input{border-radius:0}:host([data-cx-input-group__input--last]:not([data-cx-input-group__input--first])) .input{border-start-start-radius:0;border-end-start-radius:0}:host([data-cx-input-group__input]:not([data-cx-input-group__input--first])){margin-inline-start:calc(-1 * var(--cx-input-border-width))}:host([data-cx-input-group__input--hover]){z-index:1}:host([data-cx-input-group__input--focus]),:host([data-cx-input-group__input][checked]){z-index:2}`;
|
|
2939
2401
|
var It = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, st = (a) => {
|
|
2940
2402
|
throw TypeError(a);
|
|
2941
2403
|
}, h = (a, t, e, i) => {
|
|
@@ -3134,10 +2596,7 @@ let o = class extends rt {
|
|
|
3134
2596
|
}
|
|
3135
2597
|
render() {
|
|
3136
2598
|
const a = this.hasSlotController.test("label"), t = this.hasSlotController.test("help-text"), e = this.label ? !0 : !!a, i = this.helpText ? !0 : !!t, n = this.clearable && !this.disabled && !this.readonly && (typeof this.value == "number" || this.value.length > 0), r = this.autoGrow && this.type !== "file", u = typeof this.fileResultLabel == "function" ? this.fileResultLabel(Mt(this, H, nt)) : this.fileResultLabel;
|
|
3137
|
-
return E
|
|
3138
|
-
<div
|
|
3139
|
-
part="form-control"
|
|
3140
|
-
class=${S({
|
|
2599
|
+
return E`<div part="form-control" class=${S({
|
|
3141
2600
|
"form-control": !0,
|
|
3142
2601
|
"form-control--file": this.type === "file",
|
|
3143
2602
|
"form-control--has-help-text": i,
|
|
@@ -3145,12 +2604,7 @@ let o = class extends rt {
|
|
|
3145
2604
|
"form-control--large": this.size === "large",
|
|
3146
2605
|
"form-control--medium": this.size === "medium",
|
|
3147
2606
|
"form-control--small": this.size === "small"
|
|
3148
|
-
})}
|
|
3149
|
-
>
|
|
3150
|
-
<div part="form-control-input" class="form-control-input">
|
|
3151
|
-
<div
|
|
3152
|
-
part="base"
|
|
3153
|
-
class=${S({
|
|
2607
|
+
})}><div part="form-control-input" class="form-control-input"><div part="base" class=${S({
|
|
3154
2608
|
input: !0,
|
|
3155
2609
|
"input--auto-grow": r,
|
|
3156
2610
|
"input--button-only": this.buttonOnly,
|
|
@@ -3166,176 +2620,28 @@ let o = class extends rt {
|
|
|
3166
2620
|
"input--pill": this.pill,
|
|
3167
2621
|
"input--small": this.size === "small",
|
|
3168
2622
|
"input--standard": !this.filled
|
|
3169
|
-
})}
|
|
3170
|
-
>
|
|
3171
|
-
<span part="prefix" class="input__prefix">
|
|
3172
|
-
<slot name="prefix"></slot>
|
|
3173
|
-
</span>
|
|
3174
|
-
|
|
3175
|
-
<span
|
|
3176
|
-
class=${S({
|
|
2623
|
+
})}><span part="prefix" class="input__prefix"><slot name="prefix"></slot></span><span class=${S({
|
|
3177
2624
|
"input-container": !0,
|
|
3178
2625
|
"input-container--auto-grow": r
|
|
3179
|
-
})}
|
|
3180
|
-
@mousedown=${this.handleContainerMouseDown}
|
|
3181
|
-
>
|
|
3182
|
-
<label
|
|
3183
|
-
part="form-control-label"
|
|
3184
|
-
class=${S({
|
|
2626
|
+
})} @mousedown=${this.handleContainerMouseDown}><label part="form-control-label" class=${S({
|
|
3185
2627
|
"form-control__label": !0,
|
|
3186
2628
|
"form-control__label--empty": !this.value
|
|
3187
|
-
})}
|
|
3188
|
-
for="input"
|
|
3189
|
-
aria-hidden=${e ? "false" : "true"}
|
|
3190
|
-
>
|
|
3191
|
-
<slot name="label" part="label">${this.label}</slot>
|
|
3192
|
-
</label>
|
|
3193
|
-
<input
|
|
3194
|
-
part="input"
|
|
3195
|
-
id="input"
|
|
3196
|
-
class=${S({
|
|
2629
|
+
})} for="input" aria-hidden=${e ? "false" : "true"}><slot name="label" part="label">${this.label}</slot></label><input part="input" id="input" class=${S({
|
|
3197
2630
|
input__control: !0,
|
|
3198
2631
|
"input__control--auto-grow": r
|
|
3199
|
-
})}
|
|
3200
|
-
type=${this.type === "password" && this.passwordVisible ? "text" : this.type}
|
|
3201
|
-
title=${this.title}
|
|
3202
|
-
aria-label=${_(this.ariaLabel)}
|
|
3203
|
-
name=${_(this.name)}
|
|
3204
|
-
?disabled=${this.disabled}
|
|
3205
|
-
?readonly=${this.readonly}
|
|
3206
|
-
?required=${this.required}
|
|
3207
|
-
placeholder=${_(this.placeholder)}
|
|
3208
|
-
minlength=${_(this.minlength)}
|
|
3209
|
-
maxlength=${_(this.maxlength)}
|
|
3210
|
-
min=${_(this.min)}
|
|
3211
|
-
max=${_(this.max)}
|
|
3212
|
-
step=${_(this.step)}
|
|
3213
|
-
autocapitalize=${_(this.autocapitalize)}
|
|
3214
|
-
autocomplete=${_(this.autocomplete)}
|
|
3215
|
-
autocorrect=${_(this.autoCorrect)}
|
|
3216
|
-
?autofocus=${this.autoFocus}
|
|
3217
|
-
spellcheck=${this.spellCheck}
|
|
3218
|
-
pattern=${_(this.pattern)}
|
|
3219
|
-
enterkeyhint=${_(this.enterKeyHint)}
|
|
3220
|
-
inputmode=${_(this.inputMode)}
|
|
3221
|
-
aria-describedby="help-text"
|
|
3222
|
-
.value=${mt(this.value)}
|
|
3223
|
-
@change=${this.handleChange}
|
|
3224
|
-
@input=${this.handleInput}
|
|
3225
|
-
@invalid=${this.handleInvalid}
|
|
3226
|
-
@keydown=${this.handleKeyDown}
|
|
3227
|
-
@focus=${this.handleFocus}
|
|
3228
|
-
@blur=${this.handleBlur}
|
|
3229
|
-
accept=${_(this.accept)}
|
|
3230
|
-
?multiple=${this.multiple}
|
|
3231
|
-
/>
|
|
3232
|
-
${Y(
|
|
2632
|
+
})} type=${this.type === "password" && this.passwordVisible ? "text" : this.type} title=${this.title} aria-label=${_(this.ariaLabel)} name=${_(this.name)} ?disabled=${this.disabled} ?readonly=${this.readonly} ?required=${this.required} placeholder=${_(this.placeholder)} minlength=${_(this.minlength)} maxlength=${_(this.maxlength)} min=${_(this.min)} max=${_(this.max)} step=${_(this.step)} autocapitalize=${_(this.autocapitalize)} autocomplete=${_(this.autocomplete)} autocorrect=${_(this.autoCorrect)} ?autofocus=${this.autoFocus} spellcheck=${this.spellCheck} pattern=${_(this.pattern)} enterkeyhint=${_(this.enterKeyHint)} inputmode=${_(this.inputMode)} aria-describedby="help-text" .value=${mt(this.value)} @change=${this.handleChange} @input=${this.handleInput} @invalid=${this.handleInvalid} @keydown=${this.handleKeyDown} @focus=${this.handleFocus} @blur=${this.handleBlur} accept=${_(this.accept)} ?multiple=${this.multiple}>${Y(
|
|
3233
2633
|
r,
|
|
3234
|
-
() => E`<span
|
|
3235
|
-
part="auto-grow-mirror"
|
|
3236
|
-
class="input__auto-grow-mirror"
|
|
3237
|
-
aria-hidden="true"
|
|
3238
|
-
></span>`
|
|
2634
|
+
() => E`<span part="auto-grow-mirror" class="input__auto-grow-mirror" aria-hidden="true"></span>`
|
|
3239
2635
|
)}
|
|
3240
|
-
${this.type === "file" && !this.buttonOnly ? E`<div
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
@click=${this.handleFileButtonClick}
|
|
3244
|
-
>
|
|
3245
|
-
<slot name="file-button">
|
|
3246
|
-
<cx-button
|
|
3247
|
-
part="file-button"
|
|
3248
|
-
variant=${_(this.variant)}
|
|
3249
|
-
size=${_(this.size)}
|
|
3250
|
-
?disabled=${this.disabled}
|
|
3251
|
-
>${this.fileButtonLabel}</cx-button
|
|
3252
|
-
>
|
|
3253
|
-
</slot>
|
|
3254
|
-
<span part="file-result">${u}</span>
|
|
3255
|
-
</div>` : ""}
|
|
3256
|
-
</span>
|
|
3257
|
-
${this.type === "file" && this.buttonOnly ? E` <div
|
|
3258
|
-
class="input__control input__control--file"
|
|
3259
|
-
part="file-control"
|
|
3260
|
-
@click=${this.handleFileButtonClick}
|
|
3261
|
-
>
|
|
3262
|
-
<slot name="file-button">
|
|
3263
|
-
<cx-button
|
|
3264
|
-
part="file-button"
|
|
3265
|
-
variant=${_(this.variant)}
|
|
3266
|
-
size=${_(this.size)}
|
|
3267
|
-
?disabled=${this.disabled}
|
|
3268
|
-
>${this.fileButtonLabel}</cx-button
|
|
3269
|
-
>
|
|
3270
|
-
</slot>
|
|
3271
|
-
</div>` : ""}
|
|
3272
|
-
${n ? E`
|
|
3273
|
-
<button
|
|
3274
|
-
part="clear-button"
|
|
3275
|
-
class="input__clear"
|
|
3276
|
-
type="button"
|
|
3277
|
-
aria-label=${this.localize.term("clearEntry")}
|
|
3278
|
-
@click=${this.handleClearClick}
|
|
3279
|
-
tabindex="-1"
|
|
3280
|
-
>
|
|
3281
|
-
<slot name="clear-icon">
|
|
3282
|
-
<cx-icon name="close"></cx-icon>
|
|
3283
|
-
</slot>
|
|
3284
|
-
</button>
|
|
3285
|
-
` : ""}
|
|
3286
|
-
${this.passwordToggle && !this.disabled ? E`
|
|
3287
|
-
<button
|
|
3288
|
-
part="password-toggle-button"
|
|
3289
|
-
class="input__password-toggle"
|
|
3290
|
-
type="button"
|
|
3291
|
-
aria-label=${this.localize.term(
|
|
2636
|
+
${this.type === "file" && !this.buttonOnly ? E`<div class="input__control input__control--file" part="file-control" @click=${this.handleFileButtonClick}><slot name="file-button"><cx-button part="file-button" variant=${_(this.variant)} size=${_(this.size)} ?disabled=${this.disabled}>${this.fileButtonLabel}</cx-button></slot><span part="file-result">${u}</span></div>` : ""}</span>${this.type === "file" && this.buttonOnly ? E`<div class="input__control input__control--file" part="file-control" @click=${this.handleFileButtonClick}><slot name="file-button"><cx-button part="file-button" variant=${_(this.variant)} size=${_(this.size)} ?disabled=${this.disabled}>${this.fileButtonLabel}</cx-button></slot></div>` : ""}
|
|
2637
|
+
${n ? E`<button part="clear-button" class="input__clear" type="button" aria-label=${this.localize.term("clearEntry")} @click=${this.handleClearClick} tabindex="-1"><slot name="clear-icon"><cx-icon name="close"></cx-icon></slot></button>` : ""}
|
|
2638
|
+
${this.passwordToggle && !this.disabled ? E`<button part="password-toggle-button" class="input__password-toggle" type="button" aria-label=${this.localize.term(
|
|
3292
2639
|
this.passwordVisible ? "hidePassword" : "showPassword"
|
|
3293
|
-
)}
|
|
3294
|
-
@click=${this.handlePasswordToggle}
|
|
3295
|
-
tabindex="-1"
|
|
3296
|
-
>
|
|
3297
|
-
${this.passwordVisible ? E`
|
|
3298
|
-
<slot name="show-password-icon">
|
|
3299
|
-
<cx-icon
|
|
3300
|
-
name="visibility_off"
|
|
3301
|
-
library="system"
|
|
3302
|
-
></cx-icon>
|
|
3303
|
-
</slot>
|
|
3304
|
-
` : E`
|
|
3305
|
-
<slot name="hide-password-icon">
|
|
3306
|
-
<cx-icon
|
|
3307
|
-
name="visibility"
|
|
3308
|
-
library="system"
|
|
3309
|
-
></cx-icon>
|
|
3310
|
-
</slot>
|
|
3311
|
-
`}
|
|
3312
|
-
</button>
|
|
3313
|
-
` : ""}
|
|
3314
|
-
|
|
3315
|
-
<span part="suffix" class="input__suffix">
|
|
3316
|
-
<slot name="suffix"></slot>
|
|
3317
|
-
</span>
|
|
3318
|
-
</div>
|
|
3319
|
-
${Y(this.showLength, () => E`
|
|
3320
|
-
<div part="character-count" class="input__character-count">
|
|
3321
|
-
${[
|
|
2640
|
+
)} @click=${this.handlePasswordToggle} tabindex="-1">${this.passwordVisible ? E`<slot name="show-password-icon"><cx-icon name="visibility_off" library="system"></cx-icon></slot>` : E`<slot name="hide-password-icon"><cx-icon name="visibility" library="system"></cx-icon></slot>`}</button>` : ""}<span part="suffix" class="input__suffix"><slot name="suffix"></slot></span></div>${Y(this.showLength, () => E`<div part="character-count" class="input__character-count">${[
|
|
3322
2641
|
this.minlength && `${this.minlength} /`,
|
|
3323
2642
|
this.value.length,
|
|
3324
2643
|
this.maxlength && `/ ${this.maxlength}`
|
|
3325
|
-
].filter(Boolean).join(" ")}
|
|
3326
|
-
</div>
|
|
3327
|
-
`)}
|
|
3328
|
-
</div>
|
|
3329
|
-
<div
|
|
3330
|
-
part="form-control-help-text"
|
|
3331
|
-
id="help-text"
|
|
3332
|
-
class="form-control__help-text"
|
|
3333
|
-
aria-hidden=${i ? "false" : "true"}
|
|
3334
|
-
>
|
|
3335
|
-
<slot name="help-text">${this.helpText}</slot>
|
|
3336
|
-
</div>
|
|
3337
|
-
</div>
|
|
3338
|
-
`;
|
|
2644
|
+
].filter(Boolean).join(" ")}</div>`)}</div><div part="form-control-help-text" id="help-text" class="form-control__help-text" aria-hidden=${i ? "false" : "true"}><slot name="help-text">${this.helpText}</slot></div></div>`;
|
|
3339
2645
|
}
|
|
3340
2646
|
};
|
|
3341
2647
|
H = /* @__PURE__ */ new WeakSet();
|