@freshworks/crayons
Advanced tools
Comparing version 2.2.4 to 2.3.0
@@ -0,1 +1,18 @@ | ||
# [2.3.0](https://github.com/freshdesk/crayons/compare/v2.2.4...v2.3.0) (2020-07-14) | ||
### Bug Fixes | ||
* review comments ([2556171](https://github.com/freshdesk/crayons/commit/255617113413207f9d2a15540597dffa5cf97802)) | ||
* review comments - 2 ([7dbdf98](https://github.com/freshdesk/crayons/commit/7dbdf984f55097e71a012daec56b41a722b109fb)) | ||
### Features | ||
* style fix ([71a0794](https://github.com/freshdesk/crayons/commit/71a07943a7559d787ee699b5e5e0400a699fed0d)) | ||
* **select:** added back readonly ([c78ae16](https://github.com/freshdesk/crayons/commit/c78ae16acac8acb5871b935daa54d9444e3dbfc4)) | ||
* **select:** review comments -4 ([7501ff8](https://github.com/freshdesk/crayons/commit/7501ff8891762ee561fbfedbd3c83479f57dceda)) | ||
* **select:** review comments - 3 ([b72687e](https://github.com/freshdesk/crayons/commit/b72687ede2f8b9591e8ecb2ac0f3476470737684)) | ||
* **textarea, timepicker, select:** improvements in textarea, select, timepicker ([ce02f62](https://github.com/freshdesk/crayons/commit/ce02f62eaebc17a6fd5777fe408ce48bb9a5a1f9)) | ||
## [2.2.4](https://github.com/freshdesk/crayons/compare/v2.2.3...v2.2.4) (2020-06-23) | ||
@@ -2,0 +19,0 @@ |
@@ -6,3 +6,3 @@ 'use strict'; | ||
index.patchBrowser().then(options => { | ||
return index.bootstrapLazy([["fw-checkbox.cjs",[[1,"fw-checkbox",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1]}]]],["fw-label.cjs",[[1,"fw-label",{"color":[1],"value":[1]}]]],["fw-radio.cjs",[[1,"fw-radio",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1],"name":[1]}]]],["fw-radio-group.cjs",[[0,"fw-radio-group",{"allowEmpty":[4,"allow-empty"],"name":[1],"value":[1032]}]]],["fw-spinner.cjs",[[1,"fw-spinner",{"size":[1],"color":[1]}]]],["fw-tab.cjs",[[1,"fw-tab",{"tabHeader":[1,"tab-header"],"tabHeaderHtml":[1,"tab-header-html"],"disabled":[4]}]]],["fw-tabs.cjs",[[1,"fw-tabs",{"activeTabIndex":[1538,"active-tab-index"],"tabs":[32],"activeChildClass":[32]},[[0,"propChanged","init"]]]]],["fw-textarea.cjs",[[1,"fw-textarea",{"label":[1],"value":[1025],"cols":[2],"rows":[2],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"wrap":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"hasFocus":[32],"setFocus":[64]}]]],["fw-toggle.cjs",[[1,"fw-toggle",{"checked":[4],"size":[1],"name":[1],"disabled":[4]}]]],["fw-button_8.cjs",[[1,"fw-datepicker",{"mode":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"fromDate":[1025,"from-date"],"toDate":[1025,"to-date"],"dateFormat":[1,"date-format"],"value":[1025],"placeholder":[1],"showDatePicker":[32],"year":[32],"toYear":[32],"monthDetails":[32],"nextMonthDetails":[32],"month":[32],"todayTimestamp":[32],"selectedDay":[32],"startDate":[32],"endDate":[32],"startDateFormatted":[32],"endDateFormatted":[32],"dateHovered":[32],"supportedYears":[32],"toMonth":[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{"format":[1],"value":[1025],"interval":[2],"minTime":[1,"min-time"],"maxTime":[1,"max-time"],"timeValues":[32],"isMeridianFormat":[32],"isDefaultEndTime":[32]}],[1,"fw-input",{"label":[1],"value":[1025],"type":[1],"autocomplete":[1],"clearInput":[4,"clear-input"],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"hasFocus":[32],"setFocus":[64]}],[1,"fw-button",{"type":[1],"color":[1],"disabled":[516],"expand":[4],"size":[1]}],[1,"fw-select",{"label":[1],"value":[1032],"name":[1],"type":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"forceSelect":[4,"force-select"],"disabled":[4],"multiple":[4],"isExpanded":[32],"options":[32],"filteredOptions":[32],"hasFocus":[32],"getSelectedItem":[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{"name":[1],"size":[2],"color":[1],"svgHTML":[32]}],[1,"fw-select-option",{"value":[513],"selected":[1540],"disabled":[1540],"html":[1540],"optionText":[513,"option-text"],"htmlContent":[1,"html-content"]}],[1,"fw-tag",{"text":[513],"disabled":[516],"value":[513]}]]]], options); | ||
return index.bootstrapLazy([["fw-checkbox.cjs",[[1,"fw-checkbox",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1]}]]],["fw-label.cjs",[[1,"fw-label",{"color":[1],"value":[1]}]]],["fw-radio.cjs",[[1,"fw-radio",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1],"name":[1]}]]],["fw-radio-group.cjs",[[0,"fw-radio-group",{"allowEmpty":[4,"allow-empty"],"name":[1],"value":[1032]}]]],["fw-spinner.cjs",[[1,"fw-spinner",{"size":[1],"color":[1]}]]],["fw-tab.cjs",[[1,"fw-tab",{"tabHeader":[1,"tab-header"],"tabHeaderHtml":[1,"tab-header-html"],"disabled":[4]}]]],["fw-tabs.cjs",[[1,"fw-tabs",{"activeTabIndex":[1538,"active-tab-index"],"tabs":[32],"activeChildClass":[32]},[[0,"propChanged","init"]]]]],["fw-toggle.cjs",[[1,"fw-toggle",{"checked":[4],"size":[1],"name":[1],"disabled":[4]}]]],["fw-button_9.cjs",[[1,"fw-datepicker",{"mode":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"fromDate":[1025,"from-date"],"toDate":[1025,"to-date"],"dateFormat":[1,"date-format"],"value":[1025],"placeholder":[1],"showDatePicker":[32],"year":[32],"toYear":[32],"monthDetails":[32],"nextMonthDetails":[32],"month":[32],"todayTimestamp":[32],"selectedDay":[32],"startDate":[32],"endDate":[32],"startDateFormatted":[32],"endDateFormatted":[32],"dateHovered":[32],"supportedYears":[32],"toMonth":[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{"format":[1],"disabled":[4],"value":[1025],"interval":[2],"minTime":[1,"min-time"],"maxTime":[1,"max-time"],"timeValues":[32],"isMeridianFormat":[32],"isDefaultEndTime":[32]}],[1,"fw-textarea",{"label":[1],"value":[1025],"cols":[2],"rows":[2],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"wrap":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"hasFocus":[32],"setFocus":[64]}],[1,"fw-input",{"label":[1],"value":[1025],"type":[1],"autocomplete":[1],"clearInput":[4,"clear-input"],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"hasFocus":[32],"setFocus":[64]}],[1,"fw-button",{"type":[1],"color":[1],"disabled":[516],"expand":[4],"size":[1]}],[1,"fw-select",{"label":[1],"value":[1032],"name":[1],"type":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"forceSelect":[4,"force-select"],"disabled":[4],"multiple":[4],"isExpanded":[32],"options":[32],"filteredOptions":[32],"hasFocus":[32],"getSelectedItem":[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{"name":[1],"size":[2],"color":[1],"svgHTML":[32]}],[1,"fw-select-option",{"value":[513],"selected":[1540],"disabled":[1540],"html":[1540],"optionText":[513,"option-text"],"htmlContent":[1,"html-content"]}],[1,"fw-tag",{"text":[513],"disabled":[516],"value":[513]}]]]], options); | ||
}); |
@@ -10,3 +10,3 @@ 'use strict'; | ||
return index.patchEsm().then(() => { | ||
index.bootstrapLazy([["fw-checkbox.cjs",[[1,"fw-checkbox",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1]}]]],["fw-label.cjs",[[1,"fw-label",{"color":[1],"value":[1]}]]],["fw-radio.cjs",[[1,"fw-radio",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1],"name":[1]}]]],["fw-radio-group.cjs",[[0,"fw-radio-group",{"allowEmpty":[4,"allow-empty"],"name":[1],"value":[1032]}]]],["fw-spinner.cjs",[[1,"fw-spinner",{"size":[1],"color":[1]}]]],["fw-tab.cjs",[[1,"fw-tab",{"tabHeader":[1,"tab-header"],"tabHeaderHtml":[1,"tab-header-html"],"disabled":[4]}]]],["fw-tabs.cjs",[[1,"fw-tabs",{"activeTabIndex":[1538,"active-tab-index"],"tabs":[32],"activeChildClass":[32]},[[0,"propChanged","init"]]]]],["fw-textarea.cjs",[[1,"fw-textarea",{"label":[1],"value":[1025],"cols":[2],"rows":[2],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"wrap":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"hasFocus":[32],"setFocus":[64]}]]],["fw-toggle.cjs",[[1,"fw-toggle",{"checked":[4],"size":[1],"name":[1],"disabled":[4]}]]],["fw-button_8.cjs",[[1,"fw-datepicker",{"mode":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"fromDate":[1025,"from-date"],"toDate":[1025,"to-date"],"dateFormat":[1,"date-format"],"value":[1025],"placeholder":[1],"showDatePicker":[32],"year":[32],"toYear":[32],"monthDetails":[32],"nextMonthDetails":[32],"month":[32],"todayTimestamp":[32],"selectedDay":[32],"startDate":[32],"endDate":[32],"startDateFormatted":[32],"endDateFormatted":[32],"dateHovered":[32],"supportedYears":[32],"toMonth":[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{"format":[1],"value":[1025],"interval":[2],"minTime":[1,"min-time"],"maxTime":[1,"max-time"],"timeValues":[32],"isMeridianFormat":[32],"isDefaultEndTime":[32]}],[1,"fw-input",{"label":[1],"value":[1025],"type":[1],"autocomplete":[1],"clearInput":[4,"clear-input"],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"hasFocus":[32],"setFocus":[64]}],[1,"fw-button",{"type":[1],"color":[1],"disabled":[516],"expand":[4],"size":[1]}],[1,"fw-select",{"label":[1],"value":[1032],"name":[1],"type":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"forceSelect":[4,"force-select"],"disabled":[4],"multiple":[4],"isExpanded":[32],"options":[32],"filteredOptions":[32],"hasFocus":[32],"getSelectedItem":[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{"name":[1],"size":[2],"color":[1],"svgHTML":[32]}],[1,"fw-select-option",{"value":[513],"selected":[1540],"disabled":[1540],"html":[1540],"optionText":[513,"option-text"],"htmlContent":[1,"html-content"]}],[1,"fw-tag",{"text":[513],"disabled":[516],"value":[513]}]]]], options); | ||
index.bootstrapLazy([["fw-checkbox.cjs",[[1,"fw-checkbox",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1]}]]],["fw-label.cjs",[[1,"fw-label",{"color":[1],"value":[1]}]]],["fw-radio.cjs",[[1,"fw-radio",{"checked":[1540],"disabled":[1540],"label":[1],"value":[1],"name":[1]}]]],["fw-radio-group.cjs",[[0,"fw-radio-group",{"allowEmpty":[4,"allow-empty"],"name":[1],"value":[1032]}]]],["fw-spinner.cjs",[[1,"fw-spinner",{"size":[1],"color":[1]}]]],["fw-tab.cjs",[[1,"fw-tab",{"tabHeader":[1,"tab-header"],"tabHeaderHtml":[1,"tab-header-html"],"disabled":[4]}]]],["fw-tabs.cjs",[[1,"fw-tabs",{"activeTabIndex":[1538,"active-tab-index"],"tabs":[32],"activeChildClass":[32]},[[0,"propChanged","init"]]]]],["fw-toggle.cjs",[[1,"fw-toggle",{"checked":[4],"size":[1],"name":[1],"disabled":[4]}]]],["fw-button_9.cjs",[[1,"fw-datepicker",{"mode":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"fromDate":[1025,"from-date"],"toDate":[1025,"to-date"],"dateFormat":[1,"date-format"],"value":[1025],"placeholder":[1],"showDatePicker":[32],"year":[32],"toYear":[32],"monthDetails":[32],"nextMonthDetails":[32],"month":[32],"todayTimestamp":[32],"selectedDay":[32],"startDate":[32],"endDate":[32],"startDateFormatted":[32],"endDateFormatted":[32],"dateHovered":[32],"supportedYears":[32],"toMonth":[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{"format":[1],"disabled":[4],"value":[1025],"interval":[2],"minTime":[1,"min-time"],"maxTime":[1,"max-time"],"timeValues":[32],"isMeridianFormat":[32],"isDefaultEndTime":[32]}],[1,"fw-textarea",{"label":[1],"value":[1025],"cols":[2],"rows":[2],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"wrap":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"hasFocus":[32],"setFocus":[64]}],[1,"fw-input",{"label":[1],"value":[1025],"type":[1],"autocomplete":[1],"clearInput":[4,"clear-input"],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"disabled":[4],"iconLeft":[1,"icon-left"],"iconRight":[1,"icon-right"],"hasFocus":[32],"setFocus":[64]}],[1,"fw-button",{"type":[1],"color":[1],"disabled":[516],"expand":[4],"size":[1]}],[1,"fw-select",{"label":[1],"value":[1032],"name":[1],"type":[1],"placeholder":[1],"state":[1],"stateText":[1,"state-text"],"readonly":[4],"required":[4],"forceSelect":[4,"force-select"],"disabled":[4],"multiple":[4],"isExpanded":[32],"options":[32],"filteredOptions":[32],"hasFocus":[32],"getSelectedItem":[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{"name":[1],"size":[2],"color":[1],"svgHTML":[32]}],[1,"fw-select-option",{"value":[513],"selected":[1540],"disabled":[1540],"html":[1540],"optionText":[513,"option-text"],"htmlContent":[1,"html-content"]}],[1,"fw-tag",{"text":[513],"disabled":[516],"value":[513]}]]]], options); | ||
}); | ||
@@ -13,0 +13,0 @@ } |
@@ -10,4 +10,4 @@ { | ||
"components/radio/radio.js", | ||
"components/spinner/spinner.js", | ||
"components/select-option/select-option.js", | ||
"components/spinner/spinner.js", | ||
"components/tab/tab.js", | ||
@@ -14,0 +14,0 @@ "components/tabs/tabs.js", |
@@ -51,2 +51,3 @@ import { Host, h } from "@stencil/core"; | ||
this.multiple = false; | ||
this.changeEmittable = () => !this.disabled; | ||
this.closeDropdown = () => { | ||
@@ -58,16 +59,22 @@ this.selectList.style.display = 'none'; | ||
this.innerOnFocus = (e) => { | ||
this.hasFocus = true; | ||
this.fwFocus.emit(e); | ||
if (this.changeEmittable()) { | ||
this.hasFocus = true; | ||
this.fwFocus.emit(e); | ||
} | ||
}; | ||
this.innerOnClick = () => { | ||
this.filteredOptions = this.options; | ||
this.selectList.style.display = 'block'; | ||
this.selectList.style.width = String(this.select.clientWidth) + 'px'; | ||
this.isExpanded = true; | ||
this.overlay.style.display = 'block'; | ||
if (this.changeEmittable()) { | ||
this.filteredOptions = this.options; | ||
this.selectList.style.display = 'block'; | ||
this.selectList.style.width = String(this.select.clientWidth) + 'px'; | ||
this.isExpanded = true; | ||
this.overlay.style.display = 'block'; | ||
} | ||
}; | ||
this.innerOnBlur = (e) => { | ||
this.closeDropdown(); | ||
this.hasFocus = false; | ||
this.fwBlur.emit(e); | ||
if (this.changeEmittable()) { | ||
this.closeDropdown(); | ||
this.hasFocus = false; | ||
this.fwBlur.emit(e); | ||
} | ||
}; | ||
@@ -185,2 +192,3 @@ } | ||
[this.state]: true, | ||
'select-disabled': this.disabled, | ||
}, ref: select => this.select = select, onClick: () => this.innerOnClick() }, | ||
@@ -187,0 +195,0 @@ h("div", { class: "input-container-inner" }, |
@@ -75,3 +75,2 @@ import { Host, h } from "@stencil/core"; | ||
render() { | ||
const value = ''; | ||
return (h(Host, { "aria-disabled": this.disabled, class: { | ||
@@ -91,3 +90,3 @@ 'has-value': this.hasValue(), | ||
'responsive': this.cols === undefined, | ||
}, ref: input => this.nativeInput = input, disabled: this.disabled, name: this.name, placeholder: this.placeholder || '', minLength: this.minlength, maxLength: this.maxlength, readOnly: this.readonly, required: this.required, value: value, onInput: e => this.onInput(e), onBlur: this.onBlur, onFocus: this.onFocus, rows: this.rows, cols: this.cols, wrap: this.wrap })), | ||
}, ref: input => this.nativeInput = input, disabled: this.disabled, name: this.name, placeholder: this.placeholder || '', minLength: this.minlength, maxLength: this.maxlength, readOnly: this.readonly, required: this.required, value: this.value, onInput: e => this.onInput(e), onBlur: this.onBlur, onFocus: this.onFocus, rows: this.rows, cols: this.cols, wrap: this.wrap })), | ||
this.stateText !== '' ? | ||
@@ -94,0 +93,0 @@ h("span", { class: "help-block" }, this.stateText) : ''))); |
@@ -14,2 +14,6 @@ import { h } from "@stencil/core"; | ||
/** | ||
* Set true to disable the element | ||
*/ | ||
this.disabled = false; | ||
/** | ||
* Represent the intervals and can be a number or array of numbers representing the minute values in an hour | ||
@@ -83,3 +87,3 @@ */ | ||
render() { | ||
return (h("fw-select", { onFwChange: e => this.setTimeValue(e) }, this.timeValues.map(time => h("fw-select-option", { value: this.currentTimeValue(time) }, this.currentTimeLabel(time))))); | ||
return (h("fw-select", { disabled: this.disabled, value: this.value, onFwChange: e => this.setTimeValue(e) }, this.timeValues.map(time => h("fw-select-option", { value: this.currentTimeValue(time) }, this.currentTimeLabel(time))))); | ||
} | ||
@@ -107,2 +111,20 @@ static get is() { return "fw-timepicker"; } | ||
}, | ||
"disabled": { | ||
"type": "boolean", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "boolean", | ||
"resolved": "boolean", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "Set true to disable the element" | ||
}, | ||
"attribute": "disabled", | ||
"reflect": false, | ||
"defaultValue": "false" | ||
}, | ||
"value": { | ||
@@ -109,0 +131,0 @@ "type": "string", |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as t}from"./p-9aee3588.js";e().then(e=>t([["p-nmxpdfzb",[[1,"fw-checkbox",{checked:[1540],disabled:[1540],label:[1],value:[1]}]]],["p-9wp24d4j",[[1,"fw-label",{color:[1],value:[1]}]]],["p-rsrnfh3a",[[1,"fw-radio",{checked:[1540],disabled:[1540],label:[1],value:[1],name:[1]}]]],["p-ledfiee9",[[0,"fw-radio-group",{allowEmpty:[4,"allow-empty"],name:[1],value:[1032]}]]],["p-t5nvwbh2",[[1,"fw-spinner",{size:[1],color:[1]}]]],["p-gjdruyzy",[[1,"fw-tab",{tabHeader:[1,"tab-header"],tabHeaderHtml:[1,"tab-header-html"],disabled:[4]}]]],["p-irp4qb9b",[[1,"fw-tabs",{activeTabIndex:[1538,"active-tab-index"],tabs:[32],activeChildClass:[32]},[[0,"propChanged","init"]]]]],["p-nxfzcefd",[[1,"fw-textarea",{label:[1],value:[1025],cols:[2],rows:[2],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],wrap:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],hasFocus:[32],setFocus:[64]}]]],["p-cpgt5xcb",[[1,"fw-toggle",{checked:[4],size:[1],name:[1],disabled:[4]}]]],["p-zuo3hhlt",[[1,"fw-datepicker",{mode:[1],minDate:[1,"min-date"],maxDate:[1,"max-date"],fromDate:[1025,"from-date"],toDate:[1025,"to-date"],dateFormat:[1,"date-format"],value:[1025],placeholder:[1],showDatePicker:[32],year:[32],toYear:[32],monthDetails:[32],nextMonthDetails:[32],month:[32],todayTimestamp:[32],selectedDay:[32],startDate:[32],endDate:[32],startDateFormatted:[32],endDateFormatted:[32],dateHovered:[32],supportedYears:[32],toMonth:[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{format:[1],value:[1025],interval:[2],minTime:[1,"min-time"],maxTime:[1,"max-time"],timeValues:[32],isMeridianFormat:[32],isDefaultEndTime:[32]}],[1,"fw-input",{label:[1],value:[1025],type:[1],autocomplete:[1],clearInput:[4,"clear-input"],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],iconLeft:[1,"icon-left"],iconRight:[1,"icon-right"],hasFocus:[32],setFocus:[64]}],[1,"fw-button",{type:[1],color:[1],disabled:[516],expand:[4],size:[1]}],[1,"fw-select",{label:[1],value:[1032],name:[1],type:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],forceSelect:[4,"force-select"],disabled:[4],multiple:[4],isExpanded:[32],options:[32],filteredOptions:[32],hasFocus:[32],getSelectedItem:[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{name:[1],size:[2],color:[1],svgHTML:[32]}],[1,"fw-select-option",{value:[513],selected:[1540],disabled:[1540],html:[1540],optionText:[513,"option-text"],htmlContent:[1,"html-content"]}],[1,"fw-tag",{text:[513],disabled:[516],value:[513]}]]]],e)); | ||
import{p as e,b as t}from"./p-9aee3588.js";e().then(e=>t([["p-nmxpdfzb",[[1,"fw-checkbox",{checked:[1540],disabled:[1540],label:[1],value:[1]}]]],["p-9wp24d4j",[[1,"fw-label",{color:[1],value:[1]}]]],["p-rsrnfh3a",[[1,"fw-radio",{checked:[1540],disabled:[1540],label:[1],value:[1],name:[1]}]]],["p-ledfiee9",[[0,"fw-radio-group",{allowEmpty:[4,"allow-empty"],name:[1],value:[1032]}]]],["p-t5nvwbh2",[[1,"fw-spinner",{size:[1],color:[1]}]]],["p-gjdruyzy",[[1,"fw-tab",{tabHeader:[1,"tab-header"],tabHeaderHtml:[1,"tab-header-html"],disabled:[4]}]]],["p-irp4qb9b",[[1,"fw-tabs",{activeTabIndex:[1538,"active-tab-index"],tabs:[32],activeChildClass:[32]},[[0,"propChanged","init"]]]]],["p-cpgt5xcb",[[1,"fw-toggle",{checked:[4],size:[1],name:[1],disabled:[4]}]]],["p-5xqul1gm",[[1,"fw-datepicker",{mode:[1],minDate:[1,"min-date"],maxDate:[1,"max-date"],fromDate:[1025,"from-date"],toDate:[1025,"to-date"],dateFormat:[1,"date-format"],value:[1025],placeholder:[1],showDatePicker:[32],year:[32],toYear:[32],monthDetails:[32],nextMonthDetails:[32],month:[32],todayTimestamp:[32],selectedDay:[32],startDate:[32],endDate:[32],startDateFormatted:[32],endDateFormatted:[32],dateHovered:[32],supportedYears:[32],toMonth:[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{format:[1],disabled:[4],value:[1025],interval:[2],minTime:[1,"min-time"],maxTime:[1,"max-time"],timeValues:[32],isMeridianFormat:[32],isDefaultEndTime:[32]}],[1,"fw-textarea",{label:[1],value:[1025],cols:[2],rows:[2],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],wrap:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],hasFocus:[32],setFocus:[64]}],[1,"fw-input",{label:[1],value:[1025],type:[1],autocomplete:[1],clearInput:[4,"clear-input"],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],iconLeft:[1,"icon-left"],iconRight:[1,"icon-right"],hasFocus:[32],setFocus:[64]}],[1,"fw-button",{type:[1],color:[1],disabled:[516],expand:[4],size:[1]}],[1,"fw-select",{label:[1],value:[1032],name:[1],type:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],forceSelect:[4,"force-select"],disabled:[4],multiple:[4],isExpanded:[32],options:[32],filteredOptions:[32],hasFocus:[32],getSelectedItem:[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{name:[1],size:[2],color:[1],svgHTML:[32]}],[1,"fw-select-option",{value:[513],selected:[1540],disabled:[1540],html:[1540],optionText:[513,"option-text"],htmlContent:[1,"html-content"]}],[1,"fw-tag",{text:[513],disabled:[516],value:[513]}]]]],e)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-fa491ce6.system.js"],(function(){"use strict";var e,t;return{setters:[function(a){e=a.p;t=a.b}],execute:function(){e().then((function(e){return t([["p-xvt2q6j4.system",[[1,"fw-checkbox",{checked:[1540],disabled:[1540],label:[1],value:[1]}]]],["p-qng8sxgn.system",[[1,"fw-label",{color:[1],value:[1]}]]],["p-r1vpeunr.system",[[1,"fw-radio",{checked:[1540],disabled:[1540],label:[1],value:[1],name:[1]}]]],["p-frzibquo.system",[[0,"fw-radio-group",{allowEmpty:[4,"allow-empty"],name:[1],value:[1032]}]]],["p-dijmawkm.system",[[1,"fw-spinner",{size:[1],color:[1]}]]],["p-r48ia1qt.system",[[1,"fw-tab",{tabHeader:[1,"tab-header"],tabHeaderHtml:[1,"tab-header-html"],disabled:[4]}]]],["p-hzgcvx77.system",[[1,"fw-tabs",{activeTabIndex:[1538,"active-tab-index"],tabs:[32],activeChildClass:[32]},[[0,"propChanged","init"]]]]],["p-ayto7ai8.system",[[1,"fw-textarea",{label:[1],value:[1025],cols:[2],rows:[2],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],wrap:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],hasFocus:[32],setFocus:[64]}]]],["p-l6smlvqt.system",[[1,"fw-toggle",{checked:[4],size:[1],name:[1],disabled:[4]}]]],["p-ckjd2evt.system",[[1,"fw-datepicker",{mode:[1],minDate:[1,"min-date"],maxDate:[1,"max-date"],fromDate:[1025,"from-date"],toDate:[1025,"to-date"],dateFormat:[1,"date-format"],value:[1025],placeholder:[1],showDatePicker:[32],year:[32],toYear:[32],monthDetails:[32],nextMonthDetails:[32],month:[32],todayTimestamp:[32],selectedDay:[32],startDate:[32],endDate:[32],startDateFormatted:[32],endDateFormatted:[32],dateHovered:[32],supportedYears:[32],toMonth:[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{format:[1],value:[1025],interval:[2],minTime:[1,"min-time"],maxTime:[1,"max-time"],timeValues:[32],isMeridianFormat:[32],isDefaultEndTime:[32]}],[1,"fw-input",{label:[1],value:[1025],type:[1],autocomplete:[1],clearInput:[4,"clear-input"],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],iconLeft:[1,"icon-left"],iconRight:[1,"icon-right"],hasFocus:[32],setFocus:[64]}],[1,"fw-button",{type:[1],color:[1],disabled:[516],expand:[4],size:[1]}],[1,"fw-select",{label:[1],value:[1032],name:[1],type:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],forceSelect:[4,"force-select"],disabled:[4],multiple:[4],isExpanded:[32],options:[32],filteredOptions:[32],hasFocus:[32],getSelectedItem:[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{name:[1],size:[2],color:[1],svgHTML:[32]}],[1,"fw-select-option",{value:[513],selected:[1540],disabled:[1540],html:[1540],optionText:[513,"option-text"],htmlContent:[1,"html-content"]}],[1,"fw-tag",{text:[513],disabled:[516],value:[513]}]]]],e)}))}}})); | ||
System.register(["./p-fa491ce6.system.js"],(function(){"use strict";var e,t;return{setters:[function(a){e=a.p;t=a.b}],execute:function(){e().then((function(e){return t([["p-xvt2q6j4.system",[[1,"fw-checkbox",{checked:[1540],disabled:[1540],label:[1],value:[1]}]]],["p-qng8sxgn.system",[[1,"fw-label",{color:[1],value:[1]}]]],["p-r1vpeunr.system",[[1,"fw-radio",{checked:[1540],disabled:[1540],label:[1],value:[1],name:[1]}]]],["p-frzibquo.system",[[0,"fw-radio-group",{allowEmpty:[4,"allow-empty"],name:[1],value:[1032]}]]],["p-dijmawkm.system",[[1,"fw-spinner",{size:[1],color:[1]}]]],["p-r48ia1qt.system",[[1,"fw-tab",{tabHeader:[1,"tab-header"],tabHeaderHtml:[1,"tab-header-html"],disabled:[4]}]]],["p-hzgcvx77.system",[[1,"fw-tabs",{activeTabIndex:[1538,"active-tab-index"],tabs:[32],activeChildClass:[32]},[[0,"propChanged","init"]]]]],["p-l6smlvqt.system",[[1,"fw-toggle",{checked:[4],size:[1],name:[1],disabled:[4]}]]],["p-iju0xjq0.system",[[1,"fw-datepicker",{mode:[1],minDate:[1,"min-date"],maxDate:[1,"max-date"],fromDate:[1025,"from-date"],toDate:[1025,"to-date"],dateFormat:[1,"date-format"],value:[1025],placeholder:[1],showDatePicker:[32],year:[32],toYear:[32],monthDetails:[32],nextMonthDetails:[32],month:[32],todayTimestamp:[32],selectedDay:[32],startDate:[32],endDate:[32],startDateFormatted:[32],endDateFormatted:[32],dateHovered:[32],supportedYears:[32],toMonth:[32]},[[0,"fwFocus","displayDatePicker"],[0,"fwClick","handleButtonClick"],[0,"fwChange","handleMonthYearDropDownSelection"]]],[1,"fw-timepicker",{format:[1],disabled:[4],value:[1025],interval:[2],minTime:[1,"min-time"],maxTime:[1,"max-time"],timeValues:[32],isMeridianFormat:[32],isDefaultEndTime:[32]}],[1,"fw-textarea",{label:[1],value:[1025],cols:[2],rows:[2],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],wrap:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],hasFocus:[32],setFocus:[64]}],[1,"fw-input",{label:[1],value:[1025],type:[1],autocomplete:[1],clearInput:[4,"clear-input"],maxlength:[2],minlength:[2],name:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],disabled:[4],iconLeft:[1,"icon-left"],iconRight:[1,"icon-right"],hasFocus:[32],setFocus:[64]}],[1,"fw-button",{type:[1],color:[1],disabled:[516],expand:[4],size:[1]}],[1,"fw-select",{label:[1],value:[1032],name:[1],type:[1],placeholder:[1],state:[1],stateText:[1,"state-text"],readonly:[4],required:[4],forceSelect:[4,"force-select"],disabled:[4],multiple:[4],isExpanded:[32],options:[32],filteredOptions:[32],hasFocus:[32],getSelectedItem:[64]},[[0,"fwSelected","fwSelectedHandler"],[0,"fwClosed","fwCloseHandler"],[0,"keydown","onKeyDonw"]]],[1,"fw-icon",{name:[1],size:[2],color:[1],svgHTML:[32]}],[1,"fw-select-option",{value:[513],selected:[1540],disabled:[1540],html:[1540],optionText:[513,"option-text"],htmlContent:[1,"html-content"]}],[1,"fw-tag",{text:[513],disabled:[516],value:[513]}]]]],e)}))}}})); |
@@ -398,2 +398,6 @@ /* eslint-disable */ | ||
/** | ||
* Set true to disable the element | ||
*/ | ||
"disabled": boolean; | ||
/** | ||
* Format in which time values are populated in the list box. If the value is hh:mm p, the time values are in the 12-hour format. If the value is hh:mm, the time values are in the 24-hr format. | ||
@@ -1050,2 +1054,6 @@ */ | ||
/** | ||
* Set true to disable the element | ||
*/ | ||
"disabled"?: boolean; | ||
/** | ||
* Format in which time values are populated in the list box. If the value is hh:mm p, the time values are in the 12-hour format. If the value is hh:mm, the time values are in the 24-hr format. | ||
@@ -1052,0 +1060,0 @@ */ |
@@ -75,2 +75,3 @@ import { EventEmitter } from '../../stencil-public-runtime'; | ||
fwBlur: EventEmitter; | ||
private changeEmittable; | ||
private closeDropdown; | ||
@@ -77,0 +78,0 @@ private innerOnFocus; |
@@ -11,2 +11,6 @@ export declare class Timepicker { | ||
/** | ||
* Set true to disable the element | ||
*/ | ||
disabled: boolean; | ||
/** | ||
* Represent the intervals and can be a number or array of numbers representing the minute values in an hour | ||
@@ -13,0 +17,0 @@ */ |
@@ -18,3 +18,3 @@ { | ||
"author": "Freshworks Inc", | ||
"version": "2.2.4", | ||
"version": "2.3.0", | ||
"description": "Crayons for Developer Platform", | ||
@@ -21,0 +21,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2650078
25419
486