@cscfi/csc-ui 2.2.8 → 2.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/c-autocomplete_34.cjs.entry.js +28 -16
- package/dist/cjs/c-autocomplete_34.cjs.entry.js.map +1 -1
- package/dist/cjs/c-slider.cjs.entry.js +2 -2
- package/dist/cjs/c-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/csc-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/c-input/c-input.js +5 -24
- package/dist/collection/components/c-input/c-input.js.map +1 -1
- package/dist/collection/components/c-select/c-select.js +18 -7
- package/dist/collection/components/c-select/c-select.js.map +1 -1
- package/dist/collection/components/c-slider/c-slider.js +3 -3
- package/dist/collection/components/c-slider/c-slider.js.map +1 -1
- package/dist/collection/components/c-text-field/c-text-field.js +8 -6
- package/dist/collection/components/c-text-field/c-text-field.js.map +1 -1
- package/dist/components/c-autocomplete.js +1 -1
- package/dist/components/c-input.js +1 -1
- package/dist/components/c-select.js +19 -8
- package/dist/components/c-select.js.map +1 -1
- package/dist/components/c-slider.js +3 -3
- package/dist/components/c-slider.js.map +1 -1
- package/dist/components/c-text-field.js +9 -7
- package/dist/components/c-text-field.js.map +1 -1
- package/dist/components/{p-aa75dd47.js → p-fc209a6c.js} +6 -8
- package/dist/components/p-fc209a6c.js.map +1 -0
- package/dist/csc-ui/csc-ui.esm.js +1 -1
- package/dist/csc-ui/csc-ui.esm.js.map +1 -1
- package/dist/csc-ui/{p-af181b9b.entry.js → p-1727bdd2.entry.js} +2 -2
- package/dist/csc-ui/p-1727bdd2.entry.js.map +1 -0
- package/dist/csc-ui/{p-23b2eb59.entry.js → p-77699a28.entry.js} +2 -2
- package/dist/csc-ui/p-77699a28.entry.js.map +1 -0
- package/dist/esm/c-autocomplete_34.entry.js +28 -16
- package/dist/esm/c-autocomplete_34.entry.js.map +1 -1
- package/dist/esm/c-slider.entry.js +2 -2
- package/dist/esm/c-slider.entry.js.map +1 -1
- package/dist/esm/csc-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/c-input/c-input.d.ts +1 -2
- package/dist/types/components/c-slider/c-slider.d.ts +1 -1
- package/dist/types/components/c-text-field/c-text-field.d.ts +2 -2
- package/dist/types/components.d.ts +14 -22
- package/package.json +1 -1
- package/vscode-data.json +4 -8
- package/dist/components/p-aa75dd47.js.map +0 -1
- package/dist/csc-ui/p-23b2eb59.entry.js.map +0 -1
- package/dist/csc-ui/p-af181b9b.entry.js.map +0 -1
|
@@ -13,7 +13,7 @@ const CSlider = class {
|
|
|
13
13
|
this.changeValue = index.createEvent(this, "changeValue", 3);
|
|
14
14
|
this.hostId = undefined;
|
|
15
15
|
this.hostName = undefined;
|
|
16
|
-
this.
|
|
16
|
+
this.ariaLabelInternal = undefined;
|
|
17
17
|
this.max = '100';
|
|
18
18
|
this.min = '0';
|
|
19
19
|
this.step = '1';
|
|
@@ -79,7 +79,7 @@ const CSlider = class {
|
|
|
79
79
|
const styles = {
|
|
80
80
|
'--_c-slider-position': `${this.trackPosition}`,
|
|
81
81
|
};
|
|
82
|
-
return (index.h(index.Host, { key: '
|
|
82
|
+
return (index.h(index.Host, { key: 'f651d4e5c24ecc6e82fb1c8c0fc7b47cd203b543', class: classes, style: styles }, !!this.label && (index.h("label", { key: 'aefca921d5bc6e7241d8cc27709a762949c7f3ab', class: "c-slider__label" }, !!this.label && this.label, " ", this.ariaLabelInternal)), index.h("div", { key: 'ac9f45a3cfb7c6c59ee1ee65d0f7183f8fcfee91', class: "c-slider__wrapper" }, !this.disableTooltip && (index.h("div", { key: '9acda9843545ba5df64bb47b71522e034b6784c1', class: "c-slider__tooltip-wrapper", "aria-hidden": "true" }, index.h("span", { key: '9dfef5adc3012b9eb3fe37c7b1b7bee4c64c09f0', "data-tooltip": `${this._formatNumber(+this.value)}${this.unit}` }))), index.h("input", { key: '4d865c690509b8b121e611a32a9b1e16b71fd490', ref: (el) => (this._inputElement = el), "aria-label": this.ariaLabelInternal || this.label, "aria-valuenow": this.value, "aria-valuetext": `${this.value}${this.unit}`, "aria-valuemin": this.min, "aria-valuemax": this.max, type: "range", name: this.hostName, id: this.hostId || `c-slider__${CSlider._uniqueId}`, min: this.min, max: this.max, step: this.step, disabled: this.disabled, onInput: (event) => this._onInput(event) })), index.h("div", { key: '5a522265227ca1ba5484ec71be16d272eb10b104', class: {
|
|
83
83
|
'c-slider__ticks': true,
|
|
84
84
|
'c-slider__ticks--disabled': this.disabled,
|
|
85
85
|
}, "aria-hidden": "true" }, this.tickPositions.map((position) => (index.h("span", { class: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"c-slider.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,o8MAAo8M,CAAC;AACx9M,sBAAe,UAAU;;MCkBZ,OAAO;;;;;;;mBAoBJ,KAAK;mBAKL,GAAG;oBAKF,GAAG;qBAKe,IAAI;oBAKtB,GAAG;qBAKF,KAAK;sBAKJ,KAAK;8BAKG,KAAK;;wBAUX,KAAK;wBAKL,IAAI;;6BAUY,EAAE;;IAOrC,eAAe;QACb,IAAI,CAAC,uBAAuB,EAAE,CAAC;KAChC;IAGD,aAAa,CAAC,KAAK;QACjB,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAE/B,qBAAqB,CAAC;YACpB,IAAI,CAAC,aAAa,CAAC,KAAK,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;SAC7C,CAAC,CAAC;KACJ;IAEO,aAAa,CAAC,MAAc,EAAE,QAAQ,GAAG,CAAC;QAChD,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;YACpC,qBAAqB,EAAE,QAAQ;YAC/B,qBAAqB,EAAE,QAAQ;SAChC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KACnB;IAEO,uBAAuB;QAC7B,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,IAAI,KAAK,C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ACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;aAC3C,iBACW,MAAM,IAEjB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,MAC/BA,kBACE,KAAK,EAAE;gBACL,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;gBAC7C,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,gBACW,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC/C,CACT,CAAC,CACE,CACD,EACP;KACH;;;;;;AA/Hc,iBAAS,GAAG,CAAH,CAAK;;;;;","names":["h","Host"],"sources":["src/components/c-slider/c-slider.scss?tag=c-slider&encapsulation=shadow","src/components/c-slider/c-slider.tsx"],"sourcesContent":[":host(c-slider) {\n /**\n * @prop --c-slider-background-color-active-disabled: Active disabled slider background color\n * @prop --c-slider-background-color-active: Slider active background color\n * @prop --c-slider-background-color-disabled: Disabled slider background color\n * @prop --c-slider-background-color: Slider background color\n * @prop --c-slider-thumb-background-color-disabled: Disabled slider thumb background color\n * @prop --c-slider-thumb-background-color-hover: Slider thumb background color on hover\n * @prop --c-slider-thumb-background-color: Slider thumb background color\n * @prop --c-slider-tick-color-active: Slider active tick color\n * @prop --c-slider-tick-color: Slider tick color\n * @prop --c-slider-tooltip-background-color: Slider tooltip background color\n * @prop --c-slider-tooltip-text-color: Slider tooltip text color\n */\n --_c-slider-background-color-active-disabled: var(--c-slider-background-color-active-disabled, var(--c-tertiary-400));\n --_c-slider-background-color-active: var(--c-slider-background-color-active, var(--c-primary-500));\n --_c-slider-background-color-disabled: var(--c-slider-background-color-disabled, rgba(var(--c-tertiary-rgb), 0.2));\n --_c-slider-background-color: var(--c-slider-background-color, rgba(var(--c-tertiary-rgb), 0.2));\n --_c-slider-thumb-background-color-disabled: var(--c-slider-thumb-background-color-disabled, var(--c-tertiary-500));\n --_c-slider-thumb-background-color-hover: var(--c-slider-thumb-background-color-hover, rgba(var(--c-primary-rgb), 0.2));\n --_c-slider-thumb-background-color: var(--c-slider-thumb-background-color, var(--c-primary-600));\n --_c-slider-tick-color-active: var(--c-slider-tick-color-active, var(--c-white));\n --_c-slider-tick-color: var(--c-slider-tick-color, var(--c-tertiary-500));\n --_c-slider-tooltip-background-color: var(--c-slider-tooltip-background-color, var(--c-primary-900));\n --_c-slider-tooltip-text-color: var(--c-slider-tooltip-text-color, var(--c-white));\n \n // private\n --_c-slider-outline: none;\n --_c-slider-thumb-scale: 1;\n --_c-slider-thumb-shadow-size: 8px;\n --_c-slider-tooltip-opacity: 0;\n --_c-slider-tooltip-y: -4px;\n\n $this: &;\n\n display: block;\n isolation: isolate;\n padding-block: 8px;\n\n .c-slider__label {\n display: block;\n margin-bottom: 16px;\n margin-top: -8px;\n\n span.required {\n color: var(--c-error-600);\n }\n }\n\n .c-slider__wrapper {\n padding-inline: 10px;\n position: relative;\n\n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n padding-inline: 0;\n }\n }\n \n input[type=\"range\"] {\n align-items: center;\n appearance: none;\n background-color: transparent;\n display: flex;\n height: 8px;\n margin: 0;\n position: relative;\n width: 100%;\n\n &:focus-visible {\n --_c-slider-outline: 2px var(--_c-slider-thumb-background-color) solid;\n \n outline: none;\n }\n\n &::-webkit-slider-runnable-track {\n width: calc(100% - 20px);\n margin: 0 -20px;\n }\n\n &:active {\n --_c-slider-thumb-scale: 1.33;\n --_c-slider-thumb-shadow-size: 0;\n }\n \n &::-webkit-slider-container {\n display: flex;\n padding: 0 10px;\n }\n \n &::-webkit-slider-thumb {\n appearance: none;\n background-color: var(--_c-slider-thumb-background-color);\n border-radius: 100%;\n cursor: pointer;\n height: 24px;\n outline-offset: 4px;\n outline: var(--_c-slider-outline);\n position: relative;\n transform-origin: center;\n transform: scale(var(--_c-slider-thumb-scale));\n transition:\n box-shadow .3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 24px;\n z-index: 1;\n \n &:hover {\n box-shadow: 0 0 0 var(--_c-slider-thumb-shadow-size) var(--_c-slider-thumb-background-color-hover);\n }\n }\n\n &[disabled] {\n --_c-slider-background-color: var(--_c-slider-background-color-disabled);\n --_c-slider-background-color-active: var(--_c-slider-background-color-active-disabled);\n --_c-slider-thumb-background-color: var(--_c-slider-thumb-background-color-disabled);\n\n pointer-events: none;\n }\n }\n\n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n input[type=\"range\"]::-moz-range-thumb {\n appearance: none;\n background-color: var(--_c-slider-thumb-background-color);\n border-radius: 100%;\n border: 0;\n cursor: pointer;\n height: 24px;\n outline-offset: 2px;\n outline: var(--_c-slider-outline);\n position: relative;\n transform-origin: center;\n transform: scale(var(--_c-slider-thumb-scale));\n transition:\n box-shadow .3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 24px;\n z-index: 1;\n \n &:hover {\n box-shadow: 0 0 0 var(--_c-slider-thumb-shadow-size) var(--_c-slider-thumb-background-color-hover);\n }\n }\n }\n\n // tooltip\n .c-slider__tooltip-wrapper {\n height: 0;\n margin-inline: 2px;\n position: relative;\n \n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n margin-inline: 12px;\n }\n\n span {\n align-items: center;\n border-radius: 50%;\n box-sizing: border-box;\n display: inline-flex;\n height: 24px;\n justify-content: center;\n left: calc(1% * var(--_c-slider-position));\n opacity: var(--_c-slider-tooltip-opacity);\n pointer-events: none;\n position: absolute;\n transform: translate(-50%, var(--_c-slider-tooltip-y));\n transition:\n opacity .3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 24px;\n\n &::before {\n align-items: center;\n background: var(--_c-slider-tooltip-background-color);\n border-radius: 4px;\n bottom: 100%;\n color: var(--_c-slider-tooltip-text-color);\n content: attr(data-tooltip);\n display: inline-flex;\n flex-wrap: nowrap;\n height: 30px;\n padding: 6px;\n position: absolute;\n top: -42px;\n white-space: nowrap;\n }\n\n &::after {\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid var(--_c-slider-tooltip-background-color);\n content: \"\";\n height: 0;\n left: 50%;\n margin: -42px 0 0 -6px;\n position: absolute;\n width: 0;\n }\n }\n }\n\n .c-slider__ticks {\n --c-slider-tick-color: var(--c-tertiary-400);\n\n align-items: center;\n background: linear-gradient(\n to right,\n var(--_c-slider-background-color-active) calc(1% * var(--_c-slider-position)),\n var(--_c-slider-background-color) calc(1% * var(--_c-slider-position)),\n );\n border-radius: 100vw;\n display: flex;\n height: 8px;\n justify-content: space-between;\n margin: -8px auto 0;\n pointer-events: none;\n position: relative;\n width: calc(100% - 16px);\n z-index: -1;\n\n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n width: calc(100% - 20px);\n }\n\n &--disabled {\n --_c-slider-background-color-active: var(--_c-slider-background-color-active-disabled);\n }\n\n span {\n border-radius: 50%;\n font-size: 12px;\n height: 4px;\n padding: 0;\n position: relative;\n width: 4px;\n \n \n &.ticks {\n background-color: var(--_c-slider-tick-color);\n\n &.active {\n background-color: var(--_c-slider-tick-color-active);\n }\n\n &:first-child,\n &:last-child {\n background-color: transparent;\n }\n }\n\n &.labels {\n &::after {\n content: attr(data-value);\n left: 2px;\n position: absolute;\n top: 16px;\n transform: translate(-50%);\n }\n }\n }\n }\n}\n\n:host(c-slider.c-slider--labels) {\n padding-bottom: 24px;\n}\n\n:host(c-slider:focus-within),\n:host(c-slider:hover) {\n --_c-slider-tooltip-opacity: 1;\n --_c-slider-tooltip-y: -8px;\n}\n","import {\n Component,\n Event,\n EventEmitter,\n Host,\n Prop,\n State,\n Watch,\n h,\n} from '@stencil/core';\n\n/**\n * @group Form\n */\n@Component({\n tag: 'c-slider',\n styleUrl: 'c-slider.scss',\n shadow: true,\n})\nexport class CSlider {\n /**\n * Id of the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the element\n */\n @Prop({ attribute: 'name' }) hostName: string;\n\n /**\n * Aria label\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop({ attribute: 'aria-label' }) ariaLabel: string;\n\n /**\n * Max value\n */\n @Prop() max = '100';\n\n /**\n * Min value\n */\n @Prop() min = '0';\n\n /**\n * Step\n */\n @Prop() step = '1';\n\n /**\n * Value\n */\n @Prop() value: string | number = '50';\n\n /**\n * Unit\n */\n @Prop() unit = '%';\n\n /**\n * Thow ticks\n */\n @Prop() ticks = false;\n\n /**\n * Show tick labels\n */\n @Prop() labels = false;\n\n /**\n * Disable tooltip\n */\n @Prop() disableTooltip = false;\n\n /**\n * Label of the slider\n */\n @Prop() label: string;\n\n /**\n * Disable the slider\n */\n @Prop() disabled = false;\n\n /**\n * Segment count\n */\n @Prop() segments = '10';\n\n /**\n * Emit value changes to parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n @State() trackPosition: number;\n\n @State() tickPositions: string[] = [];\n\n private static _uniqueId = 0;\n\n private _inputElement: HTMLInputElement;\n\n @Watch('segments')\n onSegmentChange() {\n this._calculateTickPositions();\n }\n\n @Watch('value')\n onValueChange(value) {\n this._calculateTrackPosition();\n\n requestAnimationFrame(() => {\n this._inputElement.value = value.toString();\n });\n }\n\n private _formatNumber(number: number, decimals = 0) {\n return new Intl.NumberFormat('fi-FI', {\n maximumFractionDigits: decimals,\n minimumFractionDigits: decimals,\n }).format(number);\n }\n\n private _calculateTickPositions() {\n this.tickPositions = [...new Array(+this.segments + 1)].map((_, index) => {\n const fraction = +this.max / +this.segments;\n\n return (index * fraction).toString();\n });\n }\n\n private _calculateTrackPosition() {\n this.trackPosition =\n ((+this.value - +this.min) / (+this.max - +this.min)) * 100;\n }\n\n private _onInput(event: Event) {\n const { value } = event.target as HTMLInputElement;\n\n this.changeValue.emit(typeof this.value === 'number' ? +value : value);\n\n this._calculateTrackPosition();\n }\n\n private _isActive(value: number) {\n return this.trackPosition >= (100 / +this.max) * value;\n }\n\n componentWillLoad() {\n CSlider._uniqueId += 1;\n }\n\n componentDidLoad() {\n this._calculateTrackPosition();\n\n this._calculateTickPositions();\n\n requestAnimationFrame(() => {\n this._inputElement.value = this.value.toString();\n });\n }\n\n render() {\n const classes = {\n 'c-slider': true,\n 'c-slider--labels': this.labels,\n };\n\n const styles = {\n '--_c-slider-position': `${this.trackPosition}`,\n };\n\n return (\n <Host class={classes} style={styles}>\n {!!this.label && (\n <label class=\"c-slider__label\">{!!this.label && this.label}</label>\n )}\n\n <div class=\"c-slider__wrapper\">\n {!this.disableTooltip && (\n <div class=\"c-slider__tooltip-wrapper\" aria-hidden=\"true\">\n <span\n data-tooltip={`${this._formatNumber(+this.value)}${this.unit}`}\n ></span>\n </div>\n )}\n\n <input\n ref={(el) => (this._inputElement = el)}\n aria-label={this.ariaLabel || this.label}\n aria-valuenow={this.value}\n aria-valuetext={`${this.value}${this.unit}`}\n aria-valuemin={this.min}\n aria-valuemax={this.max}\n type=\"range\"\n name={this.hostName}\n id={this.hostId || `c-slider__${CSlider._uniqueId}`}\n min={this.min}\n max={this.max}\n step={this.step}\n disabled={this.disabled}\n onInput={(event) => this._onInput(event)}\n />\n </div>\n\n <div\n class={{\n 'c-slider__ticks': true,\n 'c-slider__ticks--disabled': this.disabled,\n }}\n aria-hidden=\"true\"\n >\n {this.tickPositions.map((position) => (\n <span\n class={{\n active: this._isActive(Math.round(+position)),\n ticks: this.ticks,\n labels: this.labels,\n }}\n data-value={this._formatNumber(Math.round(+position))}\n ></span>\n ))}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"c-slider.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,o8MAAo8M,CAAC;AACx9M,sBAAe,UAAU;;MCkBZ,OAAO;;;;;;;mBAmBJ,KAAK;mBAKL,GAAG;oBAKF,GAAG;qBAKe,IA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CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,gBAC1B,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,KAAK,mBACjC,IAAI,CAAC,KAAK,oBACT,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,mBAC5B,IAAI,CAAC,GAAG,mBACR,IAAI,CAAC,GAAG,EACvB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,EAAE,EAAE,IAAI,CAAC,MAAM,IAAI,aAAa,OAAO,CAAC,SAAS,EAAE,EACnD,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GACxC,CACE,EAENA,kEACE,KAAK,EAAE;gBACL,iBAAiB,EAAE,IAAI;gBACvB,2BAA2B,EAAE,IAAI,CAAC,QAAQ;aAC3C,iBACW,MAAM,IAEjB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,QAAQ,MAC/BA,kBACE,KAAK,EAAE;gBACL,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;gBAC7C,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,gBACW,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC,GAC/C,CACT,CAAC,CACE,CACD,EACP;KACH;;;;;;AAjIc,iBAAS,GAAG,CAAH,CAAK;;;;;","names":["h","Host"],"sources":["src/components/c-slider/c-slider.scss?tag=c-slider&encapsulation=shadow","src/components/c-slider/c-slider.tsx"],"sourcesContent":[":host(c-slider) {\n /**\n * @prop --c-slider-background-color-active-disabled: Active disabled slider background color\n * @prop --c-slider-background-color-active: Slider active background color\n * @prop --c-slider-background-color-disabled: Disabled slider background color\n * @prop --c-slider-background-color: Slider background color\n * @prop --c-slider-thumb-background-color-disabled: Disabled slider thumb background color\n * @prop --c-slider-thumb-background-color-hover: Slider thumb background color on hover\n * @prop --c-slider-thumb-background-color: Slider thumb background color\n * @prop --c-slider-tick-color-active: Slider active tick color\n * @prop --c-slider-tick-color: Slider tick color\n * @prop --c-slider-tooltip-background-color: Slider tooltip background color\n * @prop --c-slider-tooltip-text-color: Slider tooltip text color\n */\n --_c-slider-background-color-active-disabled: var(--c-slider-background-color-active-disabled, var(--c-tertiary-400));\n --_c-slider-background-color-active: var(--c-slider-background-color-active, var(--c-primary-500));\n --_c-slider-background-color-disabled: var(--c-slider-background-color-disabled, rgba(var(--c-tertiary-rgb), 0.2));\n --_c-slider-background-color: var(--c-slider-background-color, rgba(var(--c-tertiary-rgb), 0.2));\n --_c-slider-thumb-background-color-disabled: var(--c-slider-thumb-background-color-disabled, var(--c-tertiary-500));\n --_c-slider-thumb-background-color-hover: var(--c-slider-thumb-background-color-hover, rgba(var(--c-primary-rgb), 0.2));\n --_c-slider-thumb-background-color: var(--c-slider-thumb-background-color, var(--c-primary-600));\n --_c-slider-tick-color-active: var(--c-slider-tick-color-active, var(--c-white));\n --_c-slider-tick-color: var(--c-slider-tick-color, var(--c-tertiary-500));\n --_c-slider-tooltip-background-color: var(--c-slider-tooltip-background-color, var(--c-primary-900));\n --_c-slider-tooltip-text-color: var(--c-slider-tooltip-text-color, var(--c-white));\n \n // private\n --_c-slider-outline: none;\n --_c-slider-thumb-scale: 1;\n --_c-slider-thumb-shadow-size: 8px;\n --_c-slider-tooltip-opacity: 0;\n --_c-slider-tooltip-y: -4px;\n\n $this: &;\n\n display: block;\n isolation: isolate;\n padding-block: 8px;\n\n .c-slider__label {\n display: block;\n margin-bottom: 16px;\n margin-top: -8px;\n\n span.required {\n color: var(--c-error-600);\n }\n }\n\n .c-slider__wrapper {\n padding-inline: 10px;\n position: relative;\n\n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n padding-inline: 0;\n }\n }\n \n input[type=\"range\"] {\n align-items: center;\n appearance: none;\n background-color: transparent;\n display: flex;\n height: 8px;\n margin: 0;\n position: relative;\n width: 100%;\n\n &:focus-visible {\n --_c-slider-outline: 2px var(--_c-slider-thumb-background-color) solid;\n \n outline: none;\n }\n\n &::-webkit-slider-runnable-track {\n width: calc(100% - 20px);\n margin: 0 -20px;\n }\n\n &:active {\n --_c-slider-thumb-scale: 1.33;\n --_c-slider-thumb-shadow-size: 0;\n }\n \n &::-webkit-slider-container {\n display: flex;\n padding: 0 10px;\n }\n \n &::-webkit-slider-thumb {\n appearance: none;\n background-color: var(--_c-slider-thumb-background-color);\n border-radius: 100%;\n cursor: pointer;\n height: 24px;\n outline-offset: 4px;\n outline: var(--_c-slider-outline);\n position: relative;\n transform-origin: center;\n transform: scale(var(--_c-slider-thumb-scale));\n transition:\n box-shadow .3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 24px;\n z-index: 1;\n \n &:hover {\n box-shadow: 0 0 0 var(--_c-slider-thumb-shadow-size) var(--_c-slider-thumb-background-color-hover);\n }\n }\n\n &[disabled] {\n --_c-slider-background-color: var(--_c-slider-background-color-disabled);\n --_c-slider-background-color-active: var(--_c-slider-background-color-active-disabled);\n --_c-slider-thumb-background-color: var(--_c-slider-thumb-background-color-disabled);\n\n pointer-events: none;\n }\n }\n\n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n input[type=\"range\"]::-moz-range-thumb {\n appearance: none;\n background-color: var(--_c-slider-thumb-background-color);\n border-radius: 100%;\n border: 0;\n cursor: pointer;\n height: 24px;\n outline-offset: 2px;\n outline: var(--_c-slider-outline);\n position: relative;\n transform-origin: center;\n transform: scale(var(--_c-slider-thumb-scale));\n transition:\n box-shadow .3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 24px;\n z-index: 1;\n \n &:hover {\n box-shadow: 0 0 0 var(--_c-slider-thumb-shadow-size) var(--_c-slider-thumb-background-color-hover);\n }\n }\n }\n\n // tooltip\n .c-slider__tooltip-wrapper {\n height: 0;\n margin-inline: 2px;\n position: relative;\n \n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n margin-inline: 12px;\n }\n\n span {\n align-items: center;\n border-radius: 50%;\n box-sizing: border-box;\n display: inline-flex;\n height: 24px;\n justify-content: center;\n left: calc(1% * var(--_c-slider-position));\n opacity: var(--_c-slider-tooltip-opacity);\n pointer-events: none;\n position: absolute;\n transform: translate(-50%, var(--_c-slider-tooltip-y));\n transition:\n opacity .3s cubic-bezier(0.075, 0.82, 0.165, 1),\n transform .3s cubic-bezier(0.075, 0.82, 0.165, 1);\n width: 24px;\n\n &::before {\n align-items: center;\n background: var(--_c-slider-tooltip-background-color);\n border-radius: 4px;\n bottom: 100%;\n color: var(--_c-slider-tooltip-text-color);\n content: attr(data-tooltip);\n display: inline-flex;\n flex-wrap: nowrap;\n height: 30px;\n padding: 6px;\n position: absolute;\n top: -42px;\n white-space: nowrap;\n }\n\n &::after {\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid var(--_c-slider-tooltip-background-color);\n content: \"\";\n height: 0;\n left: 50%;\n margin: -42px 0 0 -6px;\n position: absolute;\n width: 0;\n }\n }\n }\n\n .c-slider__ticks {\n --c-slider-tick-color: var(--c-tertiary-400);\n\n align-items: center;\n background: linear-gradient(\n to right,\n var(--_c-slider-background-color-active) calc(1% * var(--_c-slider-position)),\n var(--_c-slider-background-color) calc(1% * var(--_c-slider-position)),\n );\n border-radius: 100vw;\n display: flex;\n height: 8px;\n justify-content: space-between;\n margin: -8px auto 0;\n pointer-events: none;\n position: relative;\n width: calc(100% - 16px);\n z-index: -1;\n\n /** Mozilla Firefox */\n @-moz-document url-prefix() {\n width: calc(100% - 20px);\n }\n\n &--disabled {\n --_c-slider-background-color-active: var(--_c-slider-background-color-active-disabled);\n }\n\n span {\n border-radius: 50%;\n font-size: 12px;\n height: 4px;\n padding: 0;\n position: relative;\n width: 4px;\n \n \n &.ticks {\n background-color: var(--_c-slider-tick-color);\n\n &.active {\n background-color: var(--_c-slider-tick-color-active);\n }\n\n &:first-child,\n &:last-child {\n background-color: transparent;\n }\n }\n\n &.labels {\n &::after {\n content: attr(data-value);\n left: 2px;\n position: absolute;\n top: 16px;\n transform: translate(-50%);\n }\n }\n }\n }\n}\n\n:host(c-slider.c-slider--labels) {\n padding-bottom: 24px;\n}\n\n:host(c-slider:focus-within),\n:host(c-slider:hover) {\n --_c-slider-tooltip-opacity: 1;\n --_c-slider-tooltip-y: -8px;\n}\n","import {\n Component,\n Event,\n EventEmitter,\n Host,\n Prop,\n State,\n Watch,\n h,\n} from '@stencil/core';\n\n/**\n * @group Form\n */\n@Component({\n tag: 'c-slider',\n styleUrl: 'c-slider.scss',\n shadow: true,\n})\nexport class CSlider {\n /**\n * Id of the element\n */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the element\n */\n @Prop({ attribute: 'name' }) hostName: string;\n\n /**\n * Aria label\n */\n @Prop({ attribute: 'aria-label' }) ariaLabelInternal: string;\n\n /**\n * Max value\n */\n @Prop() max = '100';\n\n /**\n * Min value\n */\n @Prop() min = '0';\n\n /**\n * Step\n */\n @Prop() step = '1';\n\n /**\n * Value\n */\n @Prop() value: string | number = '50';\n\n /**\n * Unit\n */\n @Prop() unit = '%';\n\n /**\n * Thow ticks\n */\n @Prop() ticks = false;\n\n /**\n * Show tick labels\n */\n @Prop() labels = false;\n\n /**\n * Disable tooltip\n */\n @Prop() disableTooltip = false;\n\n /**\n * Label of the slider\n */\n @Prop() label: string;\n\n /**\n * Disable the slider\n */\n @Prop() disabled = false;\n\n /**\n * Segment count\n */\n @Prop() segments = '10';\n\n /**\n * Emit value changes to parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n @State() trackPosition: number;\n\n @State() tickPositions: string[] = [];\n\n private static _uniqueId = 0;\n\n private _inputElement: HTMLInputElement;\n\n @Watch('segments')\n onSegmentChange() {\n this._calculateTickPositions();\n }\n\n @Watch('value')\n onValueChange(value) {\n this._calculateTrackPosition();\n\n requestAnimationFrame(() => {\n this._inputElement.value = value.toString();\n });\n }\n\n private _formatNumber(number: number, decimals = 0) {\n return new Intl.NumberFormat('fi-FI', {\n maximumFractionDigits: decimals,\n minimumFractionDigits: decimals,\n }).format(number);\n }\n\n private _calculateTickPositions() {\n this.tickPositions = [...new Array(+this.segments + 1)].map((_, index) => {\n const fraction = +this.max / +this.segments;\n\n return (index * fraction).toString();\n });\n }\n\n private _calculateTrackPosition() {\n this.trackPosition =\n ((+this.value - +this.min) / (+this.max - +this.min)) * 100;\n }\n\n private _onInput(event: Event) {\n const { value } = event.target as HTMLInputElement;\n\n this.changeValue.emit(typeof this.value === 'number' ? +value : value);\n\n this._calculateTrackPosition();\n }\n\n private _isActive(value: number) {\n return this.trackPosition >= (100 / +this.max) * value;\n }\n\n componentWillLoad() {\n CSlider._uniqueId += 1;\n }\n\n componentDidLoad() {\n this._calculateTrackPosition();\n\n this._calculateTickPositions();\n\n requestAnimationFrame(() => {\n this._inputElement.value = this.value.toString();\n });\n }\n\n render() {\n const classes = {\n 'c-slider': true,\n 'c-slider--labels': this.labels,\n };\n\n const styles = {\n '--_c-slider-position': `${this.trackPosition}`,\n };\n\n return (\n <Host class={classes} style={styles}>\n {!!this.label && (\n <label class=\"c-slider__label\">\n {!!this.label && this.label} {this.ariaLabelInternal}\n </label>\n )}\n\n <div class=\"c-slider__wrapper\">\n {!this.disableTooltip && (\n <div class=\"c-slider__tooltip-wrapper\" aria-hidden=\"true\">\n <span\n data-tooltip={`${this._formatNumber(+this.value)}${this.unit}`}\n ></span>\n </div>\n )}\n\n <input\n ref={(el) => (this._inputElement = el)}\n aria-label={this.ariaLabelInternal || this.label}\n aria-valuenow={this.value}\n aria-valuetext={`${this.value}${this.unit}`}\n aria-valuemin={this.min}\n aria-valuemax={this.max}\n type=\"range\"\n name={this.hostName}\n id={this.hostId || `c-slider__${CSlider._uniqueId}`}\n min={this.min}\n max={this.max}\n step={this.step}\n disabled={this.disabled}\n onInput={(event) => this._onInput(event)}\n />\n </div>\n\n <div\n class={{\n 'c-slider__ticks': true,\n 'c-slider__ticks--disabled': this.disabled,\n }}\n aria-hidden=\"true\"\n >\n {this.tickPositions.map((position) => (\n <span\n class={{\n active: this._isActive(Math.round(+position)),\n ticks: this.ticks,\n labels: this.labels,\n }}\n data-value={this._formatNumber(Math.round(+position))}\n ></span>\n ))}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
package/dist/cjs/csc-ui.cjs.js
CHANGED
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[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\"]}]]],[\"c-tabs.cjs\",[[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\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[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]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[1,\"c-slider\",{\"hostId\":[1,\"id\"],\"hostName\":[1,\"name\"],\"ariaLabel\":[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\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[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\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[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],\"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\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"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]}],[65,\"c-otp-input\",{\"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\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[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\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]},null,{\"value\":[\"onValueChange\"]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[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\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"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],\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"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]}]]],[\"c-menu_2.cjs\",[[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\"]}]]],[\"c-pagination.cjs\",[[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\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
22
|
+
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[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\"]}]]],[\"c-tabs.cjs\",[[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\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[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]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[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\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[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\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[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],\"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],\"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]}],[65,\"c-otp-input\",{\"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\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[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\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]},null,{\"value\":[\"onValueChange\"]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[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\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"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],\"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]}]]],[\"c-menu_2.cjs\",[[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\"]}]]],[\"c-pagination.cjs\",[[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\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[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\"]}]]],[\"c-tabs.cjs\",[[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\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[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]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[1,\"c-slider\",{\"hostId\":[1,\"id\"],\"hostName\":[1,\"name\"],\"ariaLabel\":[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\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[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\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[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],\"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\",{\"autofocus\":[4],\"autocapitalize\":[1],\"autocorrect\":[1],\"autocomplete\":[1],\"disabled\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"trimWhitespace\":[4,\"trim-whitespace\"],\"label\":[1],\"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]}],[65,\"c-otp-input\",{\"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\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[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\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]},null,{\"value\":[\"onValueChange\"]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[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\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"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],\"autofocus\":[4],\"disabled\":[4],\"form\":[4],\"hideDetails\":[4,\"hide-details\"],\"hint\":[1],\"hostId\":[1,\"id\"],\"inputId\":[1,\"input-id\"],\"items\":[16],\"itemsPerPage\":[2,\"items-per-page\"],\"label\":[1],\"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]}]]],[\"c-menu_2.cjs\",[[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\"]}]]],[\"c-pagination.cjs\",[[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\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
11
|
+
return index.bootstrapLazy(JSON.parse("[[\"c-data-table.cjs\",[[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\"]}]]],[\"c-tabs.cjs\",[[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\"]}]]],[\"c-tag.cjs\",[[1,\"c-tag\",{\"active\":[4],\"block\":[4],\"fit\":[4],\"flat\":[4],\"closeable\":[4],\"badge\":[8],\"size\":[1]}]]],[\"c-swiper.cjs\",[[4,\"c-swiper\",{\"value\":[1544],\"elementId\":[1,\"id\"],\"isBeginning\":[32],\"isEnd\":[32],\"statusText\":[32]},[[0,\"changeValue\",\"onTabClick\"],[2,\"keyup\",\"handleKeyUp\"]]]]],[\"c-toasts.cjs\",[[1,\"c-toasts\",{\"absolute\":[4],\"horizontal\":[1],\"vertical\":[1],\"messages\":[32],\"addToast\":[64],\"removeToast\":[64]}]]],[\"c-accordion-item.cjs\",[[1,\"c-accordion-item\",{\"collapsable\":[4],\"heading\":[1],\"value\":[8],\"expanded\":[4],\"outlined\":[4],\"hasCustomHeader\":[32],\"hasIcon\":[32]},[[2,\"keydown\",\"handleKeyDown\"],[0,\"changeValue\",\"stop\"]]]]],[\"c-list-item.cjs\",[[1,\"c-list-item\",{\"active\":[4],\"disabled\":[4],\"disabledByParent\":[4,\"disabled-by-parent\"],\"hoverable\":[4],\"ripple\":[4],\"href\":[1],\"target\":[1]},null,{\"active\":[\"onActiveChange\"]}]]],[\"c-login-card-actions.cjs\",[[1,\"c-login-card-actions\",{\"align\":[1],\"justify\":[1]}]]],[\"c-swiper-tab.cjs\",[[1,\"c-swiper-tab\",{\"disabled\":[4],\"active\":[4],\"label\":[1],\"hostId\":[1,\"id\"],\"setsize\":[2],\"position\":[2],\"value\":[8]},[[1,\"click\",\"onTabClick\"]]]]],[\"c-tab.cjs\",[[1,\"c-tab\",{\"active\":[4],\"disabled\":[4],\"hostId\":[1,\"id\"],\"position\":[2],\"setsize\":[2],\"value\":[8]},[[1,\"focus\",\"onTabFocus\"],[1,\"keydown\",\"handleKeydown\"]]]]],[\"c-accordion.cjs\",[[1,\"c-accordion\",{\"value\":[1032],\"mandatory\":[4],\"multiple\":[4],\"outlined\":[4]},[[1,\"itemChange\",\"onAccordionItemChange\"]],{\"value\":[\"watchPropHandler\"]}]]],[\"c-alert.cjs\",[[1,\"c-alert\",{\"type\":[1]}]]],[\"c-link.cjs\",[[1,\"c-link\",{\"href\":[1],\"underline\":[4],\"target\":[1],\"weight\":[1]}]]],[\"c-list.cjs\",[[0,\"c-list\",{\"disabled\":[4]},null,{\"disabled\":[\"onDisabledChange\"]}]]],[\"c-list-item-title.cjs\",[[1,\"c-list-item-title\",{\"active\":[4]}]]],[\"c-login-button.cjs\",[[1,\"c-login-button\",{\"href\":[1],\"src\":[1],\"alt\":[1]}]]],[\"c-login-buttons.cjs\",[[1,\"c-login-buttons\"]]],[\"c-login-card.cjs\",[[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]}]]],[\"c-login-card-content.cjs\",[[1,\"c-login-card-content\"]]],[\"c-login-card-title.cjs\",[[1,\"c-login-card-title\"]]],[\"c-modal.cjs\",[[1,\"c-modal\",{\"value\":[4],\"dismissable\":[4],\"width\":[8],\"zIndex\":[2,\"z-index\"],\"disableBackdropBlur\":[4,\"disable-backdrop-blur\"],\"innerValue\":[32],\"animateModal\":[32]},null,{\"value\":[\"onValueChange\"]}]]],[\"c-option-value.cjs\",[[1,\"c-option-value\"]]],[\"c-progress-bar.cjs\",[[1,\"c-progress-bar\",{\"value\":[2],\"hideDetails\":[4,\"hide-details\"],\"singleLine\":[4,\"single-line\"],\"label\":[1],\"indeterminate\":[4]}]]],[\"c-row.cjs\",[[1,\"c-row\",{\"gap\":[2],\"nowrap\":[4],\"align\":[1],\"justify\":[1]}]]],[\"c-slider.cjs\",[[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\"]}]]],[\"c-status.cjs\",[[1,\"c-status\",{\"type\":[1]}]]],[\"c-step.cjs\",[[1,\"c-step\",{\"complete\":[4],\"current\":[4]}]]],[\"c-steps.cjs\",[[1,\"c-steps\",{\"value\":[8],\"isMobile\":[32],\"label\":[32]},null,{\"value\":[\"watchPropHandler\"]}]]],[\"c-tab-buttons.cjs\",[[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\"]}]]],[\"c-tab-item.cjs\",[[1,\"c-tab-item\",{\"value\":[8],\"active\":[4]}]]],[\"c-tab-items.cjs\",[[1,\"c-tab-items\",{\"value\":[8],\"disableAnimation\":[4,\"disable-animation\"],\"activeTab\":[32]},[[1,\"contentChange\",\"tabContentChangeHandler\"]],{\"value\":[\"onValueChange\"]}]]],[\"c-tags.cjs\",[[1,\"c-tags\",{\"size\":[1]}]]],[\"c-autocomplete_34.cjs\",[[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],\"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],\"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]}],[65,\"c-otp-input\",{\"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\"]}],[1,\"c-card-content\"],[1,\"c-card-title\"],[1,\"c-csc-logo\",{\"width\":[2]}],[1,\"c-main\",{\"disableLayout\":[4,\"disable-layout\"]}],[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\"],[65,\"c-switch\",{\"checked\":[1028],\"value\":[8],\"trueValue\":[8,\"true-value\"],\"falseValue\":[8,\"false-value\"],\"hostDisabled\":[4,\"disabled\"],\"hostId\":[1,\"id\"],\"required\":[4],\"hasLabel\":[32]},null,{\"value\":[\"onValueChange\"]}],[4,\"c-table\",{\"mobileBreakpoint\":[2,\"mobile-breakpoint\"],\"responsive\":[4]}],[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\"]},[[1,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"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],\"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]}]]],[\"c-menu_2.cjs\",[[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\"]}]]],[\"c-pagination.cjs\",[[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\"]}]]],[\"c-toast.cjs\",[[1,\"c-toast\",{\"message\":[16],\"closeToast\":[64]}]]]]"), options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -36,9 +36,8 @@ export class CInput {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
this.active = false;
|
|
39
|
-
this.
|
|
39
|
+
this.automaticFocus = false;
|
|
40
40
|
this.disabled = false;
|
|
41
|
-
this.form = false;
|
|
42
41
|
this.hideDetails = false;
|
|
43
42
|
this.hint = '';
|
|
44
43
|
this.hostId = undefined;
|
|
@@ -90,7 +89,7 @@ export class CInput {
|
|
|
90
89
|
}
|
|
91
90
|
componentDidLoad() {
|
|
92
91
|
var _a, _b, _c, _d;
|
|
93
|
-
if (this.
|
|
92
|
+
if (this.automaticFocus) {
|
|
94
93
|
setTimeout(() => {
|
|
95
94
|
this._onFocus(false);
|
|
96
95
|
}, 500);
|
|
@@ -207,9 +206,9 @@ export class CInput {
|
|
|
207
206
|
filled: !!this.value,
|
|
208
207
|
[`c-input--${this.variant}`]: true,
|
|
209
208
|
};
|
|
210
|
-
return (h(Host, { key: '
|
|
209
|
+
return (h(Host, { key: '3eaed9b18bae4e0d5891d3aaf05258a2f004d510', disabled: this.disabled }, h("div", { key: '91f379e0225ec22f735ecfb0027d69eeeed782d9', id: 'announce-' + this.inputId, class: "visuallyhidden", "aria-live": "polite", "aria-atomic": "true" }, this.statusText), h("div", { key: 'b88a244f97c62653ab6f26dbf907849bd1adbf4c', class: containerClasses }, h("div", { key: '85244770af3e46cbaf8da75304c2af39bccd32f8', class: "c-input__control" }, h("div", { key: '74e11458e36a8fc2efcafff74af9b6b00ed723ed', class: "c-input__slot", onClick: () => this._onFocus() }, this._renderBorders(), h("div", { key: 'da43ec53065b0961700ae79f624a1652deaf895e', class: "c-input__field", style: {
|
|
211
210
|
'--_c-input-label-position': this.preSlotWidth + 'px',
|
|
212
|
-
} }, h("slot", { key: '
|
|
211
|
+
} }, h("slot", { key: 'df38e347976436b599536f9d0ab5cbb5ac3fa545', name: "pre" }), this._renderLabel(), h("slot", { key: '6d3de5e123c8867a3ed0c11a63811245b68b03e3' }))), this.variant === 'select' && h("slot", { key: '86333618f43eba0c502219e856c7ed0be891a7b4', name: "dropdown" }), !this.hideDetails && (h("c-message", { key: 'd83e818f53579dfbf25d838f615d5479e8454705', hint: this.hint, inputId: this.inputId, valid: this.valid, validation: this.validation }))))));
|
|
213
212
|
}
|
|
214
213
|
static get is() { return "c-input"; }
|
|
215
214
|
static get originalStyleUrls() {
|
|
@@ -242,7 +241,7 @@ export class CInput {
|
|
|
242
241
|
"reflect": false,
|
|
243
242
|
"defaultValue": "false"
|
|
244
243
|
},
|
|
245
|
-
"
|
|
244
|
+
"automaticFocus": {
|
|
246
245
|
"type": "boolean",
|
|
247
246
|
"mutable": false,
|
|
248
247
|
"complexType": {
|
|
@@ -278,24 +277,6 @@ export class CInput {
|
|
|
278
277
|
"reflect": false,
|
|
279
278
|
"defaultValue": "false"
|
|
280
279
|
},
|
|
281
|
-
"form": {
|
|
282
|
-
"type": "boolean",
|
|
283
|
-
"mutable": false,
|
|
284
|
-
"complexType": {
|
|
285
|
-
"original": "boolean",
|
|
286
|
-
"resolved": "boolean",
|
|
287
|
-
"references": {}
|
|
288
|
-
},
|
|
289
|
-
"required": false,
|
|
290
|
-
"optional": false,
|
|
291
|
-
"docs": {
|
|
292
|
-
"tags": [],
|
|
293
|
-
"text": "Render a hidden input outside the shadow dom"
|
|
294
|
-
},
|
|
295
|
-
"attribute": "form",
|
|
296
|
-
"reflect": false,
|
|
297
|
-
"defaultValue": "false"
|
|
298
|
-
},
|
|
299
280
|
"hideDetails": {
|
|
300
281
|
"type": "boolean",
|
|
301
282
|
"mutable": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c-input.js","sourceRoot":"","sources":["../../../../src/components/c-input/c-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,IAAI,EACJ,KAAK,EAEL,OAAO,EACP,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AAWvB,MAAM,OAAO,MAAM;;QA+LT,gBAAW,GAAG,KAAK,CAAC;QAIpB,cAAS,GAAG,IAAI,CAAC;QA0FjB,cAAS,GAAG,IAAI,oBAAoB,CAC1C,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;YACpB,OAAO,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;gBACxB,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;oBACzB,IAAI,CAAC,uBAAuB,EAAE,CAAC;oBAC/B,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,EACD,EAAE,SAAS,EAAE,CAAC,EAAE,CACjB,CAAC;QAOM,YAAO,GAAG,GAAG,EAAE;YAErB,UAAU,CAAC,GAAG,EAAE;gBACd,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;gBAEvB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBAGxB,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,CAAC,EAAE,GAAG,CAAC,CAAC;QACV,CAAC,CAAC;QAEM,aAAQ,GAAG,CAAC,KAAK,GAAG,IAAI,EAAE,EAAE;;YAClC,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAE1B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YAEtB,MAA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,CACG,CACF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n Element,\n Watch,\n Method,\n} from '@stencil/core';\nimport { CAutocompleteItem, CSelectItem } from '../../types';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-input',\n styleUrl: 'c-input.scss',\n shadow: false,\n})\nexport class CInput {\n @Element() el!: HTMLCInputElement;\n\n /**\n * Active state\n */\n @Prop() active = false;\n\n /**\n * Auto focus the input\n */\n // eslint-disable-next-line @stencil-community/reserved-member-names\n @Prop() autofocus = false;\n\n /**\n * Disable the input\n */\n @Prop() disabled = false;\n\n /**\n * Render a hidden input outside the shadow dom\n */\n @Prop() form = 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 */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the input element\n */\n @Prop() inputId: string;\n\n /**\n * Items for the dropdown\n */\n @Prop() items: CSelectItem[];\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\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: string;\n\n /**\n * Set the validíty 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() value: string | number | boolean | CSelectItem | CAutocompleteItem;\n\n /**\n * Variant\n */\n @Prop() variant: 'text' | 'select' = 'text';\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n /**\n * Emit click to the parent\n * @private\n */\n @Event({ bubbles: false }) itemClick: EventEmitter;\n\n /**\n * Emit close to the parent\n * @private\n */\n @Event({ bubbles: false }) dropdownClose: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @State() statusText = '';\n\n @State() currentIndex: number = null;\n\n @Watch('valid')\n onValidChange() {\n if (this.validateOnBlur && !this._hasBlurred) return;\n\n this._setAriaDescriptionId();\n }\n\n @Watch('validation')\n onValidationMessageChange() {\n this._updateStatusText();\n }\n\n @Watch('value')\n onValueChange(value) {\n if (!value) {\n this._onReset();\n }\n }\n\n @Watch('placeholder')\n onPlaceholderChange(placeholder) {\n if (placeholder) this._onReset();\n }\n\n private _hasBlurred = false;\n\n private _labelRef: HTMLLabelElement;\n\n private _debounce = null;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n /**\n * @private\n */\n @Method()\n async reset() {\n this._onReset();\n }\n\n componentDidLoad() {\n if (this.autofocus) {\n setTimeout(() => {\n this._onFocus(false);\n }, 500);\n }\n\n this._calculateElementWidths();\n this._setAriaDescriptionId();\n\n if (this.label) {\n this._observer.observe(this._labelRef);\n }\n\n this.inputField?.addEventListener('focus', () => this._onFocus(false));\n this.inputField?.addEventListener('blur', () => this._onBlur());\n this.inputField?.addEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n // hide the placeholder text initially if there is a label\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.label || !this.placeholder ? '' : this.placeholder;\n\n this.inputField.title = this.label ?? this.placeholder;\n\n requestAnimationFrame(() => {\n const container = this.inputField.closest(\n '.c-input-menu__input',\n ) as HTMLDivElement;\n\n if (!container) return;\n\n container.dataset.placeholder = this.placeholder;\n });\n }\n }\n\n disconnectedCallback() {\n this.inputField?.removeEventListener('focus', () => this._onFocus(false));\n this.inputField?.removeEventListener('blur', () => this._onBlur());\n this.inputField?.removeEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n this._observer.disconnect();\n\n this._dropdownElement?.remove();\n }\n\n get isActive() {\n return !!this.value || typeof this.value === 'boolean' || this.isFocused;\n }\n\n private _setAriaDescriptionId() {\n this.inputField.removeAttribute('aria-describedby');\n\n let type = null;\n\n if (this.valid && !this.value && this.hint) {\n type = 'hint';\n }\n\n if (!this.valid) {\n type = 'error';\n }\n\n if (type) {\n this.inputField.setAttribute(\n 'aria-describedby',\n `${type}-${this.inputId}`,\n );\n }\n }\n\n private _observer = new IntersectionObserver(\n (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n this._calculateElementWidths();\n observer.unobserve(entry.target);\n }\n });\n },\n { threshold: 1 },\n );\n\n private _calculateElementWidths() {\n this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;\n this.preSlotWidth = this.inputField.offsetLeft;\n }\n\n private _onBlur = () => {\n // delay the blur event to prevent the label from 'flashing' on c-select selection\n setTimeout(() => {\n this.isFocused = false;\n\n this._hasBlurred = true;\n\n // show the label if there's no label or value\n this._onReset();\n }, 100);\n };\n\n private _onFocus = (click = true) => {\n if (this.disabled) return;\n\n this.isFocused = true;\n\n this.inputField?.focus();\n\n if (click) {\n this.inputField?.click();\n\n if (this.variant === 'select') {\n this.itemClick.emit();\n }\n }\n\n // show the label if there's no value\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.value || !this.placeholder ? '' : this.placeholder;\n }\n };\n\n private _onReset() {\n if (this.inputField) {\n if (\n !!this.placeholder &&\n !this.value &&\n (this.active || this.isFocused)\n ) {\n this.inputField.placeholder = this.placeholder;\n\n return;\n }\n\n this.inputField.placeholder =\n !this.label && !this.value && !!this.placeholder\n ? this.placeholder\n : '';\n }\n }\n\n /**\n * Prevent non numeric values in the numeric fields\n */\n private _preventNonNumericalInput(event: KeyboardEvent) {\n if (this.type !== 'number') return;\n\n if (!event.key.match(/^[0-9,\\.-]+$/)) {\n event.preventDefault();\n }\n }\n\n private _renderBorders() {\n if (this.shadow) return;\n\n const classes = {\n active: this.isActive || this.active,\n };\n\n return (\n <fieldset aria-hidden=\"true\">\n <legend\n class={classes}\n style={{\n '--_c-input-legend-width': this.labelWidth + 'px',\n }}\n >\n <span class=\"notranslate\"></span>\n </legend>\n </fieldset>\n );\n }\n\n private _renderLabel() {\n if (!this.label) return;\n\n const classes = {\n active: this.isActive,\n };\n\n return (\n <label\n htmlFor={this.inputId}\n ref={(el) => (this._labelRef = el as HTMLLabelElement)}\n class={classes}\n >\n {this.label}\n {this.required && <span> *</span>}\n </label>\n );\n }\n\n get inputField() {\n return this.el?.querySelector('.c-input__input') as\n | HTMLInputElement\n | HTMLTextAreaElement;\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = this.valid ? '' : `Error: ${this.validation}`;\n\n this._debounce = null;\n }, 1400);\n }\n\n render() {\n const containerClasses = {\n 'c-input': true,\n 'c-input--disabled': this.disabled,\n 'c-input--shadow': this.shadow,\n 'c-input--textarea': this.rows > 1,\n 'c-input--error': !this.valid,\n 'c-input--active': this.isFocused || this.active,\n filled: !!this.value,\n [`c-input--${this.variant}`]: true,\n };\n\n return (\n <Host disabled={this.disabled}>\n <div\n id={'announce-' + this.inputId}\n class=\"visuallyhidden\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n {this.statusText}\n </div>\n\n <div class={containerClasses}>\n <div class=\"c-input__control\">\n <div class=\"c-input__slot\" onClick={() => this._onFocus()}>\n {this._renderBorders()}\n\n <div\n class=\"c-input__field\"\n style={{\n '--_c-input-label-position': this.preSlotWidth + 'px',\n }}\n >\n <slot name=\"pre\"></slot>\n\n {this._renderLabel()}\n\n <slot></slot>\n </div>\n </div>\n\n {this.variant === 'select' && <slot name=\"dropdown\"></slot>}\n\n {!this.hideDetails && (\n <c-message\n hint={this.hint}\n inputId={this.inputId}\n valid={this.valid}\n validation={this.validation}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"c-input.js","sourceRoot":"","sources":["../../../../src/components/c-input/c-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,IAAI,EACJ,KAAK,EAEL,OAAO,EACP,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AAWvB,MAAM,OAAO,MAAM;;QAyLT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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\n Component,\n Host,\n h,\n State,\n Prop,\n Event,\n EventEmitter,\n Element,\n Watch,\n Method,\n} from '@stencil/core';\nimport { CAutocompleteItem, CSelectItem } from '../../types';\n\n/**\n * @parent None\n */\n@Component({\n tag: 'c-input',\n styleUrl: 'c-input.scss',\n shadow: false,\n})\nexport class CInput {\n @Element() el!: HTMLCInputElement;\n\n /**\n * Active state\n */\n @Prop() active = false;\n\n /**\n * Auto focus the input\n */\n @Prop({ attribute: 'autofocus' }) automaticFocus = false;\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 */\n @Prop({ attribute: 'id' }) hostId: string;\n\n /**\n * Id of the input element\n */\n @Prop() inputId: string;\n\n /**\n * Items for the dropdown\n */\n @Prop() items: CSelectItem[];\n\n /**\n * Items per page before adding scroll\n */\n @Prop() itemsPerPage = 6;\n\n /**\n * Label of the input\n */\n @Prop() label: string;\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: string;\n\n /**\n * Set the validíty 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() value: string | number | boolean | CSelectItem | CAutocompleteItem;\n\n /**\n * Variant\n */\n @Prop() variant: 'text' | 'select' = 'text';\n\n /**\n * Emit changes to the parent\n */\n @Event({ bubbles: false })\n changeValue: EventEmitter;\n\n /**\n * Emit click to the parent\n * @private\n */\n @Event({ bubbles: false }) itemClick: EventEmitter;\n\n /**\n * Emit close to the parent\n * @private\n */\n @Event({ bubbles: false }) dropdownClose: EventEmitter;\n\n @State() isFocused = false;\n\n @State() labelWidth = 0;\n\n @State() preSlotWidth = 0;\n\n @State() statusText = '';\n\n @State() currentIndex: number = null;\n\n @Watch('valid')\n onValidChange() {\n if (this.validateOnBlur && !this._hasBlurred) return;\n\n this._setAriaDescriptionId();\n }\n\n @Watch('validation')\n onValidationMessageChange() {\n this._updateStatusText();\n }\n\n @Watch('value')\n onValueChange(value) {\n if (!value) {\n this._onReset();\n }\n }\n\n @Watch('placeholder')\n onPlaceholderChange(placeholder) {\n if (placeholder) this._onReset();\n }\n\n private _hasBlurred = false;\n\n private _labelRef: HTMLLabelElement;\n\n private _debounce = null;\n\n private _dropdownElement: HTMLCDropdownElement;\n\n /**\n * @private\n */\n @Method()\n async reset() {\n this._onReset();\n }\n\n componentDidLoad() {\n if (this.automaticFocus) {\n setTimeout(() => {\n this._onFocus(false);\n }, 500);\n }\n\n this._calculateElementWidths();\n this._setAriaDescriptionId();\n\n if (this.label) {\n this._observer.observe(this._labelRef);\n }\n\n this.inputField?.addEventListener('focus', () => this._onFocus(false));\n this.inputField?.addEventListener('blur', () => this._onBlur());\n this.inputField?.addEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n // hide the placeholder text initially if there is a label\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.label || !this.placeholder ? '' : this.placeholder;\n\n this.inputField.title = this.label ?? this.placeholder;\n\n requestAnimationFrame(() => {\n const container = this.inputField.closest(\n '.c-input-menu__input',\n ) as HTMLDivElement;\n\n if (!container) return;\n\n container.dataset.placeholder = this.placeholder;\n });\n }\n }\n\n disconnectedCallback() {\n this.inputField?.removeEventListener('focus', () => this._onFocus(false));\n this.inputField?.removeEventListener('blur', () => this._onBlur());\n this.inputField?.removeEventListener(\n 'keypress',\n this._preventNonNumericalInput,\n );\n\n this._observer.disconnect();\n\n this._dropdownElement?.remove();\n }\n\n get isActive() {\n return !!this.value || typeof this.value === 'boolean' || this.isFocused;\n }\n\n private _setAriaDescriptionId() {\n this.inputField.removeAttribute('aria-describedby');\n\n let type = null;\n\n if (this.valid && !this.value && this.hint) {\n type = 'hint';\n }\n\n if (!this.valid) {\n type = 'error';\n }\n\n if (type) {\n this.inputField.setAttribute(\n 'aria-describedby',\n `${type}-${this.inputId}`,\n );\n }\n }\n\n private _observer = new IntersectionObserver(\n (entries, observer) => {\n entries.forEach((entry) => {\n if (entry.isIntersecting) {\n this._calculateElementWidths();\n observer.unobserve(entry.target);\n }\n });\n },\n { threshold: 1 },\n );\n\n private _calculateElementWidths() {\n this.labelWidth = !!this.label ? this._labelRef.scrollWidth * 0.75 + 6 : 0;\n this.preSlotWidth = this.inputField.offsetLeft;\n }\n\n private _onBlur = () => {\n // delay the blur event to prevent the label from 'flashing' on c-select selection\n setTimeout(() => {\n this.isFocused = false;\n\n this._hasBlurred = true;\n\n // show the label if there's no label or value\n this._onReset();\n }, 100);\n };\n\n private _onFocus = (click = true) => {\n if (this.disabled) return;\n\n this.isFocused = true;\n\n this.inputField?.focus();\n\n if (click) {\n this.inputField?.click();\n\n if (this.variant === 'select') {\n this.itemClick.emit();\n }\n }\n\n // show the label if there's no value\n if (this.inputField) {\n this.inputField.placeholder =\n !!this.value || !this.placeholder ? '' : this.placeholder;\n }\n };\n\n private _onReset() {\n if (this.inputField) {\n if (\n !!this.placeholder &&\n !this.value &&\n (this.active || this.isFocused)\n ) {\n this.inputField.placeholder = this.placeholder;\n\n return;\n }\n\n this.inputField.placeholder =\n !this.label && !this.value && !!this.placeholder\n ? this.placeholder\n : '';\n }\n }\n\n /**\n * Prevent non numeric values in the numeric fields\n */\n private _preventNonNumericalInput(event: KeyboardEvent) {\n if (this.type !== 'number') return;\n\n if (!event.key.match(/^[0-9,\\.-]+$/)) {\n event.preventDefault();\n }\n }\n\n private _renderBorders() {\n if (this.shadow) return;\n\n const classes = {\n active: this.isActive || this.active,\n };\n\n return (\n <fieldset aria-hidden=\"true\">\n <legend\n class={classes}\n style={{\n '--_c-input-legend-width': this.labelWidth + 'px',\n }}\n >\n <span class=\"notranslate\"></span>\n </legend>\n </fieldset>\n );\n }\n\n private _renderLabel() {\n if (!this.label) return;\n\n const classes = {\n active: this.isActive,\n };\n\n return (\n <label\n htmlFor={this.inputId}\n ref={(el) => (this._labelRef = el as HTMLLabelElement)}\n class={classes}\n >\n {this.label}\n {this.required && <span> *</span>}\n </label>\n );\n }\n\n get inputField() {\n return this.el?.querySelector('.c-input__input') as\n | HTMLInputElement\n | HTMLTextAreaElement;\n }\n\n private _updateStatusText() {\n if (this._debounce !== null) {\n clearTimeout(this._debounce);\n this._debounce = null;\n }\n\n this._debounce = window.setTimeout(() => {\n this.statusText = this.valid ? '' : `Error: ${this.validation}`;\n\n this._debounce = null;\n }, 1400);\n }\n\n render() {\n const containerClasses = {\n 'c-input': true,\n 'c-input--disabled': this.disabled,\n 'c-input--shadow': this.shadow,\n 'c-input--textarea': this.rows > 1,\n 'c-input--error': !this.valid,\n 'c-input--active': this.isFocused || this.active,\n filled: !!this.value,\n [`c-input--${this.variant}`]: true,\n };\n\n return (\n <Host disabled={this.disabled}>\n <div\n id={'announce-' + this.inputId}\n class=\"visuallyhidden\"\n aria-live=\"polite\"\n aria-atomic=\"true\"\n >\n {this.statusText}\n </div>\n\n <div class={containerClasses}>\n <div class=\"c-input__control\">\n <div class=\"c-input__slot\" onClick={() => this._onFocus()}>\n {this._renderBorders()}\n\n <div\n class=\"c-input__field\"\n style={{\n '--_c-input-label-position': this.preSlotWidth + 'px',\n }}\n >\n <slot name=\"pre\"></slot>\n\n {this._renderLabel()}\n\n <slot></slot>\n </div>\n </div>\n\n {this.variant === 'select' && <slot name=\"dropdown\"></slot>}\n\n {!this.hideDetails && (\n <c-message\n hint={this.hint}\n inputId={this.inputId}\n valid={this.valid}\n validation={this.validation}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -7,9 +7,10 @@ export class CSelect {
|
|
|
7
7
|
this._lastKeyPressTime = null;
|
|
8
8
|
this._searchString = '';
|
|
9
9
|
this._toggleDropdown = (event) => {
|
|
10
|
+
var _a;
|
|
10
11
|
event.stopPropagation();
|
|
11
12
|
if (this.dropdownVisible) {
|
|
12
|
-
this._dropdownElement.close();
|
|
13
|
+
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
13
14
|
return;
|
|
14
15
|
}
|
|
15
16
|
this._dropdownElement.open();
|
|
@@ -117,6 +118,7 @@ export class CSelect {
|
|
|
117
118
|
this._dropdownElement.updateList();
|
|
118
119
|
}
|
|
119
120
|
handleKeyDown(event) {
|
|
121
|
+
var _a, _b, _c;
|
|
120
122
|
const alphanumeric = /^[0-9a-zA-Z ]+$/;
|
|
121
123
|
if (this.disabled)
|
|
122
124
|
return;
|
|
@@ -139,12 +141,12 @@ export class CSelect {
|
|
|
139
141
|
}
|
|
140
142
|
if (event.key === 'Escape') {
|
|
141
143
|
this._preventDialogOpen = true;
|
|
142
|
-
this._dropdownElement.close();
|
|
144
|
+
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
143
145
|
this._inputElement.focus();
|
|
144
146
|
return;
|
|
145
147
|
}
|
|
146
148
|
if (event.key === 'Tab') {
|
|
147
|
-
this._dropdownElement.close();
|
|
149
|
+
(_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.close();
|
|
148
150
|
}
|
|
149
151
|
if (event.key === 'ArrowDown') {
|
|
150
152
|
event.preventDefault();
|
|
@@ -162,7 +164,7 @@ export class CSelect {
|
|
|
162
164
|
if (event.key === 'ArrowUp') {
|
|
163
165
|
event.preventDefault();
|
|
164
166
|
if (this.currentIndex === 0) {
|
|
165
|
-
this._dropdownElement.close();
|
|
167
|
+
(_c = this._dropdownElement) === null || _c === void 0 ? void 0 : _c.close();
|
|
166
168
|
this._inputElement.focus();
|
|
167
169
|
}
|
|
168
170
|
if (!this.dropdownVisible) {
|
|
@@ -202,10 +204,19 @@ export class CSelect {
|
|
|
202
204
|
this._selectOption(this.returnObject ? v : { name: v, value: v });
|
|
203
205
|
}
|
|
204
206
|
onSelectOption(event) {
|
|
207
|
+
var _a, _b;
|
|
208
|
+
if (this.returnObject &&
|
|
209
|
+
this.value.value === event.detail.value) {
|
|
210
|
+
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
211
|
+
}
|
|
212
|
+
if (!this.returnObject && this.value === event.detail.value) {
|
|
213
|
+
(_b = this._dropdownElement) === null || _b === void 0 ? void 0 : _b.close();
|
|
214
|
+
}
|
|
205
215
|
this._setValue(event.detail);
|
|
206
216
|
}
|
|
207
217
|
_selectOption({ value, name }) {
|
|
208
|
-
|
|
218
|
+
var _a;
|
|
219
|
+
(_a = this._dropdownElement) === null || _a === void 0 ? void 0 : _a.close();
|
|
209
220
|
const selection = this._setCurrentIndex({ name, value });
|
|
210
221
|
if (this.optionElementsExist && this.optionAsSelection && selection) {
|
|
211
222
|
const clone = selection.cloneNode(true);
|
|
@@ -300,12 +311,12 @@ export class CSelect {
|
|
|
300
311
|
}
|
|
301
312
|
render() {
|
|
302
313
|
const itemType = this.optionElementsExist ? 'option' : 'item';
|
|
303
|
-
return (h(Host, { key: '
|
|
314
|
+
return (h(Host, { key: '44469f8a65994971033ccdd17db364a7a2b05031' }, h("c-dropdown", { key: 'bbc11df651bf6ecfd9bcb3c11b38efc3ace6bfa5', ref: (el) => (this._dropdownElement = el), id: `${this._id}-dropdown`, index: this.currentIndex, "items-per-page": this.itemsPerPage, "dropdown-item-type": itemType, items: this._items, parent: this.el, type: "select" }, h("c-input", { key: '6f19558e4ef18b3aec1155d37f86ffcd07062e3a', slot: "default", ref: (el) => (this._cInputElement = el), active: this.dropdownVisible, disabled: this.disabled, "hide-details": this.hideDetails, hint: this.hint, id: this.hostId, "input-id": this._inputId, label: this.label, name: this.name, placeholder: this.placeholder, required: this.required, shadow: this.shadow, valid: this.valid, validate: this.validate, "validate-on-blur": this.validateOnBlur, validation: this.validation, value: this.value, variant: "select", onClick: () => !this.disabled && this._dropdownElement.open() }, h("slot", { key: 'e90aa3e9c71cb220dd36b4c48aa606d5432e9216', name: "pre", slot: "pre" }), h("div", { key: '542869bf1a8e162798e2d7e38964383d643ac6c5', class: "c-input__content" }, this._renderInputElement(), this.loading && this._renderLoader(), !this.loading &&
|
|
304
315
|
this.value &&
|
|
305
316
|
this.clearable &&
|
|
306
317
|
this._renderReset(), !this.loading &&
|
|
307
318
|
(!this.value || !this.clearable) &&
|
|
308
|
-
this._renderChevron(), h("slot", { key: '
|
|
319
|
+
this._renderChevron(), h("slot", { key: '403cf21005383c491f3bbe42517fae4f1785375e', onSlotchange: () => this._onSlotChange() })), h("slot", { key: '810329ec1606db953c64c58ee9e77a954aaf2de8', name: "post", slot: "post" })))));
|
|
309
320
|
}
|
|
310
321
|
static get is() { return "c-select"; }
|
|
311
322
|
static get encapsulation() { return "shadow"; }
|