@nylas/web-elements 0.0.0-test-20250320180623 → 0.0.0-test-20250320184617
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/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +25 -25
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +247 -247
- package/dist/cjs/button-component_2.cjs.entry.js +1 -1
- package/dist/cjs/button-component_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +17 -18
- package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +5 -5
- package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/multi-select-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/multi-select-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-provider.cjs.entry.js.map +1 -1
- package/dist/cjs/scheduler-store-df3a9a3a.js.map +1 -1
- package/dist/collection/components/design-system/button-component/button-component.js +4 -3
- package/dist/collection/components/design-system/button-component/button-component.js.map +1 -1
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +10 -7
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js.map +1 -1
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +5 -4
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js.map +1 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +13 -9
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js.map +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js +2 -2
- package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +30 -15
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +15 -16
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
- package/dist/collection/connector/shared/api/auth.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
- package/dist/components/button-component2.js +1 -1
- package/dist/components/button-component2.js.map +1 -1
- package/dist/components/input-dropdown2.js +1 -1
- package/dist/components/input-dropdown2.js.map +1 -1
- package/dist/components/multi-select-dropdown2.js +2 -2
- package/dist/components/multi-select-dropdown2.js.map +1 -1
- package/dist/components/nylas-buffer-time2.js +2 -2
- package/dist/components/nylas-buffer-time2.js.map +1 -1
- package/dist/components/nylas-editor-tabs-group2.js +5 -5
- package/dist/components/nylas-editor-tabs-group2.js.map +1 -1
- package/dist/components/nylas-event-duration2.js +15 -16
- package/dist/components/nylas-event-duration2.js.map +1 -1
- package/dist/components/nylas-provider.js.map +1 -1
- package/dist/components/scheduler-store.js.map +1 -1
- package/dist/components/select-dropdown2.js +1 -1
- package/dist/components/select-dropdown2.js.map +1 -1
- package/dist/esm/button-component_2.entry.js +1 -1
- package/dist/esm/button-component_2.entry.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_36.entry.js +17 -18
- package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
- package/dist/esm/chevron-icon_3.entry.js +1 -1
- package/dist/esm/chevron-icon_3.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_6.entry.js +5 -5
- package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
- package/dist/esm/input-dropdown_2.entry.js +1 -1
- package/dist/esm/input-dropdown_2.entry.js.map +1 -1
- package/dist/esm/multi-select-dropdown_2.entry.js +2 -2
- package/dist/esm/multi-select-dropdown_2.entry.js.map +1 -1
- package/dist/esm/nylas-provider.entry.js.map +1 -1
- package/dist/esm/scheduler-store-ef022be9.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-a6a52e17.entry.js → p-09bbd467.entry.js} +2 -2
- package/dist/nylas-web-elements/p-09bbd467.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-6371e0a3.entry.js → p-0d80f50b.entry.js} +2 -2
- package/dist/nylas-web-elements/p-0d80f50b.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-1fb32e0e.entry.js.map +1 -1
- package/dist/nylas-web-elements/{p-19f6fcf8.entry.js → p-3ca36162.entry.js} +2 -2
- package/dist/nylas-web-elements/p-3ca36162.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-78bd1f85.entry.js → p-51434e4a.entry.js} +2 -2
- package/dist/nylas-web-elements/p-51434e4a.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-731a856b.js.map +1 -1
- package/dist/nylas-web-elements/p-7b787c73.entry.js +8 -0
- package/dist/nylas-web-elements/p-7b787c73.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-55886492.entry.js → p-b1c57792.entry.js} +2 -2
- package/dist/nylas-web-elements/p-b1c57792.entry.js.map +1 -0
- package/dist/types/components/design-system/button-component/button-component.d.ts +1 -2
- package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +1 -6
- package/dist/types/components/design-system/multi-select-dropdown/multi-select-dropdown.d.ts +1 -7
- package/dist/types/components/design-system/select-dropdown/select-dropdown.d.ts +1 -6
- package/dist/types/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.d.ts +12 -11
- package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +2 -2
- package/dist/types/components.d.ts +7 -7
- package/dist/types/connector/nylas-connector/index.d.ts +1 -1
- package/dist/types/connector/shared/api/auth.d.ts +1 -1
- package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
- package/package.json +3 -3
- package/dist/nylas-web-elements/p-19f6fcf8.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-463d9c42.entry.js +0 -8
- package/dist/nylas-web-elements/p-463d9c42.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-55886492.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-6371e0a3.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-78bd1f85.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-a6a52e17.entry.js.map +0 -1
|
@@ -23,7 +23,7 @@ const ButtonComponent = class {
|
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
25
|
const className = `button-${this.variant}` + (this.disabled ? ' disabled' : '');
|
|
26
|
-
return (index.h("button", { key: '
|
|
26
|
+
return (index.h("button", { key: '0d4e2bd6da64d91dc45672f11baf5ab9e2952788', class: className, disabled: this.disabled, type: "type", title: this.tooltip, onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, !!this.isLoading && index.h("loading-icon", { slot: "icon" }), index.h("slot", { key: 'f92c1e76e0bd689686f269411bae2762c57028ac' })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
ButtonComponent.style = ButtonComponentStyle0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"button-component.loading-icon.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,m1EAAm1E,CAAC;AAC/2E,8BAAe,kBAAkB;;
|
|
1
|
+
{"file":"button-component.loading-icon.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,m1EAAm1E,CAAC;AAC/2E,8BAAe,kBAAkB;;MCMpB,eAAe;;;uBAEI,SAAS;wBAGX,KAAK;oBAEV,QAAQ;uBACL,EAAE;yBACC,KAAK;;;;;;;IAOlC,MAAM;QACJ,MAAM,SAAS,GAAG,UAAU,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,QAAQ,GAAG,WAAW,GAAG,EAAE,CAAC,CAAC;QAEhF,QACEA,qEACE,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,IAAI,CAAC,OAAO,EACnB,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAClC,UAAU,EAAE,IAAI,CAAC,eAAe,EAChC,OAAO,EAAE,IAAI,CAAC,YAAY,EAC1B,MAAM,EAAE,IAAI,CAAC,WAAW,IAEvB,CAAC,CAAC,IAAI,CAAC,SAAS,IAAIA,0BAAc,IAAI,EAAC,MAAM,GAAgB,EAC9DA,oEAAa,CACN,EACT;KACH;;;;AC1CH,MAAM,UAAU,GAAG,4WAA4W,CAAC;AAChY,0BAAe,UAAU;;MCMZ,WAAW;;;qBACE,IAAI;sBACH,IAAI;;IAE7B,MAAM;QACJ,QAEEA,kEAAK,KAAK,EAAC,MAAM,IACfA,kEAAK,KAAK,EAAC,KAAK,GAAO,EACvBA,kEAAK,KAAK,EAAC,KAAK,GAAO,EACvBA,kEAAK,KAAK,EAAC,KAAK,GAAO,CACnB,EACN;KACH;;;;;;;","names":["h"],"sources":["src/components/design-system/button-component/button-component.scss?tag=button-component&encapsulation=scoped","src/components/design-system/button-component/button-component.tsx","src/common/icons/loading.css?tag=loading-icon&encapsulation=shadow","src/common/icons/loading.tsx"],"sourcesContent":["@import '../../../common/mixins/buttons.scss';\n@import '../../../common/styles/variables.scss';\n\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.75rem;\n height: 48px;\n border: none;\n border-radius: var(--nylas-border-radius-2x);\n font-size: 16px;\n line-height: 24px;\n padding: 0 1rem;\n cursor: pointer;\n font-family: var(--nylas-font-family);\n font-weight: 600;\n width: 100%;\n\n @media #{$mobile} {\n width: 100%;\n }\n\n &.button-primary {\n @include primary-button;\n }\n\n &.button-basic {\n border: 1px solid var(--nylas-base-300);\n color: var(--nylas-base-700);\n background: transparent;\n\n &:hover {\n background: transparent;\n border-color: var(--nylas-primary);\n }\n\n &:active {\n background: transparent;\n border-color: var(--nylas-base-600);\n border-width: 2px;\n }\n\n &:disabled {\n background: transparent;\n border-color: var(--nylas-base-300);\n color: var(--nylas-base-300);\n cursor: not-allowed;\n }\n }\n\n &.button-destructive {\n border: 1px solid var(--nylas-base-300);\n color: var(--nylas-error);\n background: transparent;\n\n &:hover {\n background: transparent;\n border-color: var(--nylas-error);\n }\n\n &:active {\n background: transparent;\n border-color: var(--nylas-error-pressed);\n border-width: 2px;\n color: var(--nylas-error-pressed);\n }\n\n &:disabled {\n background: transparent;\n border-color: var(--nylas-base-300);\n color: var(--nylas-base-300);\n cursor: not-allowed;\n }\n }\n\n &.button-invisible {\n background: transparent;\n color: var(--nylas-base-800);\n border: none;\n\n &:hover {\n background: var(--nylas-base-50);\n color: var(--nylas-primary);\n }\n\n &:active {\n background: var(--nylas-base-50);\n color: var(--nylas-base-850);\n }\n\n &:disabled {\n background: transparent;\n color: var(--nylas-base-300);\n cursor: not-allowed;\n }\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport { ButtonType } from '@nylas/core';\n@Component({\n tag: 'button-component',\n styleUrl: 'button-component.scss',\n scoped: true,\n})\nexport class ButtonComponent {\n // Define a prop to accept the button type\n @Prop() variant: ButtonType = 'primary';\n\n // Define a prop for disabled state\n @Prop() disabled: boolean = false;\n\n @Prop() type: string = 'button';\n @Prop() tooltip: string = '';\n @Prop() isLoading: boolean = false;\n @Prop() clickHandler?: (event: MouseEvent) => void;\n @Prop() mouseOverHandler?: (event: MouseEvent) => void;\n @Prop() mouseOutHandler?: (event: MouseEvent) => void;\n @Prop() focusHandler?: (event: FocusEvent) => void;\n @Prop() blurHandler?: (event: FocusEvent) => void;\n\n render() {\n const className = `button-${this.variant}` + (this.disabled ? ' disabled' : '');\n\n return (\n <button\n class={className}\n disabled={this.disabled}\n type=\"type\"\n title={this.tooltip}\n onClick={this.clickHandler}\n onMouseOver={this.mouseOverHandler}\n onMouseOut={this.mouseOutHandler}\n onFocus={this.focusHandler}\n onBlur={this.blurHandler}\n >\n {!!this.isLoading && <loading-icon slot=\"icon\"></loading-icon>}\n <slot></slot>\n </button>\n );\n }\n}\n",".wave {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dot {\n width: 4px;\n height: 4px;\n background-color: var(--dot-color, white);\n border-radius: 50%;\n margin: 0 2px;\n animation: wave 1.5s infinite ease-in-out;\n}\n\n.dot:nth-child(2) {\n animation-delay: 0.2s;\n}\n\n.dot:nth-child(3) {\n animation-delay: 0.4s;\n}\n\n@keyframes wave {\n 0%,\n 60%,\n 100% {\n transform: translateY(0);\n }\n 30% {\n transform: translateY(-4px);\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'loading-icon',\n styleUrl: 'loading.css',\n shadow: true,\n})\nexport class LoadingIcon {\n @Prop() width: string = '15';\n @Prop() height: string = '15';\n\n render() {\n return (\n // Loading icon svg\n <div class=\"wave\">\n <div class=\"dot\"></div>\n <div class=\"dot\"></div>\n <div class=\"dot\"></div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -4160,10 +4160,10 @@ const NylasBufferTime = class {
|
|
|
4160
4160
|
const value = i * 5;
|
|
4161
4161
|
return {
|
|
4162
4162
|
label: value.toString(),
|
|
4163
|
-
value: value,
|
|
4163
|
+
value: value.toString(),
|
|
4164
4164
|
};
|
|
4165
4165
|
});
|
|
4166
|
-
return (index$1.h(index$1.Host, null, index$1.h("div", { class: "nylas-buffer-time", part: "nbt" }, index$1.h("div", { class: "header", part: "nbt__header" }, index$1.h("h3", null, utils.instance.t('nylasBufferTime.headerTitle')), index$1.h("p", null, utils.instance.t('nylasBufferTime.headerSubTitle'), index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, utils.instance.t('nylasBufferTime.tooltip.desc'))))), index$1.h("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, index$1.h("div", { class: "nylas-buffer-time__dropdown" }, index$1.h("div", { class: "nylas-buffer-time__row" }, index$1.h("label", null, utils.instance.t('nylasBufferTime.beforeBufferLabel')), index$1.h("div", { class: "dropdown-container" }, this.componentLoaded && (index$1.h("select-dropdown", { id: "before-buffer-time", withSearch: false, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value
|
|
4166
|
+
return (index$1.h(index$1.Host, null, index$1.h("div", { class: "nylas-buffer-time", part: "nbt" }, index$1.h("div", { class: "header", part: "nbt__header" }, index$1.h("h3", null, utils.instance.t('nylasBufferTime.headerTitle')), index$1.h("p", null, utils.instance.t('nylasBufferTime.headerSubTitle'), index$1.h("tooltip-component", null, index$1.h("info-icon", { slot: "tooltip-icon" }), index$1.h("span", { slot: "tooltip-content" }, utils.instance.t('nylasBufferTime.tooltip.desc'))))), index$1.h("div", { class: "nylas-buffer-time__body", part: "nbt__body" }, index$1.h("div", { class: "nylas-buffer-time__dropdown" }, index$1.h("div", { class: "nylas-buffer-time__row" }, index$1.h("label", null, utils.instance.t('nylasBufferTime.beforeBufferLabel')), index$1.h("div", { class: "dropdown-container" }, this.componentLoaded && (index$1.h("select-dropdown", { id: "before-buffer-time", withSearch: false, name: "before-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-before, sd_dropdown-button: nbt__dropdown-button-before, sd_dropdown-content: nbt__dropdown-content-before", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value === this.selectedBeforeBufferTime.toString()) })), index$1.h("span", null, utils.instance.t('nylasBufferTime.minutesShort')))), index$1.h("div", { class: "nylas-buffer-time__row" }, index$1.h("label", null, utils.instance.t('nylasBufferTime.afterBufferLabel')), index$1.h("div", { class: "dropdown-container" }, this.componentLoaded && (index$1.h("select-dropdown", { id: "after-buffer-time", withSearch: false, name: "after-buffer-time", exportparts: "sd_dropdown: nbt__dropdown-after, sd_dropdown-button: nbt__dropdown-button-after, sd_dropdown-content: nbt__dropdown-content-after", options: minuteOptions, defaultSelectedOption: minuteOptions.find(min => min.value === this.selectedAfterBufferTime.toString()) })), index$1.h("span", null, utils.instance.t('nylasBufferTime.minutesShort'))))), index$1.h("div", { class: "nylas-buffer-time__preview", part: "nbt__preview" }, index$1.h("h4", null, utils.instance.t('nylasBufferTime.previewHeader')), this.renderPreview())))));
|
|
4167
4167
|
}
|
|
4168
4168
|
static get formAssociated() { return true; }
|
|
4169
4169
|
get host() { return index$1.getElement(this); }
|
|
@@ -5352,10 +5352,10 @@ const NylasEventDuration = class {
|
|
|
5352
5352
|
this.durationIncrement = undefined;
|
|
5353
5353
|
this.error = '';
|
|
5354
5354
|
this.durationMinutesOptions = [
|
|
5355
|
-
{ value: 15, label: '15' },
|
|
5356
|
-
{ value: 30, label: '30' },
|
|
5357
|
-
{ value: 45, label: '45' },
|
|
5358
|
-
{ value: 60, label: '60' },
|
|
5355
|
+
{ value: (15).toString(), label: '15' },
|
|
5356
|
+
{ value: (30).toString(), label: '30' },
|
|
5357
|
+
{ value: (45).toString(), label: '45' },
|
|
5358
|
+
{ value: (60).toString(), label: '60' },
|
|
5359
5359
|
];
|
|
5360
5360
|
}
|
|
5361
5361
|
elementNameChangedHandler(newValue) {
|
|
@@ -5406,14 +5406,14 @@ const NylasEventDuration = class {
|
|
|
5406
5406
|
setDurationMintueOptions() {
|
|
5407
5407
|
if (this.durationIncrement === 1) {
|
|
5408
5408
|
this.durationMinutesOptions = [
|
|
5409
|
-
{ value: 15, label: '15' },
|
|
5410
|
-
{ value: 30, label: '30' },
|
|
5411
|
-
{ value: 45, label: '45' },
|
|
5412
|
-
{ value: 60, label: '60' },
|
|
5409
|
+
{ value: (15).toString(), label: '15' },
|
|
5410
|
+
{ value: (30).toString(), label: '30' },
|
|
5411
|
+
{ value: (45).toString(), label: '45' },
|
|
5412
|
+
{ value: (60).toString(), label: '60' },
|
|
5413
5413
|
];
|
|
5414
5414
|
}
|
|
5415
5415
|
else {
|
|
5416
|
-
this.durationMinutesOptions = Array.from({ length: 23 }, (_, i) => ({ value: i + 1, label: (i + 1).toString() }));
|
|
5416
|
+
this.durationMinutesOptions = Array.from({ length: 23 }, (_, i) => ({ value: (i + 1).toString(), label: (i + 1).toString() }));
|
|
5417
5417
|
}
|
|
5418
5418
|
return this.durationMinutesOptions;
|
|
5419
5419
|
}
|
|
@@ -5435,7 +5435,7 @@ const NylasEventDuration = class {
|
|
|
5435
5435
|
nylasFormDropdownChangedHandler(event) {
|
|
5436
5436
|
utils.debug('nylas-calendar-picker', 'nylasFormDropdownChangedHandler', event.detail);
|
|
5437
5437
|
const { value } = event.detail;
|
|
5438
|
-
this.durationIncrement = parseInt(value);
|
|
5438
|
+
this.durationIncrement = parseInt(value.toString());
|
|
5439
5439
|
if (this.durationIncrement === 1) {
|
|
5440
5440
|
this.duration = 60;
|
|
5441
5441
|
}
|
|
@@ -5453,9 +5453,8 @@ const NylasEventDuration = class {
|
|
|
5453
5453
|
inputOptionChangedHandler(event) {
|
|
5454
5454
|
utils.debug('nylas-calendar-picker', 'inputOptionChangedHandler', event.detail);
|
|
5455
5455
|
const { value } = event.detail;
|
|
5456
|
-
this.duration = value;
|
|
5456
|
+
this.duration = parseFloat(value.toString());
|
|
5457
5457
|
this.durationMinutes = this.duration * this.durationIncrement;
|
|
5458
|
-
console.log('###errror:', this.validateDuration(), this.durationMinutes, this.durationIncrement);
|
|
5459
5458
|
if (this.validateDuration() !== '') {
|
|
5460
5459
|
return;
|
|
5461
5460
|
}
|
|
@@ -5464,12 +5463,12 @@ const NylasEventDuration = class {
|
|
|
5464
5463
|
}
|
|
5465
5464
|
render() {
|
|
5466
5465
|
const durationOptions = [
|
|
5467
|
-
{ value: 1, label: utils.instance.t('timeDuration', { context: 'minute' }) },
|
|
5468
|
-
{ value: 60, label: utils.instance.t('timeDuration', { context: 'hour' }) },
|
|
5466
|
+
{ value: (1).toString(), label: utils.instance.t('timeDuration', { context: 'minute' }) },
|
|
5467
|
+
{ value: (60).toString(), label: utils.instance.t('timeDuration', { context: 'hour' }) },
|
|
5469
5468
|
];
|
|
5470
|
-
return (index$1.h(index$1.Host, { key: '
|
|
5469
|
+
return (index$1.h(index$1.Host, { key: '291d5aada4656f1e7a3ad639459090a164c667cd' }, index$1.h("div", { key: '389ed738c72f9af0b2413360ca30048a903fe834', class: "nylas-event-duration", part: "ned" }, index$1.h("label", { key: '3ab5ae91a80a98386cd77ffc2ed9bee1773e2cce', htmlFor: "duration" }, utils.instance.t('nylasEventDuration.headerTitle'), index$1.h("span", { key: 'a3eb28826f0237e227c6b9c4fbbbbb96544df143', class: "required" }, "*")), index$1.h("div", { key: '48e6f8aebb8f14fbe0ff74a600c1d06f0b65d2b4', class: "nylas-event-duration__wrapper" }, index$1.h("input-dropdown", { key: '4502e6a0eea47789edb136886dc0de048893b639', class: this.error ? 'error' : '', name: 'event-duration', options: this.durationMinutesOptions, inputValue: this.duration.toString(), exportparts: "id_dropdown: ned__input_dropdown, id_dropdown-input: ned__input_dropdown-input, id_dropdown-content: ned__input_dropdown-content", defaultInputOption: this.durationMinutesOptions.find(i => i.value === this.duration.toString()) }), this.durationIncrement && (index$1.h("select-dropdown", { name: 'event-duration', options: durationOptions, pluralizedLabel: this.duration > 1
|
|
5471
5470
|
? utils.instance.t(`time.${this.durationIncrement === 60 ? 'hours' : 'minutes'}`)
|
|
5472
|
-
: utils.instance.t(`time.${this.durationIncrement === 60 ? 'hour' : 'minute'}`), exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value
|
|
5471
|
+
: utils.instance.t(`time.${this.durationIncrement === 60 ? 'hour' : 'minute'}`), exportparts: "sd_dropdown: ned__dropdown, sd_dropdown-button: ned__dropdown-button, sd_dropdown-content: ned__dropdown-content", defaultSelectedOption: durationOptions.find(i => i.value === this.durationIncrement.toString()), withSearch: false }))), index$1.h("div", { key: 'f847e873066be7c174f7c5eea94e4cdc473d1ecd', class: `nylas-event-duration__error-container ${this.error ? 'visible' : ''}`, part: "ned__error-container" }, index$1.h("div", { key: '7cac0c1055ce71dd4de9cf08558d74c051527eb5', class: "nylas-event-duration__error", part: "ned__error" }, this.error)))));
|
|
5473
5472
|
}
|
|
5474
5473
|
static get formAssociated() { return true; }
|
|
5475
5474
|
get host() { return index$1.getElement(this); }
|