@cscfi/csc-ui 3.0.18 → 3.0.19

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.
Files changed (65) hide show
  1. package/dist/cjs/c-text-field-open.cjs.entry.js +152 -0
  2. package/dist/cjs/c-text-field-open.cjs.entry.js.map +1 -0
  3. package/dist/cjs/c-text-field-open.entry.cjs.js.map +1 -0
  4. package/dist/cjs/csc-ui.cjs.js +1 -1
  5. package/dist/cjs/index-BTBT6v3v.js +4 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +1 -0
  8. package/dist/collection/components/c-text-field-open/c-text-field-open.css +81 -0
  9. package/dist/collection/components/c-text-field-open/c-text-field-open.js +718 -0
  10. package/dist/collection/components/c-text-field-open/c-text-field-open.js.map +1 -0
  11. package/dist/components/c-text-field-open.d.ts +11 -0
  12. package/dist/components/c-text-field-open.js +204 -0
  13. package/dist/components/c-text-field-open.js.map +1 -0
  14. package/dist/components/index.d.ts +2 -0
  15. package/dist/components/index.js +1 -0
  16. package/dist/components/index.js.map +1 -1
  17. package/dist/csc-ui/c-text-field-open.entry.esm.js.map +1 -0
  18. package/dist/csc-ui/csc-ui.esm.js +1 -1
  19. package/dist/csc-ui/{p-781cde9c.entry.js → p-04f010cd.entry.js} +2 -2
  20. package/dist/csc-ui/{p-ad4cba6c.entry.js → p-13976903.entry.js} +2 -2
  21. package/dist/csc-ui/{p-74dfa0e1.entry.js → p-2acf252a.entry.js} +2 -2
  22. package/dist/csc-ui/p-9806cee5.entry.js +2 -0
  23. package/dist/csc-ui/p-9806cee5.entry.js.map +1 -0
  24. package/dist/csc-ui/{p-Cb-CImk5.js → p-RscoPQxP.js} +2 -2
  25. package/dist/csc-ui/{p-Cb-CImk5.js.map → p-RscoPQxP.js.map} +1 -1
  26. package/dist/csc-ui/{p-82038174.entry.js → p-a0129d80.entry.js} +2 -2
  27. package/dist/csc-ui/{p-516daf81.entry.js → p-b0e03fea.entry.js} +2 -2
  28. package/dist/csc-ui/p-cbafc9a2.entry.js +2 -0
  29. package/dist/csc-ui/{p-73c56177.entry.js.map → p-cbafc9a2.entry.js.map} +1 -1
  30. package/dist/csc-ui/p-e1cec030.entry.js +2 -0
  31. package/dist/csc-ui/{p-2b012d43.entry.js.map → p-e1cec030.entry.js.map} +1 -1
  32. package/dist/csc-ui/{p-3ab98b9a.entry.js → p-e48d90fa.entry.js} +2 -2
  33. package/dist/csc-ui/{p-0b56450b.entry.js → p-ea26b8b0.entry.js} +2 -2
  34. package/dist/csc-ui/{p-0e4d4890.entry.js → p-f62b6b95.entry.js} +2 -2
  35. package/dist/esm/c-accordion-item.entry.js +1 -1
  36. package/dist/esm/c-alert.entry.js +1 -1
  37. package/dist/esm/c-autocomplete_35.entry.js +1 -1
  38. package/dist/esm/c-data-table.entry.js +1 -1
  39. package/dist/esm/c-menu_2.entry.js +1 -1
  40. package/dist/esm/c-pagination.entry.js +1 -1
  41. package/dist/esm/c-swiper.entry.js +1 -1
  42. package/dist/esm/c-tabs.entry.js +1 -1
  43. package/dist/esm/c-tag.entry.js +1 -1
  44. package/dist/esm/c-text-field-open.entry.js +150 -0
  45. package/dist/esm/c-text-field-open.entry.js.map +1 -0
  46. package/dist/esm/c-toast.entry.js +1 -1
  47. package/dist/esm/csc-ui.js +1 -1
  48. package/dist/esm/index-gSzSMY-c.js +4 -0
  49. package/dist/esm/loader.js +1 -1
  50. package/dist/esm/{mdi-Cb-CImk5.js → mdi-RscoPQxP.js} +3 -3
  51. package/dist/esm/{mdi-Cb-CImk5.js.map → mdi-RscoPQxP.js.map} +1 -1
  52. package/dist/types/components/c-text-field-open/c-text-field-open.d.ts +52 -0
  53. package/dist/types/components.d.ts +270 -0
  54. package/package.json +1 -1
  55. package/vscode-data.json +117 -0
  56. package/dist/csc-ui/p-2b012d43.entry.js +0 -2
  57. package/dist/csc-ui/p-73c56177.entry.js +0 -2
  58. /package/dist/csc-ui/{p-781cde9c.entry.js.map → p-04f010cd.entry.js.map} +0 -0
  59. /package/dist/csc-ui/{p-ad4cba6c.entry.js.map → p-13976903.entry.js.map} +0 -0
  60. /package/dist/csc-ui/{p-74dfa0e1.entry.js.map → p-2acf252a.entry.js.map} +0 -0
  61. /package/dist/csc-ui/{p-82038174.entry.js.map → p-a0129d80.entry.js.map} +0 -0
  62. /package/dist/csc-ui/{p-516daf81.entry.js.map → p-b0e03fea.entry.js.map} +0 -0
  63. /package/dist/csc-ui/{p-3ab98b9a.entry.js.map → p-e48d90fa.entry.js.map} +0 -0
  64. /package/dist/csc-ui/{p-0b56450b.entry.js.map → p-ea26b8b0.entry.js.map} +0 -0
  65. /package/dist/csc-ui/{p-0e4d4890.entry.js.map → p-f62b6b95.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"c-text-field-open.js","sourceRoot":"","sources":["../../../../src/components/c-text-field-open/c-text-field-open.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,SAAS,EACT,OAAO,EACP,KAAK,EAEL,CAAC,EACD,IAAI,EACJ,IAAI,EACJ,KAAK,GACN,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAezD,MAAM,OAAO,cAAc;IAN3B;QAcoC,mBAAc,GAAG,KAAK,CAAC;QAMlB,wBAAmB,GAAG,EAAE,CAAC;QAKxD,gBAAW,GAAG,EAAE,CAAC;QAKjB,iBAAY,GAAG,EAAE,CAAC;QAKlB,aAAQ,GAAG,KAAK,CAAC;QAKjB,gBAAW,GAAG,KAAK,CAAC;QAKpB,SAAI,GAAG,EAAE,CAAC;QAWV,mBAAc,GAAG,KAAK,CAAC;QAUvB,eAAU,GAAG,KAAK,CAAC;QAKnB,QAAG,GAAW,IAAI,CAAC;QAKnB,QAAG,GAAW,IAAI,CAAC;QAenB,aAAQ,GAAG,KAAK,CAAC;QAKjB,aAAQ,GAAG,KAAK,CAAC;QAKjB,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from '@mdi/js';\n\n/**\n * Text field component without shadow dom\n *\n * @group Form\n * @slot pre - Content added before the input\n * @slot post - Content added after the input\n */\n@Component({\n tag: 'c-text-field-open',\n styleUrl: 'c-text-field-open.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class CTextFieldOpen {\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Auto focus the input\n * @name autofocus\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\n\n /**\n * HTML input autocapitalize\n * @name autocapitalize\n */\n @Prop({ attribute: 'autocapitalize' }) automaticCapitalize = '';\n\n /**\n * HTML input autocorrect\n */\n @Prop() autocorrect = '';\n\n /**\n * HTML input autocomplete\n */\n @Prop() autocomplete = '';\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Trim whitespace from the return value\n */\n @Prop() trimWhitespace = false;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Label on top of the input\n */\n @Prop() labelOnTop = false;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type = 'text';\n\n /**\n * Set the validity of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop({ mutable: true }) value: string;\n\n /**\n * Render input element outside shadow DOM for maximum compatibility\n */\n @Prop() renderOutsideShadow = false;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @Element() hiddenEl!: HTMLCTextFieldOpenElement;\n\n private _inputElement: HTMLInputElement;\n\n private _originalType = '';\n\n private _inputId: string;\n\n private static _uniqueId = 0;\n\n componentWillLoad() {\n CTextFieldOpen._uniqueId += 1;\n\n this._originalType = this.type;\n\n this._inputId = `${(\n this.hostId ||\n this.label ||\n this.placeholder ||\n ''\n ).replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextFieldOpen._uniqueId}`;\n\n this.internals.setFormValue(this.value);\n }\n\n get isActive() {\n return !!this.value || this.isFocused;\n }\n\n get passwordIcon() {\n return this.type === 'password' ? mdiEye : mdiEyeOff;\n }\n\n private _handleChange = (event) => {\n if (this.type === 'number' && !event.target.value && event.key === '-') {\n return;\n }\n\n this.value = this.trimWhitespace\n ? event.target.value.trim()\n : event.target.value;\n\n this.changeValue.emit(this.value);\n this.internals.setFormValue(this.value);\n };\n\n private _handleBlur = (event) => {\n if (this.trimWhitespace) {\n const trimmedValue = event.target.value.trim();\n\n event.target.value = trimmedValue;\n }\n };\n\n private _renderInputElement() {\n const props = {\n classes: {\n 'c-input__input': true,\n 'c-input__input--filled': !!this.value,\n },\n shared: {\n id: this._inputId,\n name: this.name,\n disabled: this.disabled,\n readonly: this.readonly,\n value: this.value,\n onInput: this._handleChange,\n onChange: this._handleChange,\n onBlur: this._handleBlur,\n },\n input: {\n type: this.type,\n min: this.min,\n max: this.max,\n step: this.step,\n ...(!!this.autocomplete && { autocomplete: this.autocomplete }),\n ...(!!this.automaticCapitalize && {\n autocapitalize: this.automaticCapitalize,\n }),\n ...(!!this.autocorrect && { autocorrect: this.autocorrect }),\n },\n textArea: {\n rows: this.rows,\n },\n };\n\n const textInput = (\n <input\n class={props.classes}\n {...props.input}\n {...props.shared}\n ref={(el) => (this._inputElement = el)}\n />\n );\n\n const textArea = (\n <textarea\n class={props.classes}\n {...props.shared}\n {...props.textArea}\n ></textarea>\n );\n\n return this.rows > 1 ? textArea : textInput;\n }\n\n private _isFirefox() {\n return !!navigator.userAgent.match(/firefox|fxios/i);\n }\n\n private _renderDateToggle() {\n if (this._originalType !== 'date' || this._isFirefox()) return;\n\n const classes = {\n 'c-input__date-toggle': true,\n 'c-input__date-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._toggleDatepicker.bind(this)}\n >\n <path d={mdiCalendar} />\n </svg>\n );\n }\n\n private _toggleDatepicker() {\n this._inputElement?.showPicker();\n }\n\n private _renderPasswordToggle() {\n if (this._originalType !== 'password') return;\n\n const classes = {\n 'c-input__password-toggle': true,\n 'c-input__password-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._togglePasswordVisibility}\n >\n <path d={this.passwordIcon} />\n </svg>\n );\n }\n\n private _togglePasswordVisibility = () => {\n if (this.disabled) return;\n\n this.type = this.type === 'password' ? 'text' : 'password';\n };\n\n render() {\n const inputElement = this._renderInputElement();\n const passwordToggle = this._renderPasswordToggle();\n const dateToggle = this._renderDateToggle();\n\n if (this.renderOutsideShadow) {\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n <slot name=\"input-slot\"></slot>\n\n {passwordToggle}\n\n {dateToggle}\n\n <slot name=\"post\"></slot>\n </c-input>\n\n <div slot=\"input-slot\">{inputElement}</div>\n </Host>\n );\n }\n\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n {inputElement}\n\n {passwordToggle}\n\n {dateToggle}\n\n <slot name=\"post\"></slot>\n </c-input>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface CTextFieldOpen extends Components.CTextFieldOpen, HTMLElement {}
4
+ export const CTextFieldOpen: {
5
+ prototype: CTextFieldOpen;
6
+ new (): CTextFieldOpen;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,204 @@
1
+ import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-Fv9YCUj3.js';
2
+ import { s as mdiEye, t as mdiEyeOff, u as mdiCalendar } from './p-Bd7jq7MS.js';
3
+ import { d as defineCustomElement$3 } from './p-Bz0xxOlq.js';
4
+ import { d as defineCustomElement$2 } from './p-BJVLvFq9.js';
5
+
6
+ const cTextFieldOpenCss = "html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:root,:host{--_c-text-field-active-color:var(--c-text-field-active-color, var(--c-primary-600));--_c-text-field-inactive-color:var(--c-text-field-inactive-color, var(--c-tertiary-600));--_c-text-field-background-color:var(--c-text-field-background-color, var(--c-transparent));--_c-text-field-text-color:var(--c-text-field-text-color, var(--c-text-body));--_c-text-field-placeholder-color:var(--c-text-field-placeholder-color, var(--c-tertiary-500));--_c-text-field-shadow-active-color:var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));--_c-text-field-shadow-background-color:var(--c-text-field-shadow-background-color, var(--c-white));--_c-text-field-shadow-text-color:var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));--_c-text-field-shadow-placeholder-color:var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));--_c-text-field-label-color:var(--c-text-field-label-color, var(--_c-text-field-text-color))}.c-input{--_c-input-active-color:var(--_c-text-field-active-color);--_c-input-inactive-color:var(--_c-text-field-inactive-color);--_c-input-background-color:var(--_c-text-field-background-color);--_c-input-text-color:var(--_c-text-field-text-color);--_c-input-label-color:var(--_c-text-field-label-color);--_c-input-placeholder-color:var(--_c-text-field-placeholder-color);--_c-input-shadow-active-color:var(--_c-text-field-shadow-active-color);--_c-input-shadow-background-color:var(--_c-text-field-shadow-background-color);--_c-input-shadow-text-color:var(--_c-text-field-shadow-text-color);--_c-input-shadow-placeholder-color:var(--_c-text-field-shadow-placeholder-color)}.c-input__password-toggle,.c-input__date-toggle{cursor:pointer;fill:currentColor;height:22px;width:22px}.c-input__password-toggle--disabled,.c-input__date-toggle--disabled{cursor:not-allowed;fill:var(--c-tertiary-500)}.c-input input[type=date]{opacity:0}.c-input input[type=date]::-webkit-calendar-picker-indicator,.c-input input[type=date]::-webkit-inner-spin-button{display:none;appearance:none}.c-input input[type=date]:focus,.c-input input[type=date].c-input__input--filled{opacity:1}";
7
+
8
+ const CTextFieldOpen$1 = proxyCustomElement(class CTextFieldOpen extends H {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.changeValue = createEvent(this, "changeValue", 3);
13
+ this.internals = this.attachInternals();
14
+ this.automaticFocus = false;
15
+ this.automaticCapitalize = '';
16
+ this.autocorrect = '';
17
+ this.autocomplete = '';
18
+ this.disabled = false;
19
+ this.hideDetails = false;
20
+ this.hint = '';
21
+ this.trimWhitespace = false;
22
+ this.labelOnTop = false;
23
+ this.max = null;
24
+ this.min = null;
25
+ this.readonly = false;
26
+ this.required = false;
27
+ this.rows = 1;
28
+ this.shadow = false;
29
+ this.step = null;
30
+ this.type = 'text';
31
+ this.valid = true;
32
+ this.validate = false;
33
+ this.validateOnBlur = false;
34
+ this.validation = 'Required field';
35
+ this.renderOutsideShadow = false;
36
+ this.isFocused = false;
37
+ this.labelWidth = 0;
38
+ this.preSlotWidth = 0;
39
+ this._originalType = '';
40
+ this._handleChange = (event) => {
41
+ if (this.type === 'number' && !event.target.value && event.key === '-') {
42
+ return;
43
+ }
44
+ this.value = this.trimWhitespace
45
+ ? event.target.value.trim()
46
+ : event.target.value;
47
+ this.changeValue.emit(this.value);
48
+ this.internals.setFormValue(this.value);
49
+ };
50
+ this._handleBlur = (event) => {
51
+ if (this.trimWhitespace) {
52
+ const trimmedValue = event.target.value.trim();
53
+ event.target.value = trimmedValue;
54
+ }
55
+ };
56
+ this._togglePasswordVisibility = () => {
57
+ if (this.disabled)
58
+ return;
59
+ this.type = this.type === 'password' ? 'text' : 'password';
60
+ };
61
+ }
62
+ componentWillLoad() {
63
+ CTextFieldOpen._uniqueId += 1;
64
+ this._originalType = this.type;
65
+ this._inputId = `${(this.hostId ||
66
+ this.label ||
67
+ this.placeholder ||
68
+ '').replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextFieldOpen._uniqueId}`;
69
+ this.internals.setFormValue(this.value);
70
+ }
71
+ get isActive() {
72
+ return !!this.value || this.isFocused;
73
+ }
74
+ get passwordIcon() {
75
+ return this.type === 'password' ? mdiEye : mdiEyeOff;
76
+ }
77
+ _renderInputElement() {
78
+ const props = {
79
+ classes: {
80
+ 'c-input__input': true,
81
+ 'c-input__input--filled': !!this.value,
82
+ },
83
+ shared: {
84
+ id: this._inputId,
85
+ name: this.name,
86
+ disabled: this.disabled,
87
+ readonly: this.readonly,
88
+ value: this.value,
89
+ onInput: this._handleChange,
90
+ onChange: this._handleChange,
91
+ onBlur: this._handleBlur,
92
+ },
93
+ input: Object.assign(Object.assign(Object.assign({ type: this.type, min: this.min, max: this.max, step: this.step }, (!!this.autocomplete && { autocomplete: this.autocomplete })), (!!this.automaticCapitalize && {
94
+ autocapitalize: this.automaticCapitalize,
95
+ })), (!!this.autocorrect && { autocorrect: this.autocorrect })),
96
+ textArea: {
97
+ rows: this.rows,
98
+ },
99
+ };
100
+ const textInput = (h("input", Object.assign({ class: props.classes }, props.input, props.shared, { ref: (el) => (this._inputElement = el) })));
101
+ const textArea = (h("textarea", Object.assign({ class: props.classes }, props.shared, props.textArea)));
102
+ return this.rows > 1 ? textArea : textInput;
103
+ }
104
+ _isFirefox() {
105
+ return !!navigator.userAgent.match(/firefox|fxios/i);
106
+ }
107
+ _renderDateToggle() {
108
+ if (this._originalType !== 'date' || this._isFirefox())
109
+ return;
110
+ const classes = {
111
+ 'c-input__date-toggle': true,
112
+ 'c-input__date-toggle--disabled': this.disabled,
113
+ };
114
+ return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._toggleDatepicker.bind(this) }, h("path", { d: mdiCalendar })));
115
+ }
116
+ _toggleDatepicker() {
117
+ var _a;
118
+ (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.showPicker();
119
+ }
120
+ _renderPasswordToggle() {
121
+ if (this._originalType !== 'password')
122
+ return;
123
+ const classes = {
124
+ 'c-input__password-toggle': true,
125
+ 'c-input__password-toggle--disabled': this.disabled,
126
+ };
127
+ return (h("svg", { class: classes, viewBox: "0 0 24 24", onClick: this._togglePasswordVisibility }, h("path", { d: this.passwordIcon })));
128
+ }
129
+ render() {
130
+ const inputElement = this._renderInputElement();
131
+ const passwordToggle = this._renderPasswordToggle();
132
+ const dateToggle = this._renderDateToggle();
133
+ if (this.renderOutsideShadow) {
134
+ return (h(Host, null, h("c-input", { autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { name: "pre", slot: "pre" }), h("slot", { name: "input-slot" }), passwordToggle, dateToggle, h("slot", { name: "post" })), h("div", { slot: "input-slot" }, inputElement)));
135
+ }
136
+ return (h(Host, null, h("c-input", { autofocus: this.automaticFocus, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, "label-on-top": this.labelOnTop, name: this.name, placeholder: this.placeholder, readonly: this.readonly, required: this.required, rows: this.rows, shadow: this.shadow, type: this.type, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value }, h("slot", { name: "pre", slot: "pre" }), inputElement, passwordToggle, dateToggle, h("slot", { name: "post" }))));
137
+ }
138
+ static get formAssociated() { return true; }
139
+ get hiddenEl() { return this; }
140
+ static get style() { return cTextFieldOpenCss; }
141
+ }, [68, "c-text-field-open", {
142
+ "automaticFocus": [4, "autofocus"],
143
+ "automaticCapitalize": [1, "autocapitalize"],
144
+ "autocorrect": [1],
145
+ "autocomplete": [1],
146
+ "disabled": [4],
147
+ "hideDetails": [4, "hide-details"],
148
+ "hint": [1],
149
+ "hostId": [1, "id"],
150
+ "trimWhitespace": [4, "trim-whitespace"],
151
+ "label": [1],
152
+ "labelOnTop": [4, "label-on-top"],
153
+ "max": [2],
154
+ "min": [2],
155
+ "name": [1],
156
+ "placeholder": [1],
157
+ "readonly": [4],
158
+ "required": [4],
159
+ "rows": [2],
160
+ "shadow": [4],
161
+ "step": [2],
162
+ "type": [1],
163
+ "valid": [4],
164
+ "validate": [4],
165
+ "validateOnBlur": [4, "validate-on-blur"],
166
+ "validation": [1],
167
+ "value": [1025],
168
+ "renderOutsideShadow": [4, "render-outside-shadow"],
169
+ "isFocused": [32],
170
+ "labelWidth": [32],
171
+ "preSlotWidth": [32]
172
+ }]);
173
+ CTextFieldOpen$1._uniqueId = 0;
174
+ function defineCustomElement$1() {
175
+ if (typeof customElements === "undefined") {
176
+ return;
177
+ }
178
+ const components = ["c-text-field-open", "c-input", "c-message"];
179
+ components.forEach(tagName => { switch (tagName) {
180
+ case "c-text-field-open":
181
+ if (!customElements.get(tagName)) {
182
+ customElements.define(tagName, CTextFieldOpen$1);
183
+ }
184
+ break;
185
+ case "c-input":
186
+ if (!customElements.get(tagName)) {
187
+ defineCustomElement$3();
188
+ }
189
+ break;
190
+ case "c-message":
191
+ if (!customElements.get(tagName)) {
192
+ defineCustomElement$2();
193
+ }
194
+ break;
195
+ } });
196
+ }
197
+
198
+ const CTextFieldOpen = CTextFieldOpen$1;
199
+ const defineCustomElement = defineCustomElement$1;
200
+
201
+ export { CTextFieldOpen, defineCustomElement };
202
+ //# sourceMappingURL=c-text-field-open.js.map
203
+
204
+ //# sourceMappingURL=c-text-field-open.js.map
@@ -0,0 +1 @@
1
+ {"file":"c-text-field-open.js","mappings":";;;;;AAAA,MAAM,iBAAiB,GAAG,8xEAA8xE;;MC0B3yEA,gBAAc,GAAAC,kBAAA,CAAA,MAAA,cAAA,SAAAC,CAAA,CAAA;AAN3B,IAAA,WAAA,GAAA;;;;;AAcoC,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AAMjB,QAAA,IAAmB,CAAA,mBAAA,GAAG,EAAE;AAKvD,QAAA,IAAW,CAAA,WAAA,GAAG,EAAE;AAKhB,QAAA,IAAY,CAAA,YAAA,GAAG,EAAE;AAKjB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAKhB,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAKnB,QAAA,IAAI,CAAA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AAI,EAAC,MAAM,GAAQ,CACjB,CACL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtOIF,gBAAS,CAAA,SAAA,GAAG,CAAH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CTextFieldOpen","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/c-text-field-open/c-text-field-open.scss?tag=c-text-field-open","src/components/c-text-field-open/c-text-field-open.tsx"],"sourcesContent":[":root,\n:host {\n /**\n * @prop --c-text-field-active-color: Active text field color\n * @prop --c-text-field-inactive-color: Inactive text field color\n * @prop --c-text-field-background-color: Inactive text field background color\n * @prop --c-text-field-text-color: Text field text color\n * @prop --c-text-field-placeholder-color:Text field placeholder color\n * @prop --c-text-field-shadow-active-color: Shadow text field active color\n * @prop --c-text-field-shadow-background-color: Shadow text field background color\n * @prop --c-text-field-shadow-text-color: Shadow text field text color\n * @prop --c-text-field-shadow-placeholder-color: Shadow text field placeholder color\n * @prop --c-text-field-label-color: Text field label color (works only with `label-on-top`)\n */\n --_c-text-field-active-color: var(--c-text-field-active-color, var(--c-primary-600));\n --_c-text-field-inactive-color: var(--c-text-field-inactive-color, var(--c-tertiary-600));\n --_c-text-field-background-color: var(--c-text-field-background-color, var(--c-transparent));\n --_c-text-field-text-color: var(--c-text-field-text-color, var(--c-text-body));\n --_c-text-field-placeholder-color: var(--c-text-field-placeholder-color, var(--c-tertiary-500));\n --_c-text-field-shadow-active-color: var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));\n --_c-text-field-shadow-background-color: var(--c-text-field-shadow-background-color, var(--c-white));\n --_c-text-field-shadow-text-color: var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));\n --_c-text-field-shadow-placeholder-color: var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));\n --_c-text-field-label-color: var(--c-text-field-label-color, var(--_c-text-field-text-color));\n}\n\n.c-input {\n --_c-input-active-color: var(--_c-text-field-active-color);\n --_c-input-inactive-color: var(--_c-text-field-inactive-color);\n --_c-input-background-color: var(--_c-text-field-background-color);\n --_c-input-text-color: var(--_c-text-field-text-color);\n --_c-input-label-color: var(--_c-text-field-label-color);\n --_c-input-placeholder-color: var(--_c-text-field-placeholder-color);\n --_c-input-shadow-active-color: var(--_c-text-field-shadow-active-color);\n --_c-input-shadow-background-color: var(--_c-text-field-shadow-background-color);\n --_c-input-shadow-text-color: var(--_c-text-field-shadow-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-text-field-shadow-placeholder-color);\n\n &__password-toggle,\n &__date-toggle {\n cursor: pointer;\n fill: currentColor;\n height: 22px;\n width: 22px;\n\n &--disabled {\n cursor: not-allowed;\n fill: var(--c-tertiary-500);\n }\n }\n\n input {\n &[type=\"date\"] {\n opacity: 0;\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-inner-spin-button {\n display: none;\n appearance: none;\n }\n\n &:focus,\n &.c-input__input--filled {\n opacity: 1;\n }\n }\n }\n}\n","import {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { mdiCalendar, mdiEye, mdiEyeOff } from '@mdi/js';\n\n/**\n * Text field component without shadow dom\n *\n * @group Form\n * @slot pre - Content added before the input\n * @slot post - Content added after the input\n */\n@Component({\n tag: 'c-text-field-open',\n styleUrl: 'c-text-field-open.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class CTextFieldOpen {\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Auto focus the input\n * @name autofocus\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\n\n /**\n * HTML input autocapitalize\n * @name autocapitalize\n */\n @Prop({ attribute: 'autocapitalize' }) automaticCapitalize = '';\n\n /**\n * HTML input autocorrect\n */\n @Prop() autocorrect = '';\n\n /**\n * HTML input autocomplete\n */\n @Prop() autocomplete = '';\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Trim whitespace from the return value\n */\n @Prop() trimWhitespace = false;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Label on top of the input\n */\n @Prop() labelOnTop = false;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type = 'text';\n\n /**\n * Set the validity of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop({ mutable: true }) value: string;\n\n /**\n * Render input element outside shadow DOM for maximum compatibility\n */\n @Prop() renderOutsideShadow = false;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @Element() hiddenEl!: HTMLCTextFieldOpenElement;\n\n private _inputElement: HTMLInputElement;\n\n private _originalType = '';\n\n private _inputId: string;\n\n private static _uniqueId = 0;\n\n componentWillLoad() {\n CTextFieldOpen._uniqueId += 1;\n\n this._originalType = this.type;\n\n this._inputId = `${(\n this.hostId ||\n this.label ||\n this.placeholder ||\n ''\n ).replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextFieldOpen._uniqueId}`;\n\n this.internals.setFormValue(this.value);\n }\n\n get isActive() {\n return !!this.value || this.isFocused;\n }\n\n get passwordIcon() {\n return this.type === 'password' ? mdiEye : mdiEyeOff;\n }\n\n private _handleChange = (event) => {\n if (this.type === 'number' && !event.target.value && event.key === '-') {\n return;\n }\n\n this.value = this.trimWhitespace\n ? event.target.value.trim()\n : event.target.value;\n\n this.changeValue.emit(this.value);\n this.internals.setFormValue(this.value);\n };\n\n private _handleBlur = (event) => {\n if (this.trimWhitespace) {\n const trimmedValue = event.target.value.trim();\n\n event.target.value = trimmedValue;\n }\n };\n\n private _renderInputElement() {\n const props = {\n classes: {\n 'c-input__input': true,\n 'c-input__input--filled': !!this.value,\n },\n shared: {\n id: this._inputId,\n name: this.name,\n disabled: this.disabled,\n readonly: this.readonly,\n value: this.value,\n onInput: this._handleChange,\n onChange: this._handleChange,\n onBlur: this._handleBlur,\n },\n input: {\n type: this.type,\n min: this.min,\n max: this.max,\n step: this.step,\n ...(!!this.autocomplete && { autocomplete: this.autocomplete }),\n ...(!!this.automaticCapitalize && {\n autocapitalize: this.automaticCapitalize,\n }),\n ...(!!this.autocorrect && { autocorrect: this.autocorrect }),\n },\n textArea: {\n rows: this.rows,\n },\n };\n\n const textInput = (\n <input\n class={props.classes}\n {...props.input}\n {...props.shared}\n ref={(el) => (this._inputElement = el)}\n />\n );\n\n const textArea = (\n <textarea\n class={props.classes}\n {...props.shared}\n {...props.textArea}\n ></textarea>\n );\n\n return this.rows > 1 ? textArea : textInput;\n }\n\n private _isFirefox() {\n return !!navigator.userAgent.match(/firefox|fxios/i);\n }\n\n private _renderDateToggle() {\n if (this._originalType !== 'date' || this._isFirefox()) return;\n\n const classes = {\n 'c-input__date-toggle': true,\n 'c-input__date-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._toggleDatepicker.bind(this)}\n >\n <path d={mdiCalendar} />\n </svg>\n );\n }\n\n private _toggleDatepicker() {\n this._inputElement?.showPicker();\n }\n\n private _renderPasswordToggle() {\n if (this._originalType !== 'password') return;\n\n const classes = {\n 'c-input__password-toggle': true,\n 'c-input__password-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._togglePasswordVisibility}\n >\n <path d={this.passwordIcon} />\n </svg>\n );\n }\n\n private _togglePasswordVisibility = () => {\n if (this.disabled) return;\n\n this.type = this.type === 'password' ? 'text' : 'password';\n };\n\n render() {\n const inputElement = this._renderInputElement();\n const passwordToggle = this._renderPasswordToggle();\n const dateToggle = this._renderDateToggle();\n\n if (this.renderOutsideShadow) {\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n <slot name=\"input-slot\"></slot>\n\n {passwordToggle}\n\n {dateToggle}\n\n <slot name=\"post\"></slot>\n </c-input>\n\n <div slot=\"input-slot\">{inputElement}</div>\n </Host>\n );\n }\n\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n {inputElement}\n\n {passwordToggle}\n\n {dateToggle}\n\n <slot name=\"post\"></slot>\n </c-input>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -135,6 +135,8 @@ export { CTags as CTags } from '../types/components/c-tags/c-tags';
135
135
  export { defineCustomElement as defineCustomElementCTags } from './c-tags';
136
136
  export { CTextField as CTextField } from '../types/components/c-text-field/c-text-field';
137
137
  export { defineCustomElement as defineCustomElementCTextField } from './c-text-field';
138
+ export { CTextFieldOpen as CTextFieldOpen } from '../types/components/c-text-field-open/c-text-field-open';
139
+ export { defineCustomElement as defineCustomElementCTextFieldOpen } from './c-text-field-open';
138
140
  export { CToast as CToast } from '../types/components/c-toast/c-toast';
139
141
  export { defineCustomElement as defineCustomElementCToast } from './c-toast';
140
142
  export { CToasts as CToasts } from '../types/components/c-toasts/c-toasts';
@@ -68,6 +68,7 @@ export { CTabs, defineCustomElement as defineCustomElementCTabs } from './c-tabs
68
68
  export { CTag, defineCustomElement as defineCustomElementCTag } from './c-tag.js';
69
69
  export { CTags, defineCustomElement as defineCustomElementCTags } from './c-tags.js';
70
70
  export { CTextField, defineCustomElement as defineCustomElementCTextField } from './c-text-field.js';
71
+ export { CTextFieldOpen, defineCustomElement as defineCustomElementCTextFieldOpen } from './c-text-field-open.js';
71
72
  export { CToast, defineCustomElement as defineCustomElementCToast } from './c-toast.js';
72
73
  export { CToolbar, defineCustomElement as defineCustomElementCToolbar } from './c-toolbar.js';
73
74
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
1
+ {"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"c-text-field-open.entry.esm.js","sources":["src/components/c-text-field-open/c-text-field-open.scss?tag=c-text-field-open","src/components/c-text-field-open/c-text-field-open.tsx"],"sourcesContent":[":root,\n:host {\n /**\n * @prop --c-text-field-active-color: Active text field color\n * @prop --c-text-field-inactive-color: Inactive text field color\n * @prop --c-text-field-background-color: Inactive text field background color\n * @prop --c-text-field-text-color: Text field text color\n * @prop --c-text-field-placeholder-color:Text field placeholder color\n * @prop --c-text-field-shadow-active-color: Shadow text field active color\n * @prop --c-text-field-shadow-background-color: Shadow text field background color\n * @prop --c-text-field-shadow-text-color: Shadow text field text color\n * @prop --c-text-field-shadow-placeholder-color: Shadow text field placeholder color\n * @prop --c-text-field-label-color: Text field label color (works only with `label-on-top`)\n */\n --_c-text-field-active-color: var(--c-text-field-active-color, var(--c-primary-600));\n --_c-text-field-inactive-color: var(--c-text-field-inactive-color, var(--c-tertiary-600));\n --_c-text-field-background-color: var(--c-text-field-background-color, var(--c-transparent));\n --_c-text-field-text-color: var(--c-text-field-text-color, var(--c-text-body));\n --_c-text-field-placeholder-color: var(--c-text-field-placeholder-color, var(--c-tertiary-500));\n --_c-text-field-shadow-active-color: var(--c-text-field-shadow-active-color, var(--_c-text-field-active-color));\n --_c-text-field-shadow-background-color: var(--c-text-field-shadow-background-color, var(--c-white));\n --_c-text-field-shadow-text-color: var(--c-text-field-shadow-text-color, var(--_c-text-field-text-color));\n --_c-text-field-shadow-placeholder-color: var(--c-text-field-shadow-placeholder-color, var(--_c-text-field-placeholder-color));\n --_c-text-field-label-color: var(--c-text-field-label-color, var(--_c-text-field-text-color));\n}\n\n.c-input {\n --_c-input-active-color: var(--_c-text-field-active-color);\n --_c-input-inactive-color: var(--_c-text-field-inactive-color);\n --_c-input-background-color: var(--_c-text-field-background-color);\n --_c-input-text-color: var(--_c-text-field-text-color);\n --_c-input-label-color: var(--_c-text-field-label-color);\n --_c-input-placeholder-color: var(--_c-text-field-placeholder-color);\n --_c-input-shadow-active-color: var(--_c-text-field-shadow-active-color);\n --_c-input-shadow-background-color: var(--_c-text-field-shadow-background-color);\n --_c-input-shadow-text-color: var(--_c-text-field-shadow-text-color);\n --_c-input-shadow-placeholder-color: var(--_c-text-field-shadow-placeholder-color);\n\n &__password-toggle,\n &__date-toggle {\n cursor: pointer;\n fill: currentColor;\n height: 22px;\n width: 22px;\n\n &--disabled {\n cursor: not-allowed;\n fill: var(--c-tertiary-500);\n }\n }\n\n input {\n &[type=\"date\"] {\n opacity: 0;\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-inner-spin-button {\n display: none;\n appearance: none;\n }\n\n &:focus,\n &.c-input__input--filled {\n opacity: 1;\n }\n }\n }\n}\n","import {\n AttachInternals,\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\nimport { mdiCalendar, mdiEye, mdiEyeOff } from '@mdi/js';\n\n/**\n * Text field component without shadow dom\n *\n * @group Form\n * @slot pre - Content added before the input\n * @slot post - Content added after the input\n */\n@Component({\n tag: 'c-text-field-open',\n styleUrl: 'c-text-field-open.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class CTextFieldOpen {\n // eslint-disable-next-line\n @AttachInternals() internals: ElementInternals;\n\n /**\n * Auto focus the input\n * @name autofocus\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\n\n /**\n * HTML input autocapitalize\n * @name autocapitalize\n */\n @Prop({ attribute: 'autocapitalize' }) automaticCapitalize = '';\n\n /**\n * HTML input autocorrect\n */\n @Prop() autocorrect = '';\n\n /**\n * HTML input autocomplete\n */\n @Prop() autocomplete = '';\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Hide the hint and error messages\n */\n @Prop() hideDetails = false;\n\n /**\n * Hint text for the input\n */\n @Prop() hint = '';\n\n /**\n * Id of the input\n * @name id\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Trim whitespace from the return value\n */\n @Prop() trimWhitespace = false;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\n\n /**\n * Label on top of the input\n */\n @Prop() labelOnTop = false;\n\n /**\n * Maximum value on a numeric input\n */\n @Prop() max: number = null;\n\n /**\n * Minimum value on a numeric input\n */\n @Prop() min: number = null;\n\n /**\n * Name of the input\n */\n @Prop() name: string;\n\n /**\n * Placeholder of the input\n */\n @Prop() placeholder: string;\n\n /**\n * Mark as readonly\n */\n @Prop() readonly = false;\n\n /**\n * Set the input as required\n */\n @Prop() required = false;\n\n /**\n * Rows on the input\n */\n @Prop() rows = 1;\n\n /**\n * Shadow variant of the input\n */\n @Prop() shadow = false;\n\n /**\n * Step size on a numeric input\n */\n @Prop() step: number = null;\n\n /**\n * Type of the input\n */\n @Prop() type = 'text';\n\n /**\n * Set the validity of the input\n */\n @Prop() valid = true;\n\n /**\n * Manual validation\n */\n @Prop() validate = false;\n\n /**\n * Validate the input on blur\n */\n @Prop() validateOnBlur = false;\n\n /**\n * Custom validation message\n */\n @Prop() validation = 'Required field';\n\n /**\n * Value of the input\n */\n @Prop({ mutable: true }) value: string;\n\n /**\n * Render input element outside shadow DOM for maximum compatibility\n */\n @Prop() renderOutsideShadow = false;\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @Element() hiddenEl!: HTMLCTextFieldOpenElement;\n\n private _inputElement: HTMLInputElement;\n\n private _originalType = '';\n\n private _inputId: string;\n\n private static _uniqueId = 0;\n\n componentWillLoad() {\n CTextFieldOpen._uniqueId += 1;\n\n this._originalType = this.type;\n\n this._inputId = `${(\n this.hostId ||\n this.label ||\n this.placeholder ||\n ''\n ).replace(/[^a-zA-Z0-9-_]/g, '')}_${CTextFieldOpen._uniqueId}`;\n\n this.internals.setFormValue(this.value);\n }\n\n get isActive() {\n return !!this.value || this.isFocused;\n }\n\n get passwordIcon() {\n return this.type === 'password' ? mdiEye : mdiEyeOff;\n }\n\n private _handleChange = (event) => {\n if (this.type === 'number' && !event.target.value && event.key === '-') {\n return;\n }\n\n this.value = this.trimWhitespace\n ? event.target.value.trim()\n : event.target.value;\n\n this.changeValue.emit(this.value);\n this.internals.setFormValue(this.value);\n };\n\n private _handleBlur = (event) => {\n if (this.trimWhitespace) {\n const trimmedValue = event.target.value.trim();\n\n event.target.value = trimmedValue;\n }\n };\n\n private _renderInputElement() {\n const props = {\n classes: {\n 'c-input__input': true,\n 'c-input__input--filled': !!this.value,\n },\n shared: {\n id: this._inputId,\n name: this.name,\n disabled: this.disabled,\n readonly: this.readonly,\n value: this.value,\n onInput: this._handleChange,\n onChange: this._handleChange,\n onBlur: this._handleBlur,\n },\n input: {\n type: this.type,\n min: this.min,\n max: this.max,\n step: this.step,\n ...(!!this.autocomplete && { autocomplete: this.autocomplete }),\n ...(!!this.automaticCapitalize && {\n autocapitalize: this.automaticCapitalize,\n }),\n ...(!!this.autocorrect && { autocorrect: this.autocorrect }),\n },\n textArea: {\n rows: this.rows,\n },\n };\n\n const textInput = (\n <input\n class={props.classes}\n {...props.input}\n {...props.shared}\n ref={(el) => (this._inputElement = el)}\n />\n );\n\n const textArea = (\n <textarea\n class={props.classes}\n {...props.shared}\n {...props.textArea}\n ></textarea>\n );\n\n return this.rows > 1 ? textArea : textInput;\n }\n\n private _isFirefox() {\n return !!navigator.userAgent.match(/firefox|fxios/i);\n }\n\n private _renderDateToggle() {\n if (this._originalType !== 'date' || this._isFirefox()) return;\n\n const classes = {\n 'c-input__date-toggle': true,\n 'c-input__date-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._toggleDatepicker.bind(this)}\n >\n <path d={mdiCalendar} />\n </svg>\n );\n }\n\n private _toggleDatepicker() {\n this._inputElement?.showPicker();\n }\n\n private _renderPasswordToggle() {\n if (this._originalType !== 'password') return;\n\n const classes = {\n 'c-input__password-toggle': true,\n 'c-input__password-toggle--disabled': this.disabled,\n };\n\n return (\n <svg\n class={classes}\n viewBox=\"0 0 24 24\"\n onClick={this._togglePasswordVisibility}\n >\n <path d={this.passwordIcon} />\n </svg>\n );\n }\n\n private _togglePasswordVisibility = () => {\n if (this.disabled) return;\n\n this.type = this.type === 'password' ? 'text' : 'password';\n };\n\n render() {\n const inputElement = this._renderInputElement();\n const passwordToggle = this._renderPasswordToggle();\n const dateToggle = this._renderDateToggle();\n\n if (this.renderOutsideShadow) {\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n <slot name=\"input-slot\"></slot>\n\n {passwordToggle}\n\n {dateToggle}\n\n <slot name=\"post\"></slot>\n </c-input>\n\n <div slot=\"input-slot\">{inputElement}</div>\n </Host>\n );\n }\n\n return (\n <Host>\n <c-input\n autofocus={this.automaticFocus}\n disabled={this.disabled}\n hide-details={this.hideDetails}\n hint={this.hint}\n id={this.hostId}\n input-id={this._inputId}\n label={this.label}\n label-on-top={this.labelOnTop}\n name={this.name}\n placeholder={this.placeholder}\n readonly={this.readonly}\n required={this.required}\n rows={this.rows}\n shadow={this.shadow}\n type={this.type}\n valid={this.valid}\n validate={this.validate}\n validate-on-blur={this.validateOnBlur}\n validation={this.validation}\n value={this.value}\n >\n <slot name=\"pre\" slot=\"pre\"></slot>\n\n {inputElement}\n\n {passwordToggle}\n\n {dateToggle}\n\n <slot name=\"post\"></slot>\n </c-input>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;AAAA,MAAM,iBAAiB,GAAG,8xEAA8xE;;MC0B3yE,cAAc,G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,EAAE,IAAI,CAAC,KAAK,EACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACL,kBAAA,EAAA,IAAI,CAAC,cAAc,EACrC,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAA,EAEjB,CAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,KAAK,EAAQ,CAAA,EAElC,YAAY,EAEZ,cAAc,EAEd,UAAU,EAEX,CAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,MAAM,GAAQ,CACjB,CACL;;;;;AAtOI,cAAS,CAAA,SAAA,GAAG,CAAH;;;;;"}
@@ -1,2 +1,2 @@
1
- import{p as e,b as a}from"./p-gSzSMY-c.js";export{s as setNonce}from"./p-gSzSMY-c.js";import{g as t}from"./p-DQuL1Twl.js";var i=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};i().then((async e=>{await t();return a(JSON.parse('[["p-3ab98b9a",[[1,"c-data-table",{"data":[16],"externalData":[4,"external-data"],"headers":[16],"hideFooter":[4,"hide-footer"],"footerOptions":[16],"loading":[4],"loadingText":[1,"loading-text"],"noDataText":[1,"no-data-text"],"pagination":[1040],"selectable":[4],"singleSelection":[4,"single-selection"],"selectionProperty":[1,"selection-property"],"singleExpansion":[4,"single-expansion"],"sortBy":[1032,"sort-by"],"sortDirection":[1025,"sort-direction"],"stickyHeader":[4,"sticky-header"],"horizontalScrolling":[4,"horizontal-scrolling"],"_activeRows":[32],"_data":[32],"_isIndeterminate":[32],"_isPaginationSimple":[32],"_selections":[32],"hasOverflow":[32],"hiddenHeaders":[32],"initiallyHiddenHeaders":[32],"forceRender":[32],"breakpoints":[32],"markedFooterWidth":[32],"parentWidth":[32],"firstCellHidden":[32],"lastCellHidden":[32],"clearSelections":[64],"getData":[64]},null,{"hiddenHeaders":["onHiddenHeaderChange"],"data":["onDataChange"],"headers":["onHeaderChange"],"singleSelection":["onSingleSelectionChange"],"loading":["onLoadingChange"]}]]],["p-ad4cba6c",[[1,"c-tabs",{"value":[1032],"borderless":[4],"disableAnimation":[4,"disable-animation"],"justify":[1],"mobileBreakpoint":[2,"mobile-breakpoint"],"vertical":[4],"isOverflowing":[32],"isMobile":[32],"scrollOffset":[32]},[[1,"tabFocus","tabFocusHandler"],[1,"tabChange","tabChangeHandler"],[2,"keydown","handleKeyDown"],[2,"keyup","handleKeyUp"]],{"justify":["onJustificationChange"],"value":["onExternalValueChange"],"scrollOffset":["onScrollOffsetChange"]}]]],["p-781cde9c",[[1,"c-tag",{"active":[4],"block":[4],"fit":[4],"flat":[4],"closeable":[4],"badge":[8],"size":[1]}]]],["p-74dfa0e1",[[4,"c-swiper",{"value":[1544],"elementId":[1,"id"],"isBeginning":[32],"isEnd":[32],"statusText":[32]},[[0,"changeValue","onTabClick"],[2,"keyup","handleKeyUp"]]]]],["p-fd75e786",[[1,"c-toasts",{"absolute":[4],"horizontal":[1],"vertical":[1],"messages":[32],"addToast":[64],"removeToast":[64]}]]],["p-516daf81",[[1,"c-accordion-item",{"collapsable":[4],"heading":[1],"value":[8],"expanded":[4],"outlined":[4],"hasCustomHeader":[32],"hasIcon":[32]},[[2,"keydown","handleKeyDown"],[0,"changeValue","stop"]]]]],["p-aec6b36e",[[1,"c-list-item",{"active":[4],"disabled":[4],"disabledByParent":[4,"disabled-by-parent"],"hoverable":[4],"ripple":[4],"href":[1],"target":[1]},null,{"active":["onActiveChange"]}]]],["p-732e7114",[[1,"c-login-card-actions",{"align":[1],"justify":[1]}]]],["p-7f778e0a",[[1,"c-swiper-tab",{"disabled":[4],"active":[4],"label":[1],"hostId":[1,"id"],"setsize":[2],"position":[2],"value":[8]},[[1,"click","onTabClick"]]]]],["p-ce764150",[[1,"c-tab",{"active":[4],"disabled":[4],"hostId":[1,"id"],"position":[2],"setsize":[2],"value":[8]},[[1,"focus","onTabFocus"],[1,"keydown","handleKeydown"]]]]],["p-4620a4d8",[[1,"c-accordion",{"value":[1032],"mandatory":[4],"multiple":[4],"outlined":[4]},[[1,"itemChange","onAccordionItemChange"]],{"value":["watchPropHandler"]}]]],["p-2b012d43",[[1,"c-alert",{"type":[1]}]]],["p-1963c292",[[1,"c-link",{"href":[1],"underline":[4],"target":[1],"weight":[1]}]]],["p-cf835443",[[0,"c-list",{"disabled":[4],"bordered":[4]},null,{"disabled":["onDisabledChange"]}]]],["p-0bf2ca66",[[1,"c-list-item-title",{"active":[4]}]]],["p-5b10d5e5",[[1,"c-login-button",{"href":[1],"src":[1],"alt":[1]}]]],["p-9fff794f",[[1,"c-login-buttons"]]],["p-f23b3ee3",[[4,"c-login-card",{"backgroundPosition":[1,"background-position"],"mobileBreakpoint":[2,"mobile-breakpoint"],"overlay":[4],"overlayBlendMode":[1,"overlay-blend-mode"],"src":[1],"path":[32],"imageHeight":[32]}]]],["p-c74c234c",[[1,"c-login-card-content"]]],["p-39f34048",[[1,"c-login-card-title"]]],["p-7f84c51a",[[1,"c-modal",{"value":[4],"dismissable":[4],"width":[8],"zIndex":[2,"z-index"],"disableBackdropBlur":[4,"disable-backdrop-blur"],"innerValue":[32],"animateModal":[32],"standaloneMode":[32]},null,{"value":["onValueChange"]}]]],["p-41b53c95",[[1,"c-option-value"]]],["p-8707c1c5",[[1,"c-progress-bar",{"value":[2],"hideDetails":[4,"hide-details"],"singleLine":[4,"single-line"],"label":[1],"indeterminate":[4]}]]],["p-a27a5f80",[[1,"c-row",{"gap":[2],"nowrap":[4],"align":[1],"justify":[1]}]]],["p-95967094",[[1,"c-slider",{"hostId":[1,"id"],"hostName":[1,"name"],"ariaLabelInternal":[1,"aria-label"],"max":[1],"min":[1],"step":[1],"value":[8],"unit":[1],"ticks":[4],"labels":[4],"disableTooltip":[4,"disable-tooltip"],"label":[1],"disabled":[4],"segments":[1],"trackPosition":[32],"tickPositions":[32]},null,{"segments":["onSegmentChange"],"value":["onValueChange"]}]]],["p-1b1d64f3",[[1,"c-status",{"type":[1]}]]],["p-084e4e2a",[[1,"c-step",{"complete":[4],"current":[4]}]]],["p-774e25ed",[[1,"c-steps",{"value":[8],"isMobile":[32],"label":[32]},null,{"value":["watchPropHandler"]}]]],["p-7869709f",[[1,"c-tab-buttons",{"value":[1032],"mandatory":[4],"tabs":[4],"size":[1],"hostDisabled":[4,"disabled"]},[[1,"tabFocus","tabFocusHandler"],[2,"keyup","handleKeyUp"],[1,"tabChange","onTabChange"]],{"value":["onValueChange"]}]]],["p-c791bc22",[[1,"c-tab-item",{"value":[8],"active":[4]}]]],["p-4b9fc284",[[1,"c-tab-items",{"value":[8],"disableAnimation":[4,"disable-animation"],"activeTab":[32]},[[1,"contentChange","tabContentChangeHandler"]],{"value":["onValueChange"]}]]],["p-82e5b6a3",[[1,"c-tags",{"size":[1]}]]],["p-73c56177",[[65,"c-autocomplete",{"items":[16],"value":[8],"query":[1],"hostId":[1,"id"],"disabled":[4],"label":[1],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"minimumQueryLength":[2,"minimum-query-length"],"minimumQueryLengthMessage":[1,"minimum-query-length-message"],"noMatchingItemsMessage":[1,"no-matching-items-message"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"query":["handleQueryChange"]}],[65,"c-select",{"items":[16],"value":[8],"hostId":[1,"id"],"clearable":[4],"disabled":[4],"label":[1],"labelOnTop":[4,"label-on-top"],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"optionAsSelection":[4,"option-as-selection"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[1,"keydown","handleKeyDown"],[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"value":["onValueChanged"]}],[1,"c-card",{"fullscreen":[4],"isFullscreen":[32],"exitFullscreen":[64],"enterFullscreen":[64]}],[1,"c-navigation-button"],[1,"c-side-navigation",{"styles":[16],"mobile":[4],"menuVisible":[1028,"menu-visible"]},[[0,"itemChange","handleChange"]]],[1,"c-side-navigation-item",{"active":[4],"href":[1],"target":[1],"loading":[4]},[[0,"itemChange","handleChange"]],{"active":["onActiveChange"]}],[1,"c-button",{"inverted":[4],"outlined":[4],"ghost":[4],"danger":[4],"grouped":[4],"text":[4],"loading":[4],"fit":[4],"noRadius":[4,"no-radius"],"type":[1],"disabled":[516],"value":[8],"hostId":[1,"id"],"size":[1],"href":[1],"target":[1],"tabs":[4]},[[1,"focus","onTabFocus"]]],[65,"c-radio-group",{"value":[1032],"hideDetails":[4,"hide-details"],"hint":[1],"inline":[4],"label":[1],"color":[1],"hostId":[1,"id"],"items":[16],"disabled":[4],"returnObject":[4,"return-object"],"required":[4],"valid":[4],"validation":[1]}],[1,"c-sub-navigation-item",{"active":[4],"focusable":[4],"href":[1],"target":[1],"loading":[4]}],[65,"c-text-field",{"automaticFocus":[4,"autofocus"],"automaticCapitalize":[1,"autocapitalize"],"autocorrect":[1],"autocomplete":[1],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"trimWhitespace":[4,"trim-whitespace"],"label":[1],"labelOnTop":[4,"label-on-top"],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[1025],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32]}],[1,"c-main",{"disableLayout":[4,"disable-layout"]}],[65,"c-otp-input",{"hasAutofocus":[4,"autofocus"],"hideDetails":[4,"hide-details"],"hint":[1],"elementId":[1,"id"],"length":[2],"valid":[4],"validation":[1],"value":[1025],"statusText":[32],"reset":[64]},null,{"validation":["onValidationMessageChange"],"value":["onValueChange"]}],[65,"c-switch",{"checked":[1028],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostDisabled":[4,"disabled"],"loading":[4],"hostId":[1,"id"],"required":[4],"hasLabel":[32]},null,{"value":["onValueChange"]}],[1,"c-card-content"],[1,"c-card-title"],[1,"c-csc-logo",{"width":[2]}],[1,"c-option",{"selected":[4],"disabled":[4],"name":[1],"value":[8]}],[1,"c-page",{"scrollIndicator":[4,"scroll-indicator"]}],[1,"c-radio",{"checked":[4],"disabled":[4],"value":[1]}],[1,"c-side-navigation-title"],[4,"c-table",{"mobileBreakpoint":[2,"mobile-breakpoint"],"responsive":[4],"updateMobileLabels":[64]}],[1,"c-toolbar"],[65,"c-checkbox",{"checked":[1028],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"indeterminate":[4],"label":[1],"required":[4],"valid":[4],"validation":[1],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostName":[1,"name"]},null,{"value":["onValueChange"]}],[1,"c-backdrop",{"disableBackdropBlur":[4,"disable-backdrop-blur"],"blur":[32]},null,{"disableBackdropBlur":["onValueChange"]}],[1,"c-card-actions",{"align":[1],"justify":[1]}],[1,"c-spacer"],[1,"c-dropdown",{"itemsPerPage":[2,"items-per-page"],"parent":[16],"items":[16],"index":[2],"hostId":[1,"id"],"type":[1],"dropdownItemType":[1,"dropdown-item-type"],"renderedList":[32],"isOpen":[32],"statusText":[32],"setStatusText":[64],"focusItem":[64],"open":[64],"close":[64],"selectItem":[64],"updateList":[64]},null,{"items":["optionsWatcher"],"isOpen":["stateWatcher"],"index":["handleIndexChange"]}],[1,"c-loader",{"contentdelay":[2],"hide":[4],"size":[2],"width":[2]},null,{"hide":["onElementHide"]}],[4,"c-input",{"active":[4],"automaticFocus":[4,"autofocus"],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"inputId":[1,"input-id"],"items":[16],"itemsPerPage":[2,"items-per-page"],"label":[1],"labelOnTop":[4,"label-on-top"],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[8],"variant":[1],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32],"statusText":[32],"currentIndex":[32],"reset":[64]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"value":["onValueChange"],"placeholder":["onPlaceholderChange"]}],[1,"c-message",{"hint":[1],"inputId":[1,"input-id"],"valid":[4],"validation":[1],"messageOptions":[32]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"hint":["onHintMessageChange"]}],[1,"c-icon-button",{"badge":[1],"danger":[4],"loading":[4],"text":[4],"inverted":[4],"outlined":[4],"path":[1],"ghost":[4],"disabled":[4],"size":[1]}],[1,"c-badge"],[1,"c-icon",{"path":[1],"size":[2],"color":[1]}],[1,"c-spinner",{"color":[1],"size":[2],"width":[2]}],[1,"c-ripple",{"createRipple":[64]}]]],["p-82038174",[[1,"c-menu",{"items":[16],"contentClass":[1,"content-class"],"custom":[4],"small":[4],"flat":[4],"itemsPerPage":[2,"items-per-page"],"menuItemsComponent":[32],"menuWrapperComponent":[32],"currentIndex":[32],"active":[32]},[[2,"keydown","handleKeyDown"]]],[1,"c-menu-items",{"items":[16],"small":[4],"active":[4],"parentType":[1,"parent-type"],"parent":[16],"top":[2],"index":[2],"itemsPerPage":[2,"items-per-page"],"scrollingParent":[32],"isInView":[32],"currentIndex":[32]},[[2,"keydown","handleKeyDown"]],{"currentIndex":["onIndexChange"]}]]],["p-0b56450b",[[1,"c-pagination",{"value":[16],"hideDetails":[4,"hide-details"],"simple":[4],"size":[1],"hideRange":[4,"hide-range"],"_currentPage":[32],"_itemsPerPage":[32],"_pageSizes":[32],"_totalVisible":[32],"tick":[32]},null,{"value":["valueHandler"]}]]],["p-0e4d4890",[[1,"c-toast",{"message":[16],"closeToast":[64]}]]]]'),e)}));
1
+ import{p as e,b as a}from"./p-gSzSMY-c.js";export{s as setNonce}from"./p-gSzSMY-c.js";import{g as t}from"./p-DQuL1Twl.js";var i=()=>{const a=import.meta.url;const t={};if(a!==""){t.resourcesUrl=new URL(".",a).href}return e(t)};i().then((async e=>{await t();return a(JSON.parse('[["p-e48d90fa",[[1,"c-data-table",{"data":[16],"externalData":[4,"external-data"],"headers":[16],"hideFooter":[4,"hide-footer"],"footerOptions":[16],"loading":[4],"loadingText":[1,"loading-text"],"noDataText":[1,"no-data-text"],"pagination":[1040],"selectable":[4],"singleSelection":[4,"single-selection"],"selectionProperty":[1,"selection-property"],"singleExpansion":[4,"single-expansion"],"sortBy":[1032,"sort-by"],"sortDirection":[1025,"sort-direction"],"stickyHeader":[4,"sticky-header"],"horizontalScrolling":[4,"horizontal-scrolling"],"_activeRows":[32],"_data":[32],"_isIndeterminate":[32],"_isPaginationSimple":[32],"_selections":[32],"hasOverflow":[32],"hiddenHeaders":[32],"initiallyHiddenHeaders":[32],"forceRender":[32],"breakpoints":[32],"markedFooterWidth":[32],"parentWidth":[32],"firstCellHidden":[32],"lastCellHidden":[32],"clearSelections":[64],"getData":[64]},null,{"hiddenHeaders":["onHiddenHeaderChange"],"data":["onDataChange"],"headers":["onHeaderChange"],"singleSelection":["onSingleSelectionChange"],"loading":["onLoadingChange"]}]]],["p-13976903",[[1,"c-tabs",{"value":[1032],"borderless":[4],"disableAnimation":[4,"disable-animation"],"justify":[1],"mobileBreakpoint":[2,"mobile-breakpoint"],"vertical":[4],"isOverflowing":[32],"isMobile":[32],"scrollOffset":[32]},[[1,"tabFocus","tabFocusHandler"],[1,"tabChange","tabChangeHandler"],[2,"keydown","handleKeyDown"],[2,"keyup","handleKeyUp"]],{"justify":["onJustificationChange"],"value":["onExternalValueChange"],"scrollOffset":["onScrollOffsetChange"]}]]],["p-04f010cd",[[1,"c-tag",{"active":[4],"block":[4],"fit":[4],"flat":[4],"closeable":[4],"badge":[8],"size":[1]}]]],["p-2acf252a",[[4,"c-swiper",{"value":[1544],"elementId":[1,"id"],"isBeginning":[32],"isEnd":[32],"statusText":[32]},[[0,"changeValue","onTabClick"],[2,"keyup","handleKeyUp"]]]]],["p-9806cee5",[[68,"c-text-field-open",{"automaticFocus":[4,"autofocus"],"automaticCapitalize":[1,"autocapitalize"],"autocorrect":[1],"autocomplete":[1],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"trimWhitespace":[4,"trim-whitespace"],"label":[1],"labelOnTop":[4,"label-on-top"],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[1025],"renderOutsideShadow":[4,"render-outside-shadow"],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32]}]]],["p-fd75e786",[[1,"c-toasts",{"absolute":[4],"horizontal":[1],"vertical":[1],"messages":[32],"addToast":[64],"removeToast":[64]}]]],["p-b0e03fea",[[1,"c-accordion-item",{"collapsable":[4],"heading":[1],"value":[8],"expanded":[4],"outlined":[4],"hasCustomHeader":[32],"hasIcon":[32]},[[2,"keydown","handleKeyDown"],[0,"changeValue","stop"]]]]],["p-aec6b36e",[[1,"c-list-item",{"active":[4],"disabled":[4],"disabledByParent":[4,"disabled-by-parent"],"hoverable":[4],"ripple":[4],"href":[1],"target":[1]},null,{"active":["onActiveChange"]}]]],["p-732e7114",[[1,"c-login-card-actions",{"align":[1],"justify":[1]}]]],["p-7f778e0a",[[1,"c-swiper-tab",{"disabled":[4],"active":[4],"label":[1],"hostId":[1,"id"],"setsize":[2],"position":[2],"value":[8]},[[1,"click","onTabClick"]]]]],["p-ce764150",[[1,"c-tab",{"active":[4],"disabled":[4],"hostId":[1,"id"],"position":[2],"setsize":[2],"value":[8]},[[1,"focus","onTabFocus"],[1,"keydown","handleKeydown"]]]]],["p-4620a4d8",[[1,"c-accordion",{"value":[1032],"mandatory":[4],"multiple":[4],"outlined":[4]},[[1,"itemChange","onAccordionItemChange"]],{"value":["watchPropHandler"]}]]],["p-e1cec030",[[1,"c-alert",{"type":[1]}]]],["p-1963c292",[[1,"c-link",{"href":[1],"underline":[4],"target":[1],"weight":[1]}]]],["p-cf835443",[[0,"c-list",{"disabled":[4],"bordered":[4]},null,{"disabled":["onDisabledChange"]}]]],["p-0bf2ca66",[[1,"c-list-item-title",{"active":[4]}]]],["p-5b10d5e5",[[1,"c-login-button",{"href":[1],"src":[1],"alt":[1]}]]],["p-9fff794f",[[1,"c-login-buttons"]]],["p-f23b3ee3",[[4,"c-login-card",{"backgroundPosition":[1,"background-position"],"mobileBreakpoint":[2,"mobile-breakpoint"],"overlay":[4],"overlayBlendMode":[1,"overlay-blend-mode"],"src":[1],"path":[32],"imageHeight":[32]}]]],["p-c74c234c",[[1,"c-login-card-content"]]],["p-39f34048",[[1,"c-login-card-title"]]],["p-7f84c51a",[[1,"c-modal",{"value":[4],"dismissable":[4],"width":[8],"zIndex":[2,"z-index"],"disableBackdropBlur":[4,"disable-backdrop-blur"],"innerValue":[32],"animateModal":[32],"standaloneMode":[32]},null,{"value":["onValueChange"]}]]],["p-41b53c95",[[1,"c-option-value"]]],["p-8707c1c5",[[1,"c-progress-bar",{"value":[2],"hideDetails":[4,"hide-details"],"singleLine":[4,"single-line"],"label":[1],"indeterminate":[4]}]]],["p-a27a5f80",[[1,"c-row",{"gap":[2],"nowrap":[4],"align":[1],"justify":[1]}]]],["p-95967094",[[1,"c-slider",{"hostId":[1,"id"],"hostName":[1,"name"],"ariaLabelInternal":[1,"aria-label"],"max":[1],"min":[1],"step":[1],"value":[8],"unit":[1],"ticks":[4],"labels":[4],"disableTooltip":[4,"disable-tooltip"],"label":[1],"disabled":[4],"segments":[1],"trackPosition":[32],"tickPositions":[32]},null,{"segments":["onSegmentChange"],"value":["onValueChange"]}]]],["p-1b1d64f3",[[1,"c-status",{"type":[1]}]]],["p-084e4e2a",[[1,"c-step",{"complete":[4],"current":[4]}]]],["p-774e25ed",[[1,"c-steps",{"value":[8],"isMobile":[32],"label":[32]},null,{"value":["watchPropHandler"]}]]],["p-7869709f",[[1,"c-tab-buttons",{"value":[1032],"mandatory":[4],"tabs":[4],"size":[1],"hostDisabled":[4,"disabled"]},[[1,"tabFocus","tabFocusHandler"],[2,"keyup","handleKeyUp"],[1,"tabChange","onTabChange"]],{"value":["onValueChange"]}]]],["p-c791bc22",[[1,"c-tab-item",{"value":[8],"active":[4]}]]],["p-4b9fc284",[[1,"c-tab-items",{"value":[8],"disableAnimation":[4,"disable-animation"],"activeTab":[32]},[[1,"contentChange","tabContentChangeHandler"]],{"value":["onValueChange"]}]]],["p-82e5b6a3",[[1,"c-tags",{"size":[1]}]]],["p-cbafc9a2",[[65,"c-autocomplete",{"items":[16],"value":[8],"query":[1],"hostId":[1,"id"],"disabled":[4],"label":[1],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"minimumQueryLength":[2,"minimum-query-length"],"minimumQueryLengthMessage":[1,"minimum-query-length-message"],"noMatchingItemsMessage":[1,"no-matching-items-message"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"query":["handleQueryChange"]}],[65,"c-select",{"items":[16],"value":[8],"hostId":[1,"id"],"clearable":[4],"disabled":[4],"label":[1],"labelOnTop":[4,"label-on-top"],"name":[1],"placeholder":[1],"hideDetails":[4,"hide-details"],"hint":[1],"loading":[4],"required":[4],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"shadow":[4],"returnObject":[4,"return-object"],"itemsPerPage":[2,"items-per-page"],"optionAsSelection":[4,"option-as-selection"],"optionElements":[32],"currentIndex":[32],"dropdownVisible":[32],"statusText":[32],"optionElementsExist":[32],"reset":[64]},[[1,"keydown","handleKeyDown"],[0,"dropdownStateChange","onDropdownStateChange"],[0,"selectOption","onSelectOption"]],{"value":["onValueChanged"]}],[1,"c-card",{"fullscreen":[4],"isFullscreen":[32],"exitFullscreen":[64],"enterFullscreen":[64]}],[1,"c-navigation-button"],[1,"c-side-navigation",{"styles":[16],"mobile":[4],"menuVisible":[1028,"menu-visible"]},[[0,"itemChange","handleChange"]]],[1,"c-side-navigation-item",{"active":[4],"href":[1],"target":[1],"loading":[4]},[[0,"itemChange","handleChange"]],{"active":["onActiveChange"]}],[1,"c-button",{"inverted":[4],"outlined":[4],"ghost":[4],"danger":[4],"grouped":[4],"text":[4],"loading":[4],"fit":[4],"noRadius":[4,"no-radius"],"type":[1],"disabled":[516],"value":[8],"hostId":[1,"id"],"size":[1],"href":[1],"target":[1],"tabs":[4]},[[1,"focus","onTabFocus"]]],[65,"c-radio-group",{"value":[1032],"hideDetails":[4,"hide-details"],"hint":[1],"inline":[4],"label":[1],"color":[1],"hostId":[1,"id"],"items":[16],"disabled":[4],"returnObject":[4,"return-object"],"required":[4],"valid":[4],"validation":[1]}],[1,"c-sub-navigation-item",{"active":[4],"focusable":[4],"href":[1],"target":[1],"loading":[4]}],[65,"c-text-field",{"automaticFocus":[4,"autofocus"],"automaticCapitalize":[1,"autocapitalize"],"autocorrect":[1],"autocomplete":[1],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"trimWhitespace":[4,"trim-whitespace"],"label":[1],"labelOnTop":[4,"label-on-top"],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[1025],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32]}],[1,"c-main",{"disableLayout":[4,"disable-layout"]}],[65,"c-otp-input",{"hasAutofocus":[4,"autofocus"],"hideDetails":[4,"hide-details"],"hint":[1],"elementId":[1,"id"],"length":[2],"valid":[4],"validation":[1],"value":[1025],"statusText":[32],"reset":[64]},null,{"validation":["onValidationMessageChange"],"value":["onValueChange"]}],[65,"c-switch",{"checked":[1028],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostDisabled":[4,"disabled"],"loading":[4],"hostId":[1,"id"],"required":[4],"hasLabel":[32]},null,{"value":["onValueChange"]}],[1,"c-card-content"],[1,"c-card-title"],[1,"c-csc-logo",{"width":[2]}],[1,"c-option",{"selected":[4],"disabled":[4],"name":[1],"value":[8]}],[1,"c-page",{"scrollIndicator":[4,"scroll-indicator"]}],[1,"c-radio",{"checked":[4],"disabled":[4],"value":[1]}],[1,"c-side-navigation-title"],[4,"c-table",{"mobileBreakpoint":[2,"mobile-breakpoint"],"responsive":[4],"updateMobileLabels":[64]}],[1,"c-toolbar"],[65,"c-checkbox",{"checked":[1028],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"indeterminate":[4],"label":[1],"required":[4],"valid":[4],"validation":[1],"value":[8],"trueValue":[8,"true-value"],"falseValue":[8,"false-value"],"hostName":[1,"name"]},null,{"value":["onValueChange"]}],[1,"c-backdrop",{"disableBackdropBlur":[4,"disable-backdrop-blur"],"blur":[32]},null,{"disableBackdropBlur":["onValueChange"]}],[1,"c-card-actions",{"align":[1],"justify":[1]}],[1,"c-spacer"],[1,"c-dropdown",{"itemsPerPage":[2,"items-per-page"],"parent":[16],"items":[16],"index":[2],"hostId":[1,"id"],"type":[1],"dropdownItemType":[1,"dropdown-item-type"],"renderedList":[32],"isOpen":[32],"statusText":[32],"setStatusText":[64],"focusItem":[64],"open":[64],"close":[64],"selectItem":[64],"updateList":[64]},null,{"items":["optionsWatcher"],"isOpen":["stateWatcher"],"index":["handleIndexChange"]}],[1,"c-loader",{"contentdelay":[2],"hide":[4],"size":[2],"width":[2]},null,{"hide":["onElementHide"]}],[4,"c-input",{"active":[4],"automaticFocus":[4,"autofocus"],"disabled":[4],"hideDetails":[4,"hide-details"],"hint":[1],"hostId":[1,"id"],"inputId":[1,"input-id"],"items":[16],"itemsPerPage":[2,"items-per-page"],"label":[1],"labelOnTop":[4,"label-on-top"],"max":[2],"min":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"shadow":[4],"step":[2],"type":[1],"valid":[4],"validate":[4],"validateOnBlur":[4,"validate-on-blur"],"validation":[1],"value":[8],"variant":[1],"isFocused":[32],"labelWidth":[32],"preSlotWidth":[32],"statusText":[32],"currentIndex":[32],"reset":[64]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"value":["onValueChange"],"placeholder":["onPlaceholderChange"]}],[1,"c-message",{"hint":[1],"inputId":[1,"input-id"],"valid":[4],"validation":[1],"messageOptions":[32]},null,{"valid":["onValidChange"],"validation":["onValidationMessageChange"],"hint":["onHintMessageChange"]}],[1,"c-icon-button",{"badge":[1],"danger":[4],"loading":[4],"text":[4],"inverted":[4],"outlined":[4],"path":[1],"ghost":[4],"disabled":[4],"size":[1]}],[1,"c-badge"],[1,"c-icon",{"path":[1],"size":[2],"color":[1]}],[1,"c-spinner",{"color":[1],"size":[2],"width":[2]}],[1,"c-ripple",{"createRipple":[64]}]]],["p-a0129d80",[[1,"c-menu",{"items":[16],"contentClass":[1,"content-class"],"custom":[4],"small":[4],"flat":[4],"itemsPerPage":[2,"items-per-page"],"menuItemsComponent":[32],"menuWrapperComponent":[32],"currentIndex":[32],"active":[32]},[[2,"keydown","handleKeyDown"]]],[1,"c-menu-items",{"items":[16],"small":[4],"active":[4],"parentType":[1,"parent-type"],"parent":[16],"top":[2],"index":[2],"itemsPerPage":[2,"items-per-page"],"scrollingParent":[32],"isInView":[32],"currentIndex":[32]},[[2,"keydown","handleKeyDown"]],{"currentIndex":["onIndexChange"]}]]],["p-ea26b8b0",[[1,"c-pagination",{"value":[16],"hideDetails":[4,"hide-details"],"simple":[4],"size":[1],"hideRange":[4,"hide-range"],"_currentPage":[32],"_itemsPerPage":[32],"_pageSizes":[32],"_totalVisible":[32],"tick":[32]},null,{"value":["valueHandler"]}]]],["p-f62b6b95",[[1,"c-toast",{"message":[16],"closeToast":[64]}]]]]'),e)}));
2
2
  //# sourceMappingURL=csc-ui.esm.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as a,h as c,H as o}from"./p-gSzSMY-c.js";import{l as r}from"./p-Cb-CImk5.js";const e="html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-tag-background-color-active-hover:var(--c-tag-background-color-active-hover, var(--c-primary-400));--_c-tag-background-color-active:var(--c-tag-background-color-active, var(--_c-tag-text-color));--_c-tag-background-color-hover:var(--c-tag-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-tag-background-color:var(--c-tag-background-color, var(--c-transparent));--_c-tag-badge-background-color-active:var(--c-tag-badge-background-color-active, var(--_c-tag-text-color-active));--_c-tag-badge-background-color:var(--c-tag-badge-background-color, var(--_c-tag-background-color-active));--_c-tag-badge-text-color-active:var(--c-tag-badge-text-color-active, var(--_c-tag-text-color));--_c-tag-badge-text-color:var(--c-tag-badge-text-color, var(--_c-tag-text-color-active));--_c-tag-border-color:var(--c-tag-border-color, var(--_c-tag-text-color));--_c-tag-text-color-active:var(--c-tag-text-color-active, var(--c-white));--_c-tag-text-color:var(--c-tag-text-color, var(--c-primary-600));--_c-tag-border-radius:var(--c-tag-border-radius, 999px);--c-tag-min-height:28px;--c-tag-padding-y:4px;--c-tag-padding-x:12px;--c-tag-padding:var(--c-tag-padding-y) var(--c-tag-padding-x);--c-tag-badge-size:20px;--c-tag-icon-button-offset:0;--c-icon-button-outline-offset:0;border-radius:var(--_c-tag-border-radius)}:host>div{align-items:center;background:var(--_c-tag-background-color);border-radius:var(--_c-tag-border-radius);box-shadow:inset 0 0 0 1px var(--_c-tag-border-color);color:var(--_c-tag-text-color);cursor:pointer;display:inline-flex;font-size:14px;font-weight:400;gap:8px;justify-content:center;line-height:1;min-height:var(--c-tag-min-height);min-width:48px;padding:var(--c-tag-padding);transform:translate3d(0, 0, 0);transition:background-color 0.2s ease;user-select:none}:host c-icon-button{--_c-icon-button-height:20px;--_c-icon-button-width:20px;--_c-icon-button-background-color:var(--c-transparent);--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-hover:var(--_c-tag-background-color-active);margin:var(--c-tag-icon-button-offset)}:host c-icon-button:hover{--_c-icon-button-text-color:var(--_c-tag-text-color-active)}:host(:host:hover)>div{background-color:var(--_c-tag-background-color-hover)}:host>div[data-badge]{padding-left:var(--c-tag-padding-y)}:host>div[data-badge]::before{content:attr(data-badge);background-color:var(--_c-tag-badge-background-color);border-radius:calc(var(--_c-tag-border-radius) - var(--c-tag-padding-y));color:var(--_c-tag-badge-text-color);display:inline-grid;font-size:12px;height:var(--c-tag-badge-size);line-height:1;min-width:var(--c-tag-badge-size);padding:0 4px;place-content:center}:host(.c-tag--active)>div[data-badge]::before{background-color:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--closeable)>div{padding-right:var(--c-tag-padding-y)}:host(.c-tag--block)>div{flex-basis:100%}:host(.c-tag--fit)>div{flex-grow:1}:host(.c-tag--flat)>div{pointer-events:none}:host(.c-tag--small){--c-tag-min-height:20px;--c-tag-padding-y:2px;--c-tag-padding-x:8px;--c-tag-badge-size:16px;--c-tag-icon-button-offset:1px 0 0}:host(.c-tag--small) c-icon-button{--_c-icon-button-height:16px;--_c-icon-button-width:16px}:host([data-badge].c-tag--small)>div{padding-left:var(--c-tag-padding-y)}:host(:focus){outline:none}:host(:focus-visible){outline:2px var(--_c-tag-border-color) solid;outline-offset:2px;z-index:1}:host(.c-tag--active)>div{background:var(--_c-tag-background-color-active);color:var(--_c-tag-text-color-active);--c-icon-button-outline-color:var(--c-white)}:host(.c-tag--active .c-tag__badge)>div{background:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--active:hover)>div{background:var(--_c-tag-background-color-active-hover);box-shadow:none;--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}:host(.c-tag--active) c-icon-button{--_c-icon-button-text-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}";const g=class{constructor(c){t(this,c);this.close=a(this,"close",7);this.active=false;this.block=false;this.fit=false;this.flat=false;this.closeable=false;this.badge=null;this.size="default"}_onClose(){this.close.emit()}render(){const t=!!this.badge||this.badge===0;const a={"c-tag":true,"c-tag--closeable":this.closeable,"c-tag--badge":t,"c-tag--active":this.active,"c-tag--block":this.block,"c-tag--fit":this.fit,"c-tag--flat":this.flat,"c-tag--small":this.size==="small"};const e=Object.assign({tabindex:this.flat?-1:0},!this.flat&&{role:"button"});return c(o,Object.assign({key:"652b7b74c86d98e1a4878944883627e1d17bef2b"},e,{class:a}),c("div",Object.assign({key:"30771323df80cadbcd69cea6c4ddb59047dd4090"},t?{"data-badge":this.badge}:{}),c("slot",{key:"1b70cf6dd9c0f495021e29f47577cbc6028dc7a4"}),this.closeable&&c("c-icon-button",{key:"1ddbcd81e0204345c126b2b73af188abe01d4d5d",onClick:()=>this._onClose()},c("c-icon",{key:"0d50551aae9fd49893c1ae7a703ca772fdaa581e",size:16,path:r}))))}};g.style=e;export{g as c_tag};
2
- //# sourceMappingURL=p-781cde9c.entry.js.map
1
+ import{r as t,c as a,h as c,H as o}from"./p-gSzSMY-c.js";import{l as r}from"./p-RscoPQxP.js";const e="html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host{--_c-tag-background-color-active-hover:var(--c-tag-background-color-active-hover, var(--c-primary-400));--_c-tag-background-color-active:var(--c-tag-background-color-active, var(--_c-tag-text-color));--_c-tag-background-color-hover:var(--c-tag-background-color-hover, rgba(var(--c-primary-rgb), 0.1));--_c-tag-background-color:var(--c-tag-background-color, var(--c-transparent));--_c-tag-badge-background-color-active:var(--c-tag-badge-background-color-active, var(--_c-tag-text-color-active));--_c-tag-badge-background-color:var(--c-tag-badge-background-color, var(--_c-tag-background-color-active));--_c-tag-badge-text-color-active:var(--c-tag-badge-text-color-active, var(--_c-tag-text-color));--_c-tag-badge-text-color:var(--c-tag-badge-text-color, var(--_c-tag-text-color-active));--_c-tag-border-color:var(--c-tag-border-color, var(--_c-tag-text-color));--_c-tag-text-color-active:var(--c-tag-text-color-active, var(--c-white));--_c-tag-text-color:var(--c-tag-text-color, var(--c-primary-600));--_c-tag-border-radius:var(--c-tag-border-radius, 999px);--c-tag-min-height:28px;--c-tag-padding-y:4px;--c-tag-padding-x:12px;--c-tag-padding:var(--c-tag-padding-y) var(--c-tag-padding-x);--c-tag-badge-size:20px;--c-tag-icon-button-offset:0;--c-icon-button-outline-offset:0;border-radius:var(--_c-tag-border-radius)}:host>div{align-items:center;background:var(--_c-tag-background-color);border-radius:var(--_c-tag-border-radius);box-shadow:inset 0 0 0 1px var(--_c-tag-border-color);color:var(--_c-tag-text-color);cursor:pointer;display:inline-flex;font-size:14px;font-weight:400;gap:8px;justify-content:center;line-height:1;min-height:var(--c-tag-min-height);min-width:48px;padding:var(--c-tag-padding);transform:translate3d(0, 0, 0);transition:background-color 0.2s ease;user-select:none}:host c-icon-button{--_c-icon-button-height:20px;--_c-icon-button-width:20px;--_c-icon-button-background-color:var(--c-transparent);--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-hover:var(--_c-tag-background-color-active);margin:var(--c-tag-icon-button-offset)}:host c-icon-button:hover{--_c-icon-button-text-color:var(--_c-tag-text-color-active)}:host(:host:hover)>div{background-color:var(--_c-tag-background-color-hover)}:host>div[data-badge]{padding-left:var(--c-tag-padding-y)}:host>div[data-badge]::before{content:attr(data-badge);background-color:var(--_c-tag-badge-background-color);border-radius:calc(var(--_c-tag-border-radius) - var(--c-tag-padding-y));color:var(--_c-tag-badge-text-color);display:inline-grid;font-size:12px;height:var(--c-tag-badge-size);line-height:1;min-width:var(--c-tag-badge-size);padding:0 4px;place-content:center}:host(.c-tag--active)>div[data-badge]::before{background-color:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--closeable)>div{padding-right:var(--c-tag-padding-y)}:host(.c-tag--block)>div{flex-basis:100%}:host(.c-tag--fit)>div{flex-grow:1}:host(.c-tag--flat)>div{pointer-events:none}:host(.c-tag--small){--c-tag-min-height:20px;--c-tag-padding-y:2px;--c-tag-padding-x:8px;--c-tag-badge-size:16px;--c-tag-icon-button-offset:1px 0 0}:host(.c-tag--small) c-icon-button{--_c-icon-button-height:16px;--_c-icon-button-width:16px}:host([data-badge].c-tag--small)>div{padding-left:var(--c-tag-padding-y)}:host(:focus){outline:none}:host(:focus-visible){outline:2px var(--_c-tag-border-color) solid;outline-offset:2px;z-index:1}:host(.c-tag--active)>div{background:var(--_c-tag-background-color-active);color:var(--_c-tag-text-color-active);--c-icon-button-outline-color:var(--c-white)}:host(.c-tag--active .c-tag__badge)>div{background:var(--_c-tag-badge-background-color-active);color:var(--_c-tag-badge-text-color-active)}:host(.c-tag--active:hover)>div{background:var(--_c-tag-background-color-active-hover);box-shadow:none;--_c-icon-button-text-color:var(--_c-tag-text-color);--_c-icon-button-background-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}:host(.c-tag--active) c-icon-button{--_c-icon-button-text-color:var(--_c-tag-text-color-active);--_c-icon-button-background-color-hover:var(--_c-tag-background-color-active)}";const g=class{constructor(c){t(this,c);this.close=a(this,"close",7);this.active=false;this.block=false;this.fit=false;this.flat=false;this.closeable=false;this.badge=null;this.size="default"}_onClose(){this.close.emit()}render(){const t=!!this.badge||this.badge===0;const a={"c-tag":true,"c-tag--closeable":this.closeable,"c-tag--badge":t,"c-tag--active":this.active,"c-tag--block":this.block,"c-tag--fit":this.fit,"c-tag--flat":this.flat,"c-tag--small":this.size==="small"};const e=Object.assign({tabindex:this.flat?-1:0},!this.flat&&{role:"button"});return c(o,Object.assign({key:"652b7b74c86d98e1a4878944883627e1d17bef2b"},e,{class:a}),c("div",Object.assign({key:"30771323df80cadbcd69cea6c4ddb59047dd4090"},t?{"data-badge":this.badge}:{}),c("slot",{key:"1b70cf6dd9c0f495021e29f47577cbc6028dc7a4"}),this.closeable&&c("c-icon-button",{key:"1ddbcd81e0204345c126b2b73af188abe01d4d5d",onClick:()=>this._onClose()},c("c-icon",{key:"0d50551aae9fd49893c1ae7a703ca772fdaa581e",size:16,path:r}))))}};g.style=e;export{g as c_tag};
2
+ //# sourceMappingURL=p-04f010cd.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as t,c as s,h as i,H as a,g as e}from"./p-gSzSMY-c.js";import{j as c,k as o}from"./p-Cb-CImk5.js";const n='html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(.c-tabs){--_c-tabs-border-color:var(--c-tabs-border-color, var(--c-tertiary-200));--_c-tabs-indicator-color:var(--c-tabs-indicator-color, var(--c-primary-600));--_c-tabs-transition-speed:0.001ms;display:block;width:100%;transform:translateX(0%);max-width:100%}:host(.c-tabs) .c-tabs__container{display:grid;grid-template-columns:1fr;align-items:center;gap:4px;--c-icon-button-border-radius:4px}:host(.c-tabs) .c-tabs__tabs{display:flex;overflow:hidden;padding:4px;position:relative;margin:-4px}:host(.c-tabs) .c-tabs__tabs::after{position:absolute;content:"";bottom:4px;inset-inline:0;height:1px;background-color:var(--_c-tabs-border-color)}:host(.c-tabs) .c-tabs__scroll{transform:translateX(var(--_c-tabs-scroll-position-x));transition:transform var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);display:flex;margin:0;padding:0;position:relative;flex-grow:1}:host(.c-tabs) .c-tabs__scroll::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;scale:var(--_c-tabs-indicator-width, 0.125) 1;opacity:0.01;translate:var(--_c-tabs-indicator-left, 0) 0;transform-origin:left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs) .c-tabs__content{display:flex}:host(.c-tabs) ::slotted(c-tab-buttons){flex-grow:1}:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:end}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:center}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--vertical.c-tabs--mobile){grid-template-columns:1fr}:host(.c-tabs.c-tabs--vertical){display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr}:host(.c-tabs.c-tabs--vertical) .c-tabs__tabs::after{display:none}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab-items){position:relative;min-height:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll{display:grid;max-width:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::after{display:none}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::before{content:"";position:absolute;width:4px;top:0;bottom:0;right:0;scale:1 var(--_c-tabs-indicator-width, 0.125);opacity:0.01;translate:0 var(--_c-tabs-indicator-top, 0);transform-origin:top left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab){box-shadow:inset -1px 0 0 0 var(--_c-tabs-border-color);padding-inline:24px;justify-content:start;max-width:100%;min-width:100%}:host(.c-tabs.c-tabs--buttons) .c-tabs__tabs::after,:host(.c-tabs.c-tabs--buttons) .c-tabs__scroll::after{display:none}:host(.c-tabs--borderless){--_c-tabs-border-color:transparent}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::after{opacity:1}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::before{opacity:1}:host(.c-tabs.c-tabs--overflow) .c-tabs__container{grid-template-columns:auto 1fr auto}';var r;(function(t){t[t["Left"]=2]="Left";t[t["Right"]=4]="Right"})(r||(r={}));const h=class{constructor(i){t(this,i);this.changeValue=s(this,"changeValue",3);this.borderless=false;this.disableAnimation=false;this.justify="stretch";this.mobileBreakpoint=640;this.vertical=false;this._initialized=false;this._debounce=null;this._moveDebounce=null;this._isDirty=false;this._focusedTabValue=this.value;this._intersectionObserver=new IntersectionObserver((([t])=>{if(t.isIntersecting){setTimeout((()=>{this._handleOverflow()}),1e3)}}),{threshold:1});this._previousWidth=0;this._maxScrollOffset=0;this._startX=0;this._touchOffset=0;this.isOverflowing=false;this.isMobile=false;this.scrollOffset=0}onJustificationChange(){this._handleActiveTab()}onExternalValueChange(){this._handleActiveTab();this.changeValue.emit(this.value);this._updateItemsValue()}tabFocusHandler(t){t.stopPropagation();this._focusedTabValue=t.detail}tabChangeHandler(t){t.stopPropagation();this.value=t.detail.value}handleKeyDown(t){if(!this.tabs.includes(t.target)||t.target.disabled)return;if(t.key==="Enter"||t.code==="Space"){this.value=t.target.value}}handleKeyUp(t){this._isDirty=true;if(!this.tabs.includes(t.target))return;const s=t.key==="ArrowLeft";const i=t.key==="ArrowRight";if(!i&&!s)return;const a=this._getTabIndex(this._focusedTabValue);const e=this.availableValues.at(0);const c=this.availableValues.at(-1);const o=this._focusedTabValue===e;const n=this._focusedTabValue===c;const r=n?e:this.availableValues[a+1];const h=o?c:this.availableValues[a-1];if(s){if(o)return;this._focusTab(h)}if(i){if(n)return;this._focusTab(r)}}get _prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.disableAnimation}get _tabItems(){return this.el.querySelector(":scope > c-tab-items")}get _tabButtons(){return this.el.querySelector(":scope > c-tab-buttons")}_updateItemsValue(){requestAnimationFrame((()=>{this.tabItems.value=this.value;if(this._tabButtons){this._tabButtons.value=this.value}}))}componentWillLoad(){h._uniqueId+=1;this._tabItems.disableAnimation=this._prefersReducedMotion;if(this._tabButtons){this.el.classList.add("c-tabs--buttons");this._tabButtons.setAttribute("tabs","true")}this._updateItemsValue()}componentDidLoad(){this._resizeObserver=new ResizeObserver((t=>{this._handleResize(t[0].contentRect.width)}));this._resizeObserver.observe(this.el);this._intersectionObserver.observe(this.el);this.el.style.setProperty("--_c-tabs-count",this.setsize.toString());requestAnimationFrame((()=>{this._handleOverflow()}))}disconnectedCallback(){this._intersectionObserver.disconnect()}get tabs(){if(!!this._tabButtons){return Array.from(this._tabButtons.querySelectorAll(":scope > c-button"))}return Array.from(this.el.querySelectorAll(":scope > c-tab"))}get tabItems(){return this.el.querySelector("c-tab-items")}get setsize(){return this.tabs.length}get availableValues(){return this.tabs.map((t=>t.value))}_getTabIndex(t){return this.availableValues.findIndex((s=>s===t))}_setIndicatorTop(t){const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");s.style.setProperty("--_c-tabs-indicator-top",`${t}px`)}_setIndicatorLeft(t){const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");s.style.setProperty("--_c-tabs-indicator-left",`${t}px`)}_setIndicatorWidth(t){const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");s.style.setProperty("--_c-tabs-indicator-width",t.toString())}_handleActiveTab(){requestAnimationFrame((()=>{var t;const s=0;const i=(t=this.el.querySelector('[aria-selected="true"]'))!==null&&t!==void 0?t:this.tabs[0];const a=Array.from(this.tabItems.querySelectorAll(":scope > c-tab-item"));a.forEach(((t,a)=>{const e=this.tabs.find((s=>s.value===t.value));const c=`c-tab-item-${h._uniqueId}-${a+1}`;const o=t.value===this.value;if(e){const n=`c-tab-${h._uniqueId}-${a+1}`;t.setAttribute("disabled",(!!e.disabled).toString());t.setAttribute("aria-labelledby",n);e.setAttribute("id",n);e.setAttribute("aria-controls",c);if(!this._tabButtons){e.active=o}else if(o){this._tabButtons.value=e.value}if(!e.disabled){e.setAttribute("aria-posinset",s.toString());e.setAttribute("setsize",this.availableValues.length.toString())}if(o&&!this._tabButtons){this._moveIndicator(i,e);requestAnimationFrame((()=>{if(!this.isOverflowing)return;const t=this.el.querySelector('c-tab[aria-selected="true"]');this._moveToTab(t);this._tabsTabsElement.style.setProperty("--_c-tabs-transition-speed","200ms")}))}if(o&&this._isDirty){e.focus()}}t.setAttribute("id",c);t.active=o;t.setAttribute("active",o.toString())}))}))}_getDimensions(t){const{x:s,width:i}=t.getBoundingClientRect();const{x:a,width:e}=this._tabsTabsElement.getBoundingClientRect();const{x:c,width:o}=this._tabsScrollElement.getBoundingClientRect();return{x:s,width:i,containerWidth:e,containerX:a,scrollerX:c,scrollerWidth:o}}_focusTab(t){if(this._tabButtons){return}requestAnimationFrame((()=>{const s=this.tabs.find((s=>s.value===t));const{x:i,width:a,containerX:e,containerWidth:c}=this._getDimensions(s);const o=i>=e&&i+a<=e+c;if(o){s===null||s===void 0?void 0:s.focus();return}this._moveToTab(s)}))}_handleResize(t){if(this._moveDebounce!==null)return;if(this._debounce!==null){clearTimeout(this._debounce);this._debounce=null}this._debounce=setTimeout((()=>{const s=this.el.shadowRoot.querySelector(".c-tabs__scroll");const i=this.el.shadowRoot.querySelector(".c-tabs__tabs");requestAnimationFrame((()=>{if(t===this._previousWidth)return;this._handleOverflow();this.isMobile=t<this.mobileBreakpoint;this._maxScrollOffset=-1*(s.scrollWidth-i.clientWidth);this._handleActiveTab();this._previousWidth=t}))}),200)}_moveIndicator(t,s){if(this._moveDebounce!==null)return;this._moveDebounce=setTimeout((()=>{requestAnimationFrame((()=>{const i=this.el.shadowRoot.querySelector(".c-tabs__scroll");const a=this.el.shadowRoot.querySelector(".c-tabs__tabs");if(this._initialized&&!this._prefersReducedMotion){a.style.setProperty("--_c-tabs-transition-speed","200ms")}const e=this.isOverflowing?32:0;const c=s.offsetWidth/i.offsetWidth;const o=this.vertical?s.offsetHeight/i.offsetHeight:s.offsetHeight/i.offsetHeight;const n=t.compareDocumentPosition(s);let h=0;if(n===r.Right){h=this.vertical?s.offsetTop+s.offsetHeight-t.offsetTop:s.offsetLeft+s.offsetWidth-t.offsetLeft}else{h=this.vertical?t.offsetTop+t.offsetHeight-s.offsetTop:t.offsetLeft+t.offsetWidth-s.offsetLeft;this._setIndicatorLeft(s.offsetLeft-e);this._setIndicatorTop(s.offsetTop-e)}this._setIndicatorWidth(this.vertical?h/i.offsetHeight:h/i.offsetWidth);const b=t=>{if(t.propertyName!=="scale")return;this._setIndicatorLeft(s.offsetLeft-e);this._setIndicatorTop(s.offsetTop-e);this._setIndicatorWidth(this.vertical?o:c);i.removeEventListener("transitionend",b);if(!this._initialized){this.el.classList.add("c-tabs--initialized")}this._initialized=true};i.addEventListener("transitionend",b)}));clearTimeout(this._moveDebounce);this._moveDebounce=null}),200)}onScrollOffsetChange(t){this._tabsTabsElement.style.setProperty("--_c-tabs-scroll-position-x",`${t}px`)}_handleOverflow(){if(this._tabButtons){this.isOverflowing=false;return}const t=this.el.shadowRoot.querySelector(".c-tabs__scroll");const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");const i=t.scrollWidth;const a=s.clientWidth;this.isOverflowing=a+1<i}_onTouchEnd(){this._tabsTabsElement.style.setProperty("--_c-tabs-transition-speed","200ms")}_onTouchMove(t){if(this.vertical)return;t.preventDefault();this._tabsTabsElement.style.setProperty("--_c-tabs-transition-speed","0ms");const s=-1*(this._touchOffset+this._startX-t.touches[0].clientX);const i=s<=0&&s>=this._maxScrollOffset;if(i){this.scrollOffset=s}else if(s>0||!this.isOverflowing){this.scrollOffset=0}else if(s<this._maxScrollOffset){this.scrollOffset=this._maxScrollOffset}}_onTouchStart(t){this._handleOverflow();if(!this.isOverflowing)return;this._touchOffset=this.scrollOffset*-1;this._startX=t.touches[0].clientX}_onBackClick(){const t=0;const s=this._tabsTabsElement.clientWidth/2;this.scrollOffset=Math.min(this.scrollOffset+s,t)}_onForwardClick(){const t=(this._tabsScrollElement.scrollWidth-this._tabsTabsElement.clientWidth)*-1;const s=this._tabsTabsElement.clientWidth/2;this.scrollOffset=Math.max(-1*s+this.scrollOffset,t)}_moveToTab(t){const s=()=>{t===null||t===void 0?void 0:t.focus();this._tabsScrollElement.removeEventListener("transitionend",s)};requestAnimationFrame((()=>{const s=this._getTabIndex(t.dataset.value);const i=s===0;const a=s===this.availableValues.length-1;if(i){this.scrollOffset=0;return}if(a){this.scrollOffset=this._maxScrollOffset-8;return}const{x:e,width:c,containerWidth:o,containerX:n}=this._getDimensions(t);const r=e+c;const h=n+o;const b=e<n;const l=r>h;if(b){const t=r-n;const s=t-c;this.scrollOffset=this.scrollOffset-s+4}if(l){this.scrollOffset-=r-h+4}}));const i=this.el.shadowRoot.querySelector(".c-tabs__scroll");i.addEventListener("transitionend",s)}render(){const t={"c-tabs":true,"c-tabs--borderless":this.borderless,"c-tabs--vertical":this.vertical,"c-tabs--overflow":this.isOverflowing,"c-tabs--mobile":this.isMobile,[`c-tabs--justify-${this.justify}`]:true};return i(a,{key:"1594e6244cef2e9b456b21d1659c590f1eadb2a5",role:"tablist",class:t},i("div",{key:"31458e8269c57e5e2f7babc5433ff34877f04dbb",class:"c-tabs__container"},this.isOverflowing&&!this.vertical&&i("c-icon-button",{key:"1db6dbe430b511b9355d9c10e7870a1f55498139",size:"x-small",ghost:true,onClick:this._onBackClick.bind(this)},i("c-icon",{key:"61369a607c9690aee79937fd68fa36b2061a8939",path:c})),i("div",{key:"ba3ecd1acf0d7b7bc8ab2e959836d524526bb317",ref:t=>this._tabsTabsElement=t,class:"c-tabs__tabs",onTouchStart:this._onTouchStart.bind(this),onTouchMove:this._onTouchMove.bind(this),onTouchEnd:this._onTouchEnd.bind(this)},i("div",{key:"55414dcdc7527430cdaea328b3755742b5a837af",ref:t=>this._tabsScrollElement=t,class:"c-tabs__scroll"},i("slot",{key:"eaf5122d6c7376339ce3b8d32439d2c7f152a4b7"}))),this.isOverflowing&&!this.vertical&&i("c-icon-button",{key:"43030acec8acf929f6bac13c074549c4eba6069a",size:"x-small",ghost:true,onClick:this._onForwardClick.bind(this)},i("c-icon",{key:"3a24c0f3e72eb9e1937c22056fbc1a89d4d3317b",path:o}))),i("div",{key:"00665c22dadc4a611ec21281b786ee20780e6cfe",class:"c-tabs__content"},i("slot",{key:"43f1d27ff20842278ae19f44f484313833fc7d03",name:"items"})))}get el(){return e(this)}static get watchers(){return{justify:["onJustificationChange"],value:["onExternalValueChange"],scrollOffset:["onScrollOffsetChange"]}}};h._uniqueId=0;h.style=n;export{h as c_tabs};
2
- //# sourceMappingURL=p-ad4cba6c.entry.js.map
1
+ import{r as t,c as s,h as i,H as a,g as e}from"./p-gSzSMY-c.js";import{j as c,k as o}from"./p-RscoPQxP.js";const n='html{box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit;-webkit-tap-highlight-color:transparent}:host{font-family:var(--c-font-family)}::-ms-reveal{display:none}:host(.c-tabs){--_c-tabs-border-color:var(--c-tabs-border-color, var(--c-tertiary-200));--_c-tabs-indicator-color:var(--c-tabs-indicator-color, var(--c-primary-600));--_c-tabs-transition-speed:0.001ms;display:block;width:100%;transform:translateX(0%);max-width:100%}:host(.c-tabs) .c-tabs__container{display:grid;grid-template-columns:1fr;align-items:center;gap:4px;--c-icon-button-border-radius:4px}:host(.c-tabs) .c-tabs__tabs{display:flex;overflow:hidden;padding:4px;position:relative;margin:-4px}:host(.c-tabs) .c-tabs__tabs::after{position:absolute;content:"";bottom:4px;inset-inline:0;height:1px;background-color:var(--_c-tabs-border-color)}:host(.c-tabs) .c-tabs__scroll{transform:translateX(var(--_c-tabs-scroll-position-x));transition:transform var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);display:flex;margin:0;padding:0;position:relative;flex-grow:1}:host(.c-tabs) .c-tabs__scroll::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;scale:var(--_c-tabs-indicator-width, 0.125) 1;opacity:0.01;translate:var(--_c-tabs-indicator-left, 0) 0;transform-origin:left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs) .c-tabs__content{display:flex}:host(.c-tabs) ::slotted(c-tab-buttons){flex-grow:1}:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-start:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:end}:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-end:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) .c-tabs__scroll{justify-content:center}:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab-buttons),:host(.c-tabs.c-tabs--justify-center:not(.c-tabs--vertical)) ::slotted(c-tab){flex-grow:0}:host(.c-tabs.c-tabs--vertical.c-tabs--mobile){grid-template-columns:1fr}:host(.c-tabs.c-tabs--vertical){display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr}:host(.c-tabs.c-tabs--vertical) .c-tabs__tabs::after{display:none}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab-items){position:relative;min-height:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll{display:grid;max-width:100%}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::after{display:none}:host(.c-tabs.c-tabs--vertical) .c-tabs__scroll::before{content:"";position:absolute;width:4px;top:0;bottom:0;right:0;scale:1 var(--_c-tabs-indicator-width, 0.125);opacity:0.01;translate:0 var(--_c-tabs-indicator-top, 0);transform-origin:top left;transition:scale var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1), translate var(--_c-tabs-transition-speed) cubic-bezier(0.075, 0.82, 0.165, 1);background:var(--_c-tabs-indicator-color)}:host(.c-tabs.c-tabs--vertical) ::slotted(c-tab){box-shadow:inset -1px 0 0 0 var(--_c-tabs-border-color);padding-inline:24px;justify-content:start;max-width:100%;min-width:100%}:host(.c-tabs.c-tabs--buttons) .c-tabs__tabs::after,:host(.c-tabs.c-tabs--buttons) .c-tabs__scroll::after{display:none}:host(.c-tabs--borderless){--_c-tabs-border-color:transparent}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::after{opacity:1}:host(.c-tabs.c-tabs--initialized) .c-tabs__scroll::before{opacity:1}:host(.c-tabs.c-tabs--overflow) .c-tabs__container{grid-template-columns:auto 1fr auto}';var r;(function(t){t[t["Left"]=2]="Left";t[t["Right"]=4]="Right"})(r||(r={}));const h=class{constructor(i){t(this,i);this.changeValue=s(this,"changeValue",3);this.borderless=false;this.disableAnimation=false;this.justify="stretch";this.mobileBreakpoint=640;this.vertical=false;this._initialized=false;this._debounce=null;this._moveDebounce=null;this._isDirty=false;this._focusedTabValue=this.value;this._intersectionObserver=new IntersectionObserver((([t])=>{if(t.isIntersecting){setTimeout((()=>{this._handleOverflow()}),1e3)}}),{threshold:1});this._previousWidth=0;this._maxScrollOffset=0;this._startX=0;this._touchOffset=0;this.isOverflowing=false;this.isMobile=false;this.scrollOffset=0}onJustificationChange(){this._handleActiveTab()}onExternalValueChange(){this._handleActiveTab();this.changeValue.emit(this.value);this._updateItemsValue()}tabFocusHandler(t){t.stopPropagation();this._focusedTabValue=t.detail}tabChangeHandler(t){t.stopPropagation();this.value=t.detail.value}handleKeyDown(t){if(!this.tabs.includes(t.target)||t.target.disabled)return;if(t.key==="Enter"||t.code==="Space"){this.value=t.target.value}}handleKeyUp(t){this._isDirty=true;if(!this.tabs.includes(t.target))return;const s=t.key==="ArrowLeft";const i=t.key==="ArrowRight";if(!i&&!s)return;const a=this._getTabIndex(this._focusedTabValue);const e=this.availableValues.at(0);const c=this.availableValues.at(-1);const o=this._focusedTabValue===e;const n=this._focusedTabValue===c;const r=n?e:this.availableValues[a+1];const h=o?c:this.availableValues[a-1];if(s){if(o)return;this._focusTab(h)}if(i){if(n)return;this._focusTab(r)}}get _prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.disableAnimation}get _tabItems(){return this.el.querySelector(":scope > c-tab-items")}get _tabButtons(){return this.el.querySelector(":scope > c-tab-buttons")}_updateItemsValue(){requestAnimationFrame((()=>{this.tabItems.value=this.value;if(this._tabButtons){this._tabButtons.value=this.value}}))}componentWillLoad(){h._uniqueId+=1;this._tabItems.disableAnimation=this._prefersReducedMotion;if(this._tabButtons){this.el.classList.add("c-tabs--buttons");this._tabButtons.setAttribute("tabs","true")}this._updateItemsValue()}componentDidLoad(){this._resizeObserver=new ResizeObserver((t=>{this._handleResize(t[0].contentRect.width)}));this._resizeObserver.observe(this.el);this._intersectionObserver.observe(this.el);this.el.style.setProperty("--_c-tabs-count",this.setsize.toString());requestAnimationFrame((()=>{this._handleOverflow()}))}disconnectedCallback(){this._intersectionObserver.disconnect()}get tabs(){if(!!this._tabButtons){return Array.from(this._tabButtons.querySelectorAll(":scope > c-button"))}return Array.from(this.el.querySelectorAll(":scope > c-tab"))}get tabItems(){return this.el.querySelector("c-tab-items")}get setsize(){return this.tabs.length}get availableValues(){return this.tabs.map((t=>t.value))}_getTabIndex(t){return this.availableValues.findIndex((s=>s===t))}_setIndicatorTop(t){const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");s.style.setProperty("--_c-tabs-indicator-top",`${t}px`)}_setIndicatorLeft(t){const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");s.style.setProperty("--_c-tabs-indicator-left",`${t}px`)}_setIndicatorWidth(t){const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");s.style.setProperty("--_c-tabs-indicator-width",t.toString())}_handleActiveTab(){requestAnimationFrame((()=>{var t;const s=0;const i=(t=this.el.querySelector('[aria-selected="true"]'))!==null&&t!==void 0?t:this.tabs[0];const a=Array.from(this.tabItems.querySelectorAll(":scope > c-tab-item"));a.forEach(((t,a)=>{const e=this.tabs.find((s=>s.value===t.value));const c=`c-tab-item-${h._uniqueId}-${a+1}`;const o=t.value===this.value;if(e){const n=`c-tab-${h._uniqueId}-${a+1}`;t.setAttribute("disabled",(!!e.disabled).toString());t.setAttribute("aria-labelledby",n);e.setAttribute("id",n);e.setAttribute("aria-controls",c);if(!this._tabButtons){e.active=o}else if(o){this._tabButtons.value=e.value}if(!e.disabled){e.setAttribute("aria-posinset",s.toString());e.setAttribute("setsize",this.availableValues.length.toString())}if(o&&!this._tabButtons){this._moveIndicator(i,e);requestAnimationFrame((()=>{if(!this.isOverflowing)return;const t=this.el.querySelector('c-tab[aria-selected="true"]');this._moveToTab(t);this._tabsTabsElement.style.setProperty("--_c-tabs-transition-speed","200ms")}))}if(o&&this._isDirty){e.focus()}}t.setAttribute("id",c);t.active=o;t.setAttribute("active",o.toString())}))}))}_getDimensions(t){const{x:s,width:i}=t.getBoundingClientRect();const{x:a,width:e}=this._tabsTabsElement.getBoundingClientRect();const{x:c,width:o}=this._tabsScrollElement.getBoundingClientRect();return{x:s,width:i,containerWidth:e,containerX:a,scrollerX:c,scrollerWidth:o}}_focusTab(t){if(this._tabButtons){return}requestAnimationFrame((()=>{const s=this.tabs.find((s=>s.value===t));const{x:i,width:a,containerX:e,containerWidth:c}=this._getDimensions(s);const o=i>=e&&i+a<=e+c;if(o){s===null||s===void 0?void 0:s.focus();return}this._moveToTab(s)}))}_handleResize(t){if(this._moveDebounce!==null)return;if(this._debounce!==null){clearTimeout(this._debounce);this._debounce=null}this._debounce=setTimeout((()=>{const s=this.el.shadowRoot.querySelector(".c-tabs__scroll");const i=this.el.shadowRoot.querySelector(".c-tabs__tabs");requestAnimationFrame((()=>{if(t===this._previousWidth)return;this._handleOverflow();this.isMobile=t<this.mobileBreakpoint;this._maxScrollOffset=-1*(s.scrollWidth-i.clientWidth);this._handleActiveTab();this._previousWidth=t}))}),200)}_moveIndicator(t,s){if(this._moveDebounce!==null)return;this._moveDebounce=setTimeout((()=>{requestAnimationFrame((()=>{const i=this.el.shadowRoot.querySelector(".c-tabs__scroll");const a=this.el.shadowRoot.querySelector(".c-tabs__tabs");if(this._initialized&&!this._prefersReducedMotion){a.style.setProperty("--_c-tabs-transition-speed","200ms")}const e=this.isOverflowing?32:0;const c=s.offsetWidth/i.offsetWidth;const o=this.vertical?s.offsetHeight/i.offsetHeight:s.offsetHeight/i.offsetHeight;const n=t.compareDocumentPosition(s);let h=0;if(n===r.Right){h=this.vertical?s.offsetTop+s.offsetHeight-t.offsetTop:s.offsetLeft+s.offsetWidth-t.offsetLeft}else{h=this.vertical?t.offsetTop+t.offsetHeight-s.offsetTop:t.offsetLeft+t.offsetWidth-s.offsetLeft;this._setIndicatorLeft(s.offsetLeft-e);this._setIndicatorTop(s.offsetTop-e)}this._setIndicatorWidth(this.vertical?h/i.offsetHeight:h/i.offsetWidth);const b=t=>{if(t.propertyName!=="scale")return;this._setIndicatorLeft(s.offsetLeft-e);this._setIndicatorTop(s.offsetTop-e);this._setIndicatorWidth(this.vertical?o:c);i.removeEventListener("transitionend",b);if(!this._initialized){this.el.classList.add("c-tabs--initialized")}this._initialized=true};i.addEventListener("transitionend",b)}));clearTimeout(this._moveDebounce);this._moveDebounce=null}),200)}onScrollOffsetChange(t){this._tabsTabsElement.style.setProperty("--_c-tabs-scroll-position-x",`${t}px`)}_handleOverflow(){if(this._tabButtons){this.isOverflowing=false;return}const t=this.el.shadowRoot.querySelector(".c-tabs__scroll");const s=this.el.shadowRoot.querySelector(".c-tabs__tabs");const i=t.scrollWidth;const a=s.clientWidth;this.isOverflowing=a+1<i}_onTouchEnd(){this._tabsTabsElement.style.setProperty("--_c-tabs-transition-speed","200ms")}_onTouchMove(t){if(this.vertical)return;t.preventDefault();this._tabsTabsElement.style.setProperty("--_c-tabs-transition-speed","0ms");const s=-1*(this._touchOffset+this._startX-t.touches[0].clientX);const i=s<=0&&s>=this._maxScrollOffset;if(i){this.scrollOffset=s}else if(s>0||!this.isOverflowing){this.scrollOffset=0}else if(s<this._maxScrollOffset){this.scrollOffset=this._maxScrollOffset}}_onTouchStart(t){this._handleOverflow();if(!this.isOverflowing)return;this._touchOffset=this.scrollOffset*-1;this._startX=t.touches[0].clientX}_onBackClick(){const t=0;const s=this._tabsTabsElement.clientWidth/2;this.scrollOffset=Math.min(this.scrollOffset+s,t)}_onForwardClick(){const t=(this._tabsScrollElement.scrollWidth-this._tabsTabsElement.clientWidth)*-1;const s=this._tabsTabsElement.clientWidth/2;this.scrollOffset=Math.max(-1*s+this.scrollOffset,t)}_moveToTab(t){const s=()=>{t===null||t===void 0?void 0:t.focus();this._tabsScrollElement.removeEventListener("transitionend",s)};requestAnimationFrame((()=>{const s=this._getTabIndex(t.dataset.value);const i=s===0;const a=s===this.availableValues.length-1;if(i){this.scrollOffset=0;return}if(a){this.scrollOffset=this._maxScrollOffset-8;return}const{x:e,width:c,containerWidth:o,containerX:n}=this._getDimensions(t);const r=e+c;const h=n+o;const b=e<n;const l=r>h;if(b){const t=r-n;const s=t-c;this.scrollOffset=this.scrollOffset-s+4}if(l){this.scrollOffset-=r-h+4}}));const i=this.el.shadowRoot.querySelector(".c-tabs__scroll");i.addEventListener("transitionend",s)}render(){const t={"c-tabs":true,"c-tabs--borderless":this.borderless,"c-tabs--vertical":this.vertical,"c-tabs--overflow":this.isOverflowing,"c-tabs--mobile":this.isMobile,[`c-tabs--justify-${this.justify}`]:true};return i(a,{key:"1594e6244cef2e9b456b21d1659c590f1eadb2a5",role:"tablist",class:t},i("div",{key:"31458e8269c57e5e2f7babc5433ff34877f04dbb",class:"c-tabs__container"},this.isOverflowing&&!this.vertical&&i("c-icon-button",{key:"1db6dbe430b511b9355d9c10e7870a1f55498139",size:"x-small",ghost:true,onClick:this._onBackClick.bind(this)},i("c-icon",{key:"61369a607c9690aee79937fd68fa36b2061a8939",path:c})),i("div",{key:"ba3ecd1acf0d7b7bc8ab2e959836d524526bb317",ref:t=>this._tabsTabsElement=t,class:"c-tabs__tabs",onTouchStart:this._onTouchStart.bind(this),onTouchMove:this._onTouchMove.bind(this),onTouchEnd:this._onTouchEnd.bind(this)},i("div",{key:"55414dcdc7527430cdaea328b3755742b5a837af",ref:t=>this._tabsScrollElement=t,class:"c-tabs__scroll"},i("slot",{key:"eaf5122d6c7376339ce3b8d32439d2c7f152a4b7"}))),this.isOverflowing&&!this.vertical&&i("c-icon-button",{key:"43030acec8acf929f6bac13c074549c4eba6069a",size:"x-small",ghost:true,onClick:this._onForwardClick.bind(this)},i("c-icon",{key:"3a24c0f3e72eb9e1937c22056fbc1a89d4d3317b",path:o}))),i("div",{key:"00665c22dadc4a611ec21281b786ee20780e6cfe",class:"c-tabs__content"},i("slot",{key:"43f1d27ff20842278ae19f44f484313833fc7d03",name:"items"})))}get el(){return e(this)}static get watchers(){return{justify:["onJustificationChange"],value:["onExternalValueChange"],scrollOffset:["onScrollOffsetChange"]}}};h._uniqueId=0;h.style=n;export{h as c_tabs};
2
+ //# sourceMappingURL=p-13976903.entry.js.map