@rededor/cura 2.0.0-alpha.13 → 2.0.0-alpha.16
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/cura-accordion_22.cjs.entry.js +65 -74
- package/dist/cjs/cura-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/cura-display.cjs.entry.js +1 -1
- package/dist/cjs/cura-dropdown-search-not-found.cjs.entry.js +1 -1
- package/dist/cjs/cura-icons-view.cjs.entry.js +1 -1
- package/dist/cjs/cura-input-date.cjs.entry.js +1 -1
- package/dist/cjs/cura-input-textarea.cjs.entry.js +236 -0
- package/dist/cjs/cura-loader-bar.cjs.entry.js +1 -1
- package/dist/cjs/cura-modal.cjs.entry.js +1 -1
- package/dist/cjs/cura-progress-bar_2.cjs.entry.js +2 -2
- package/dist/cjs/cura-radio.cjs.entry.js +1 -1
- package/dist/cjs/cura-stepper.cjs.entry.js +1 -1
- package/dist/cjs/cura-switch.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-button.cjs.entry.js +1 -1
- package/dist/cjs/cura-tabs-transparent.cjs.entry.js +1 -1
- package/dist/cjs/cura-toast.cjs.entry.js +1 -1
- package/dist/cjs/cura-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/cura.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/utils-DMHZ2n4p.js +47 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/cura-calendar/cura-calendar.css +13 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +92 -11
- package/dist/collection/components/cura-calendar/cura-calendar.stories.js +29 -1
- package/dist/collection/components/cura-calendar/cura-calendar.type.js +1 -0
- package/dist/collection/components/cura-card/cura-card.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-category/cura-dropdown-search-category.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-not-found/cura-dropdown-search-not-found.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search-option/cura-dropdown-search-option.js +1 -1
- package/dist/collection/components/cura-dropdown-search/cura-dropdown-search.js +1 -1
- package/dist/collection/components/cura-icon/cura-icon.js +1 -1
- package/dist/collection/components/cura-icons-view/cura-icons-view.js +1 -1
- package/dist/collection/components/cura-modal/cura-modal.js +1 -1
- package/dist/collection/components/cura-page-template/cura-page-template.js +1 -1
- package/dist/collection/components/cura-stepper/cura-progress-bar/cura-progress-bar.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper-item/cura-stepper-item.js +1 -1
- package/dist/collection/components/cura-stepper/cura-stepper.js +1 -1
- package/dist/collection/components/cura-toast/cura-toast.js +1 -1
- package/dist/collection/components/cura-tooltip/cura-tooltip.js +1 -1
- package/dist/collection/components/forms/cura-checkbox/cura-checkbox.js +1 -1
- package/dist/collection/components/forms/cura-input-date/cura-input-date.js +1 -1
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.css +174 -0
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.js +613 -0
- package/dist/collection/components/forms/cura-input-textarea/cura-input-textarea.stories.js +222 -0
- package/dist/collection/components/forms/cura-label/cura-label.js +1 -1
- package/dist/collection/components/forms/cura-radio/cura-radio.js +1 -1
- package/dist/collection/components/forms/cura-select/cura-select.js +3 -3
- package/dist/collection/components/forms/cura-select-options/cura-select-option.js +1 -1
- package/dist/collection/components/forms/cura-switch/cura-switch.js +1 -1
- package/dist/collection/components/loaders/cura-loader-bar/cura-loader-bar.js +1 -1
- package/dist/collection/components/loaders/cura-loader-circle/cura-loader-circle.js +1 -1
- package/dist/collection/components/tabs/cura-tabs/cura-tabs.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-button/cura-tabs-button.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-group/cura-tabs-group.js +1 -1
- package/dist/collection/components/tabs/cura-tabs-transparent/cura-tabs-transparent.js +1 -1
- package/dist/collection/components/text/cura-display/cura-display.js +1 -1
- package/dist/collection/components/text/cura-heading/cura-heading.js +1 -1
- package/dist/collection/components/text/cura-paragraph/cura-paragraph.js +1 -1
- package/dist/components/cura-accordion-item.js +1 -1
- package/dist/components/cura-alert.js +1 -1
- package/dist/components/cura-badge-counter.js +1 -1
- package/dist/components/cura-badge-distance.js +1 -1
- package/dist/components/cura-badge-pill.js +1 -1
- package/dist/components/cura-button-outline.js +1 -1
- package/dist/components/cura-button-select.js +1 -1
- package/dist/components/cura-button-transparent.js +1 -1
- package/dist/components/cura-button.js +1 -1
- package/dist/components/cura-calendar.js +1 -1
- package/dist/components/cura-card.js +1 -1
- package/dist/components/cura-checkbox.js +1 -1
- package/dist/components/cura-display.js +1 -1
- package/dist/components/cura-dropdown-search-category.js +1 -1
- package/dist/components/cura-dropdown-search-not-found.js +1 -1
- package/dist/components/cura-dropdown-search-option.js +1 -1
- package/dist/components/cura-dropdown-search.js +1 -1
- package/dist/components/cura-heading.js +1 -1
- package/dist/components/cura-icon.js +1 -1
- package/dist/components/cura-icons-view.js +1 -1
- package/dist/components/cura-input-date.js +1 -1
- package/dist/components/cura-input-text.js +1 -1
- package/dist/components/cura-input-textarea.d.ts +11 -0
- package/dist/components/cura-input-textarea.js +1 -0
- package/dist/components/cura-label.js +1 -1
- package/dist/components/cura-loader-bar.js +1 -1
- package/dist/components/cura-loader-circle.js +1 -1
- package/dist/components/cura-modal.js +1 -1
- package/dist/components/cura-page-template.js +1 -1
- package/dist/components/cura-paragraph.js +1 -1
- package/dist/components/cura-progress-bar.js +1 -1
- package/dist/components/cura-radio.js +1 -1
- package/dist/components/cura-select-option.js +1 -1
- package/dist/components/cura-select.js +1 -1
- package/dist/components/cura-stepper-item.js +1 -1
- package/dist/components/cura-stepper.js +1 -1
- package/dist/components/cura-switch.js +1 -1
- package/dist/components/cura-tabs-button.js +1 -1
- package/dist/components/cura-tabs-group.js +1 -1
- package/dist/components/cura-tabs-transparent.js +1 -1
- package/dist/components/cura-tabs.js +1 -1
- package/dist/components/cura-toast.js +1 -1
- package/dist/components/cura-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B2TDH4aP.js +1 -0
- package/dist/components/{p-C05r6CQV.js → p-BHVSbubb.js} +1 -1
- package/dist/components/{p-B2RN7oe_.js → p-BKDpza6x.js} +1 -1
- package/dist/components/{p-BYA8glxD.js → p-BuETJyzc.js} +1 -1
- package/dist/components/p-CalvBU-U.js +1 -0
- package/dist/components/{p-CCkEqDZb.js → p-CksTHXxZ.js} +1 -1
- package/dist/components/{p-DxJedO3K.js → p-D4hCuriT.js} +1 -1
- package/dist/components/{p-fn4zJrKE.js → p-DI66_jP6.js} +1 -1
- package/dist/components/{p-Bf21UQXV.js → p-DQP7jRHp.js} +1 -1
- package/dist/components/p-DgK8dEko.js +1 -0
- package/dist/components/{p-DXlGQp3a.js → p-DgQJ968V.js} +1 -1
- package/dist/components/{p-fR02COZb.js → p-Dmalf4Oj.js} +1 -1
- package/dist/components/{p-D6xuYQiO.js → p-KovUKiTX.js} +1 -1
- package/dist/components/{p-D7WNwjv-.js → p-PiUhcFob.js} +1 -1
- package/dist/components/{p-C7so9xnO.js → p-TnCIk87O.js} +1 -1
- package/dist/components/{p-BSdkRryc.js → p-i55vIhdM.js} +1 -1
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/{p-bf99e8bf.entry.js → p-18a1cadf.entry.js} +1 -1
- package/dist/cura/{p-ddf4d240.entry.js → p-1c48aaa7.entry.js} +1 -1
- package/dist/cura/{p-b7369d04.entry.js → p-4178e3e6.entry.js} +1 -1
- package/dist/cura/p-5b26a166.entry.js +1 -0
- package/dist/cura/{p-42e72d12.entry.js → p-604f1c1d.entry.js} +1 -1
- package/dist/cura/{p-9de85de6.entry.js → p-906c8b66.entry.js} +1 -1
- package/dist/cura/p-CUmwazb8.js +1 -0
- package/dist/cura/p-a305e17a.entry.js +1 -0
- package/dist/cura/{p-3a3202f0.entry.js → p-a72db13d.entry.js} +1 -1
- package/dist/cura/{p-c247c93b.entry.js → p-b157025d.entry.js} +1 -1
- package/dist/cura/{p-f911a6c5.entry.js → p-b447fca2.entry.js} +1 -1
- package/dist/cura/{p-2e2e2b4d.entry.js → p-bd649bed.entry.js} +1 -1
- package/dist/cura/{p-c18d7f16.entry.js → p-c987ddde.entry.js} +1 -1
- package/dist/cura/{p-b14ae206.entry.js → p-d43fb791.entry.js} +1 -1
- package/dist/cura/{p-7965fe63.entry.js → p-d64ef37d.entry.js} +1 -1
- package/dist/cura/{p-1dc9c478.entry.js → p-f072b011.entry.js} +1 -1
- package/dist/cura/{p-5357f7bd.entry.js → p-f407bd73.entry.js} +1 -1
- package/dist/cura/p-f638eda8.entry.js +1 -0
- package/dist/esm/cura-accordion_22.entry.js +58 -67
- package/dist/esm/cura-checkbox.entry.js +1 -1
- package/dist/esm/cura-display.entry.js +1 -1
- package/dist/esm/cura-dropdown-search-not-found.entry.js +1 -1
- package/dist/esm/cura-icons-view.entry.js +1 -1
- package/dist/esm/cura-input-date.entry.js +1 -1
- package/dist/esm/cura-input-textarea.entry.js +234 -0
- package/dist/esm/cura-loader-bar.entry.js +1 -1
- package/dist/esm/cura-modal.entry.js +1 -1
- package/dist/esm/cura-progress-bar_2.entry.js +2 -2
- package/dist/esm/cura-radio.entry.js +1 -1
- package/dist/esm/cura-stepper.entry.js +1 -1
- package/dist/esm/cura-switch.entry.js +1 -1
- package/dist/esm/cura-tabs-button.entry.js +1 -1
- package/dist/esm/cura-tabs-transparent.entry.js +1 -1
- package/dist/esm/cura-toast.entry.js +1 -1
- package/dist/esm/cura-tooltip.entry.js +1 -1
- package/dist/esm/cura.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/utils-BZCR971L.js +41 -0
- package/dist/types/components/cura-calendar/cura-calendar.d.ts +20 -2
- package/dist/types/components/cura-calendar/cura-calendar.stories.d.ts +29 -0
- package/dist/types/components/cura-calendar/cura-calendar.type.d.ts +4 -0
- package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.d.ts +116 -0
- package/dist/types/components/forms/cura-input-textarea/cura-input-textarea.stories.d.ts +188 -0
- package/dist/types/components.d.ts +232 -0
- package/package.json +2 -2
- package/dist/components/p-B8xnU6YS.js +0 -1
- package/dist/components/p-CG1lz5DR.js +0 -1
- package/dist/cura/p-47fdb124.entry.js +0 -1
- package/dist/cura/p-cbe8c690.entry.js +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-Ce1Pxw3V.js';
|
|
2
2
|
import { l as labelSizes } from './cura-button.definitions-BSI2FkNn.js';
|
|
3
3
|
import { r as requiredArgs, t as toDate, _ as _typeof, i as isBefore, a as isAfter } from './index-964stZ3D.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as addBodyScrollLockClass, r as removeBodyScrollLockClass, c as checkMobile, b as checkIOS, f as fakeInputIOSHack } from './utils-BZCR971L.js';
|
|
5
5
|
import { i as iconSizes } from './cura-icon.definitions-sjLA93YY.js';
|
|
6
6
|
import { l as labelSizes$1 } from './cura-tabs.definitions-CHcd-uKK.js';
|
|
7
7
|
import './theme-legacy-default-BTIDzOyO.js';
|
|
8
|
+
import './static-DfJS7YqS.js';
|
|
8
9
|
|
|
9
10
|
const curaAccordionCss = () => `:host{display:block;color:var(--font-color);font-size:var(--font-size);font-size:var(--font-size);font-family:var(--font-family);font-weight:var(--font-weight-regular)}`;
|
|
10
11
|
|
|
@@ -6794,12 +6795,13 @@ var locale = {
|
|
|
6794
6795
|
}
|
|
6795
6796
|
};
|
|
6796
6797
|
|
|
6797
|
-
const curaCalendarCss = () => `:host{display:block;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);margin:0 auto}:host .calendar{display:flex;flex-direction:column;gap:5px;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);border-radius:4px;overflow:hidden;background
|
|
6798
|
+
const curaCalendarCss = () => `:host{display:block;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);margin:0 auto}:host .calendar{display:flex;flex-direction:column;gap:5px;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);border-radius:4px;overflow:hidden;background:var(--color-neutral-purewhite);font-family:var(--font-family);position:relative}:host .calendar.embedded{border:2px solid var(--neutral-light);padding:0px 12px 12px 12px}:host .calendar.floating{box-shadow:0 4px 8px var(--neutral-light)}:host .header{position:relative;padding:12px 0}:host .header::after{content:"";position:absolute;bottom:0;left:2px;right:2px;border-bottom:2px dotted var(--neutral-light)}:host .month-year{display:flex;padding:12px 8px;justify-content:space-between;align-self:stretch}:host .month-year.dropdown{padding:0%}:host .select{display:flex;padding:7px 10px 0px;justify-content:center;align-items:center;gap:6px;flex:1 0 0}:host .drop-month{display:flex;max-width:118px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .drop-year{display:flex;min-width:80px;max-width:85px;padding:0px;align-items:flex-start;gap:0px;flex:1 0 0}:host .days-of-week{display:flex;height:30px;padding:4px;justify-content:center;align-items:center;gap:4px;flex-shrink:0}:host .day{flex:1;text-align:center}:host .dates{display:flex;flex-wrap:wrap;align-items:center;align-self:stretch;gap:0}:host .icon{cursor:pointer;position:relative;overflow:hidden;border-radius:50%}:host .icon.dropdown{margin-top:10px}:host .icon::before{content:"";position:absolute;border-radius:50%;top:50%;left:50%;width:20px;height:20px;background:var(--primary-base);transform:translate(-50%, -50%) scale(0);transition:transform 0.2s ease}:host .icon:active::before{transform:translate(-50%, -50%) scale(1)}:host .icon:active{transform:scale(1)}:host .collapsed-container{text-align:center;position:relative;display:flex;align-items:center;justify-content:center;padding-top:10px}:host .collapsed-container::before{content:"";position:absolute;bottom:0;top:0;left:2px;right:2px;border-top:2px dotted var(--neutral-light)}:host .date{display:flex;justify-content:center;align-items:center;height:auto;width:14.2857142857%;aspect-ratio:1;font-size:14px;cursor:pointer;position:relative;box-sizing:border-box;text-align:center;flex-shrink:0}:host .date.today{border:2px solid var(--primary-darker);border-radius:50%;color:var(--primary-darker)}:host .date.selected{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%}:host .date.default-dates{color:var(--select-label) !important;background:var(--primary-base);border-radius:50%;border:none}:host .date.invalid{color:var(--neutral-dark) !important;cursor:not-allowed}:host .date.invalid:hover{background:none;box-shadow:none}:host .date.valid{color:var(--primary-darker);font-weight:var(--font-weight-bold)}:host .date.range.start{border-radius:50% 0 0 50%;color:var(--select-label) !important;background:var(--primary-base)}:host .date.range.interval{border-radius:0;background:var(--primary-lighter);color:var(--neutral-black) !important}:host .date.range.interval.today{border:none}:host .date.range.end{border-radius:0 50% 50% 0;color:var(--select-label) !important;background:var(--primary-base)}@media (min-width: 992px){:host .date:hover{background:var(--primary-lighter);border-radius:50%;color:var(--neutral-white)}}:host select,:host input{width:60px;font-size:16px;box-shadow:0 2px 2px var(--neutral-black);padding:5px;border-radius:4px;border:1px solid #ccc;background:#f7f7f7}:host .--disabled .icon::before{display:none}:host .--disabled .date{cursor:initial}@media (min-width: 992px){:host .--disabled .date:hover{color:var(--neutral-dark);cursor:initial;background:none;box-shadow:none}}:host .--disabled .default-dates{background-color:transparent;color:var(--neutral-dark) !important}:host .--disabled .today{border:2px solid var(--neutral-dark);color:var(--neutral-dark);cursor:initial}:host .--disabled .valid{color:var(--neutral-dark);font-weight:initial}:host .loading-container{align-items:center;background-color:var(--color-neutral-purewhite);display:flex;flex-direction:column;gap:12px;height:100%;justify-content:center;position:absolute;width:calc(100% - 12px)}`;
|
|
6798
6799
|
|
|
6799
6800
|
const CuraCalendar = class {
|
|
6800
6801
|
constructor(hostRef) {
|
|
6801
6802
|
registerInstance(this, hostRef);
|
|
6802
6803
|
this.onchangeday = createEvent(this, "onchangeday");
|
|
6804
|
+
this.changeDateInView = createEvent(this, "changeDateInView");
|
|
6803
6805
|
/**
|
|
6804
6806
|
* Disable component
|
|
6805
6807
|
*
|
|
@@ -6807,6 +6809,13 @@ const CuraCalendar = class {
|
|
|
6807
6809
|
* @default false
|
|
6808
6810
|
*/
|
|
6809
6811
|
this.isDisabled = false;
|
|
6812
|
+
/**
|
|
6813
|
+
* Loading state
|
|
6814
|
+
*
|
|
6815
|
+
* @type {boolean}
|
|
6816
|
+
* @default false
|
|
6817
|
+
*/
|
|
6818
|
+
this.isLoading = false;
|
|
6810
6819
|
/**
|
|
6811
6820
|
* An array of specific dates to be highlighted or processed.
|
|
6812
6821
|
*
|
|
@@ -7134,6 +7143,7 @@ const CuraCalendar = class {
|
|
|
7134
7143
|
if (direction === 'next')
|
|
7135
7144
|
newMonth = addMonths(this.currentDate, 1);
|
|
7136
7145
|
this.currentDate = newMonth;
|
|
7146
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), newMonth);
|
|
7137
7147
|
}
|
|
7138
7148
|
/**
|
|
7139
7149
|
* Handle the month dropdown change.
|
|
@@ -7144,7 +7154,9 @@ const CuraCalendar = class {
|
|
|
7144
7154
|
const { months } = this.fetchMonthNames();
|
|
7145
7155
|
const newMonth = event.detail;
|
|
7146
7156
|
this.selectMonth = newMonth;
|
|
7147
|
-
|
|
7157
|
+
const currentDateUpdated = new Date(getYear(this.currentDate), months.indexOf(newMonth), 1);
|
|
7158
|
+
this.currentDate = currentDateUpdated;
|
|
7159
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), currentDateUpdated);
|
|
7148
7160
|
}
|
|
7149
7161
|
/**
|
|
7150
7162
|
* Handle the year input change.
|
|
@@ -7154,7 +7166,9 @@ const CuraCalendar = class {
|
|
|
7154
7166
|
onYearDropdownChange(event) {
|
|
7155
7167
|
const newYear = event.detail;
|
|
7156
7168
|
this.selectYear = newYear;
|
|
7157
|
-
|
|
7169
|
+
const currentDateUpdated = new Date(newYear, getMonth(this.currentDate), 1);
|
|
7170
|
+
this.currentDate = currentDateUpdated;
|
|
7171
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), currentDateUpdated);
|
|
7158
7172
|
}
|
|
7159
7173
|
/**
|
|
7160
7174
|
* Flatten date ranges into individual dates.
|
|
@@ -7163,7 +7177,7 @@ const CuraCalendar = class {
|
|
|
7163
7177
|
* @returns {Date[]} An array of individual dates.
|
|
7164
7178
|
*/
|
|
7165
7179
|
expandDateRanges(dates) {
|
|
7166
|
-
if (!dates)
|
|
7180
|
+
if (!dates || !Array.isArray(dates))
|
|
7167
7181
|
return [];
|
|
7168
7182
|
return dates.flatMap(date => {
|
|
7169
7183
|
if (typeof date === 'string')
|
|
@@ -7261,10 +7275,10 @@ const CuraCalendar = class {
|
|
|
7261
7275
|
this.collapsed = true;
|
|
7262
7276
|
return this.fetchDaysOfWeek();
|
|
7263
7277
|
}
|
|
7264
|
-
fetchDaysOfWeek() {
|
|
7278
|
+
fetchDaysOfWeek(currentDate) {
|
|
7265
7279
|
const DAYS_IN_CALENDAR_VIEW = 7;
|
|
7266
|
-
const start = startOfWeek(this.currentDate);
|
|
7267
|
-
const end = endOfWeek(this.currentDate);
|
|
7280
|
+
const start = startOfWeek(currentDate || this.currentDate);
|
|
7281
|
+
const end = endOfWeek(currentDate || this.currentDate);
|
|
7268
7282
|
const daysIncurrentDate = eachDayOfInterval({ start, end });
|
|
7269
7283
|
return daysIncurrentDate.slice(0, DAYS_IN_CALENDAR_VIEW);
|
|
7270
7284
|
}
|
|
@@ -7275,11 +7289,12 @@ const CuraCalendar = class {
|
|
|
7275
7289
|
if (direction === 'next')
|
|
7276
7290
|
newWeek = addWeeks(this.currentDate, 1);
|
|
7277
7291
|
this.currentDate = newWeek;
|
|
7292
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed), newWeek);
|
|
7278
7293
|
}
|
|
7279
|
-
fetchDaysOfMonth() {
|
|
7294
|
+
fetchDaysOfMonth(currentDate) {
|
|
7280
7295
|
const DAYS_IN_CALENDAR_VIEW = 35;
|
|
7281
|
-
const start = startOfMonth(this.currentDate);
|
|
7282
|
-
const end = endOfMonth(this.currentDate);
|
|
7296
|
+
const start = startOfMonth(currentDate || this.currentDate);
|
|
7297
|
+
const end = endOfMonth(currentDate || this.currentDate);
|
|
7283
7298
|
const daysIncurrentDate = eachDayOfInterval({ start, end });
|
|
7284
7299
|
const startWeekDay = getDay(start);
|
|
7285
7300
|
const prevMonthEnd = endOfMonth(subMonths(start, 1));
|
|
@@ -7406,7 +7421,15 @@ const CuraCalendar = class {
|
|
|
7406
7421
|
'--width': this.width,
|
|
7407
7422
|
'--min-width': this.minWidth,
|
|
7408
7423
|
'--max-width': this.maxWidth,
|
|
7424
|
+
'--color-neutral-purewhite': window.CuraAPI.theme.colors.getColor(`neutral-purewhite`)
|
|
7425
|
+
};
|
|
7426
|
+
}
|
|
7427
|
+
sendEventChangeDateInView(isCollapsed, currentDate) {
|
|
7428
|
+
const eventData = {
|
|
7429
|
+
datesInView: isCollapsed ? this.fetchDaysOfWeek(currentDate) : this.fetchDaysOfMonth(currentDate),
|
|
7430
|
+
monthDays: this.fetchDaysOfMonth(currentDate)
|
|
7409
7431
|
};
|
|
7432
|
+
this.changeDateInView.emit(eventData);
|
|
7410
7433
|
}
|
|
7411
7434
|
watchDefaultDatesArray() {
|
|
7412
7435
|
this.selectedDates = this.customDates;
|
|
@@ -7424,11 +7447,14 @@ const CuraCalendar = class {
|
|
|
7424
7447
|
}
|
|
7425
7448
|
this.defaultDates = this.expandDateRanges(newValue);
|
|
7426
7449
|
}
|
|
7450
|
+
watchCollapse(isCollapsed) {
|
|
7451
|
+
this.sendEventChangeDateInView(isCollapsed, this.currentDate);
|
|
7452
|
+
}
|
|
7427
7453
|
render() {
|
|
7428
7454
|
const { months } = this.fetchMonthNames();
|
|
7429
|
-
return (h(Host, { key: '
|
|
7455
|
+
return (h(Host, { key: 'ce5e455df204f6d7a8a3a34eba8198d33e1dd798', style: this.getHostCSSProperties() }, h("div", { key: 'b09f8c9ae06a38f0c04022a3c76ca89aed67f694', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''} ${this.getDisabledClassModifier()}`, style: this.styles }, h("header", { key: 'c70bc378b8427424d4128f98b6f39f3a43d18e8b', class: "header" }, h("div", { key: 'cdda360107fd69b8a32e7773dfcb9f94bc63b517', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, h("cura-icon", { key: 'a19af085d074aa74ba3a51712ed62228a4244911', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", disabled: this.isDisabled, color: this.determinePrevButtonColor(), onClick: this.handlePrevMonth }), this.type === 'dropdown' ? (h("div", { class: "select" }, h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-month", mode: "transparent", value: months[getMonth(this.currentDate)], onSelected: e => this.onMonthDropdownChange(e) }, months.map((month, index) => (h("cura-select-option", { size: "xsmall", key: index, value: month }, month)))), h("cura-select", { disabled: this.isDisabled, size: "small", class: "drop-year", mode: "transparent", value: getYear(this.currentDate).toString(), onSelected: e => this.onYearDropdownChange(e) }, this.fetchYearList().map((year, index) => (h("cura-select-option", { key: index, value: year.toString() }, year.toString())))))) : (h("cura-label", { color: !this.isDisabled ? 'neutral-black' : 'neutral-dark', size: "small" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), h("cura-icon", { key: '0e9917d69adf95a5f4566d1269738d8ea4a11036', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", disabled: this.isDisabled, color: "primary-base", onClick: this.handleNextMonth }))), h("span", { key: 'f5249c9c7ebeae18af57c43bbd988aa7c21b7b04', class: "days-of-week" }, this.fetchWeekDays().map(this.renderItemWeekDays)), h("div", { key: '2465a9c40856462242a80f1fda2abf7dc2648012', class: "dates" }, !this.collapsed
|
|
7430
7456
|
? this.fetchDaysOfMonth().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))
|
|
7431
|
-
: this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null)));
|
|
7457
|
+
: this.fetchDaysOfWeek().map((day, index) => (h("div", { key: index, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (h("div", { class: "collapsed-container" }, h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null, this.isLoading && (h("div", { key: 'fba41e2fd1b743d534f763e690b8eaf8f741f2f4', class: "loading-container" }, h("cura-loader-circle", { key: '9780c689a48c0c6ef2804ba6e9864338dd6a21a9', color: "primary", size: "large" }), h("slot", { key: 'c0e9eee4818991d9fd6ac8322aa183cf574abb65', name: "loadingMessage" }))))));
|
|
7432
7458
|
}
|
|
7433
7459
|
static get watchers() { return {
|
|
7434
7460
|
"defaultDate": [{
|
|
@@ -7438,6 +7464,9 @@ const CuraCalendar = class {
|
|
|
7438
7464
|
}],
|
|
7439
7465
|
"customDates": [{
|
|
7440
7466
|
"watchDefaultDatesArray": 0
|
|
7467
|
+
}],
|
|
7468
|
+
"collapsed": [{
|
|
7469
|
+
"watchCollapse": 0
|
|
7441
7470
|
}]
|
|
7442
7471
|
}; }
|
|
7443
7472
|
};
|
|
@@ -7510,49 +7539,11 @@ const CuraCard = class {
|
|
|
7510
7539
|
return classes;
|
|
7511
7540
|
}
|
|
7512
7541
|
render() {
|
|
7513
|
-
return (h(Host, { key: '
|
|
7542
|
+
return (h(Host, { key: '73f399ec63b8a0933a22c4a6d605dbb4bc8bf2c3', role: this.href ? 'link' : 'div' }, this.href ? (h("a", { class: this.getClasses(), target: this.target, style: this.styles, href: this.href }, h("slot", null))) : (h("div", { class: this.getClasses(), style: this.styles }, h("slot", null)))));
|
|
7514
7543
|
}
|
|
7515
7544
|
};
|
|
7516
7545
|
CuraCard.style = curaCardCss();
|
|
7517
7546
|
|
|
7518
|
-
function checkMobile() {
|
|
7519
|
-
return (window === null || window === void 0 ? void 0 : window.innerWidth) < Static.breakpoints.medium.min;
|
|
7520
|
-
}
|
|
7521
|
-
function checkIOS() {
|
|
7522
|
-
return [
|
|
7523
|
-
'iPad Simulator',
|
|
7524
|
-
'iPhone Simulator',
|
|
7525
|
-
'iPod Simulator',
|
|
7526
|
-
'iPad',
|
|
7527
|
-
'iPhone',
|
|
7528
|
-
'iPod'
|
|
7529
|
-
].includes(navigator.userAgent)
|
|
7530
|
-
// iPad on iOS 13 detection
|
|
7531
|
-
|| (navigator.userAgent.includes("Mac") && "ontouchend" in document);
|
|
7532
|
-
}
|
|
7533
|
-
function fakeInputIOSHack(targetElement) {
|
|
7534
|
-
if (!checkMobile() || !checkIOS())
|
|
7535
|
-
return null;
|
|
7536
|
-
const fakeInput = document.createElement('input');
|
|
7537
|
-
fakeInput.setAttribute('type', 'text');
|
|
7538
|
-
fakeInput.style.position = 'absolute';
|
|
7539
|
-
fakeInput.style.opacity = '0';
|
|
7540
|
-
fakeInput.style.height = '0';
|
|
7541
|
-
fakeInput.style.fontSize = '16px'; // disable auto zoom
|
|
7542
|
-
targetElement.prepend(fakeInput);
|
|
7543
|
-
// focus so that subsequent async focus will work
|
|
7544
|
-
fakeInput.focus();
|
|
7545
|
-
return fakeInput;
|
|
7546
|
-
}
|
|
7547
|
-
function addBodyScrollLockClass() {
|
|
7548
|
-
document.body.classList.add("cura-body-scroll-lock");
|
|
7549
|
-
}
|
|
7550
|
-
function removeBodyScrollLockClass() {
|
|
7551
|
-
if (document.body.classList.contains("cura-body-scroll-lock")) {
|
|
7552
|
-
document.body.classList.remove("cura-body-scroll-lock");
|
|
7553
|
-
}
|
|
7554
|
-
}
|
|
7555
|
-
|
|
7556
7547
|
class FixedElementScrollBehavior {
|
|
7557
7548
|
constructor(hostElement, scrollableElement) {
|
|
7558
7549
|
this._stopPropagationEvent = (e) => {
|
|
@@ -7941,7 +7932,7 @@ const CuraDropdownSearch = class {
|
|
|
7941
7932
|
};
|
|
7942
7933
|
}
|
|
7943
7934
|
render() {
|
|
7944
|
-
return (h(Host, { key: '
|
|
7935
|
+
return (h(Host, { key: '4eebe0e03eb20a9c056158e9bb7dafad6c5d7e36', style: this.getHostCSSProperties(), role: "search", "aria-label": this.label, "aria-required": this.required, "aria-disabled": this.disabled, "aria-expanded": this.zoomState }, h("div", { key: 'c74a9785e747c23f853beabce244d9d79be963f6', class: this.getClasses(), style: this.styles }, h("div", { key: '8e0e1b8ad5929f7a65d970da37af8da526ea1ec6', class: "component-controls" }, this.isMobile && this.zoomState ? (h("cura-button-transparent", { fontColor: "dark", onClick: () => this.handleBackClick(), iconName: "arrowLeft", size: "large", iconOnly: true, color: "primary", id: "button-back" })) : '', h("cura-input-text", { key: 'd6b1e0284f7f8bbd0293ca8c7e11de7e4d390729', disabled: this.disabled, label: this.label, part: "cura-input-field", mode: this.zoomState ? 'transparent' : 'default', required: this.required, iconName: this.icon || 'search', value: this.value, status: this.status, onValueChange: (ev) => this.handleInputValueChange(ev), onInput: (ev) => this._preventEvent(ev), onFocus: () => this.handleFocus(), onClick: (ev) => this._preventEvent(ev), onBlur: () => this.handleBlur(), onFocusout: () => this.handleFocusout(), onInputClear: (ev) => this.handleInputClear(ev), placeholder: this.placeholder, size: this.size, onKeyDown: (ev) => this.handleKeyDown(ev) }, h("slot", { key: '3626dc325181c193081af56996804453c9dee9f5', name: "helperText" }))), h("div", { key: 'c0b979983b567e35a15e756d24cecf0a0102e2bc', class: "dropdown-container", onMouseOver: () => this.handleDropdownMouseOver() }, h("slot", { key: '56fc0ae14345c88eaf214a12f6ebf545fc040aea', onSlotchange: () => this.handleSlotChange() })))));
|
|
7945
7936
|
}
|
|
7946
7937
|
get host() { return getElement(this); }
|
|
7947
7938
|
};
|
|
@@ -7961,7 +7952,7 @@ const CuraDropdownSearchCategory = class {
|
|
|
7961
7952
|
};
|
|
7962
7953
|
}
|
|
7963
7954
|
render() {
|
|
7964
|
-
return (h(Host, { key: '
|
|
7955
|
+
return (h(Host, { key: 'd80c4ebc3e7edee04eb7e3b405cc11ea1cb65111' }, h("div", { key: 'af087ac20e0e2075acb87b64573734e16bdd7b62', class: "component-container", style: this.styles }, h("cura-heading", { key: 'f48f5ca2cd5fdb7b2862ae20e51b3963461db945', size: 'xsmall', weight: 'bold', color: 'neutral-dark', marginBlock: '0', lineHeight: '1em' }, h("slot", { key: '13030d0abe5ac052fa3c3a7e04694ecfd7a3ab23' })))));
|
|
7965
7956
|
}
|
|
7966
7957
|
};
|
|
7967
7958
|
CuraDropdownSearchCategory.style = curaDropdownSearchCategoryCss();
|
|
@@ -8024,7 +8015,7 @@ const CuraDropdownSearchOption = class {
|
|
|
8024
8015
|
};
|
|
8025
8016
|
}
|
|
8026
8017
|
render() {
|
|
8027
|
-
return (h(Host, { key: '
|
|
8018
|
+
return (h(Host, { key: 'e01c513f3c2cf8ad1b4b118f2b59d5228a052112' }, h("div", { key: 'b59ae795fc8905929ed91fc2e18e465b0d1632f0', class: this.getClasses(), style: this.styles }, h("div", { key: 'f3d163ac57e5c6cbc15f4b7d822273afa1279816', class: "selectable-container", onClick: () => this.handleSelect() }, h("slot", { key: 'ed9427e3251354825ee9652f653f9597ccf79383', name: 'image' }), h("div", { key: 'a78dcf1bfd71e42542b9f7bdb7fb43e3acc628ba', class: "content" }, h("slot", { key: '7ad2f91f434cf69b5f45674e887d29fe4188cd9e' }))), h("div", { key: '7f9cac5875885a80505b7455de49c090aca7848c', class: "actions-container", onClick: () => this.handleActionsClick() }, h("slot", { key: '12496150bea58f08dc7c5a868d866f67903e545c', name: 'actions' })))));
|
|
8028
8019
|
}
|
|
8029
8020
|
};
|
|
8030
8021
|
CuraDropdownSearchOption.style = curaDropdownSearchOptionCss();
|
|
@@ -8119,7 +8110,7 @@ const CuraHeading = class {
|
|
|
8119
8110
|
return tags[`${this.level}`] || tags['default'];
|
|
8120
8111
|
}
|
|
8121
8112
|
render() {
|
|
8122
|
-
return (h(Host, { key: '
|
|
8113
|
+
return (h(Host, { key: '611cbd1aff08cda4926fc82ba821c86c5df3e954', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
|
|
8123
8114
|
}
|
|
8124
8115
|
get host() { return getElement(this); }
|
|
8125
8116
|
};
|
|
@@ -8154,7 +8145,7 @@ const CuraIcon = class {
|
|
|
8154
8145
|
this.host.style.setProperty(prop, value);
|
|
8155
8146
|
}
|
|
8156
8147
|
render() {
|
|
8157
|
-
return (h(Host, { key: '
|
|
8148
|
+
return (h(Host, { key: 'b383f07f146a8f4760317a8bfc42a16c06f8d323', role: "img" }, h("svg", { key: 'd1d3e98cd7afbf729989463a123030b95ea84221', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, h("use", { key: 'bb6c8175923161b9d603a969bc1a7ca651e19256', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
8158
8149
|
}
|
|
8159
8150
|
get host() { return getElement(this); }
|
|
8160
8151
|
static get watchers() { return {
|
|
@@ -12295,7 +12286,7 @@ const CuraLabel = class {
|
|
|
12295
12286
|
};
|
|
12296
12287
|
}
|
|
12297
12288
|
render() {
|
|
12298
|
-
return (h(Host, { key: '
|
|
12289
|
+
return (h(Host, { key: '80bddd4f902e7084628ed2cbfe1144a6ddcf2674', style: this.hostCSSProperties() }, h("p", { key: 'bc507c1b119459c6efbb81120a7cc33c1e305800', style: this.styles, class: this.getClasses() }, h("slot", { key: '451674e41f86b0b3db3f2f29b498aa49c489a7ec' }))));
|
|
12299
12290
|
}
|
|
12300
12291
|
get host() { return getElement(this); }
|
|
12301
12292
|
static get watchers() { return {
|
|
@@ -12338,7 +12329,7 @@ const CuraLoaderCircle = class {
|
|
|
12338
12329
|
};
|
|
12339
12330
|
}
|
|
12340
12331
|
render() {
|
|
12341
|
-
return (h(Host, { key: '
|
|
12332
|
+
return (h(Host, { key: '628e3341e2bc0bef9a18362ab46625d99a7f6800', style: this.getStyles(), role: "progressbar" }, h("svg", { key: 'c0e5366cef003222ec7a60fcaed02a1e2376acd5', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("g", { key: '194989f5d872562dffc46ca981a699183de87603' }, h("circle", { key: '6ffa4ee0394f80b4328e5bda459f849387086568', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), h("path", { key: '9cc41c580811d999769f1ebe1443bd63a092eae0', d: "M1 8C1 4.13401 4.11877 1 7.96596 1C9.53445 1 10.9819 1.52093 12.1462 2.4C12.8959 2.96601 13.5282 3.68049 14 4.5", "stroke-width": "2" })), h("defs", { key: '1190920b737c9306a96ac9854207a339ac312815' }, h("linearGradient", { key: '11921fe3939bef2f32a4688058a3c818600c5781', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, h("stop", { key: 'fa3f8b029d39912abea7adef004f24e99f76d453' }), h("stop", { key: '53b8efce47f6101c36ccf9f05beca7ab76ffb886', offset: "1" }))))));
|
|
12342
12333
|
}
|
|
12343
12334
|
};
|
|
12344
12335
|
CuraLoaderCircle.style = curaLoaderCircleCss();
|
|
@@ -12361,7 +12352,7 @@ const CuraPageTemplate = class {
|
|
|
12361
12352
|
return classes;
|
|
12362
12353
|
}
|
|
12363
12354
|
render() {
|
|
12364
|
-
return (h(Host, { key: '
|
|
12355
|
+
return (h(Host, { key: '65ceac57166149f686508dd56d865092406afe4d' }, h("div", { key: 'c78f1ef93fd52b43285fa3b39d203db258c1bf31', style: this.styles, class: "grid-template" }, h("div", { key: 'cfb99058f718560bf2679e13266bf6e1447cfb1e', id: "sub-header" }, h("slot", { key: 'ddd2aaeb147cad4e92e16dda69f757d9aa261e2c', name: 'sub-header' })), h("div", { key: 'c3d87f2c1d68d08e2c46730d731e03a17e0c355d', id: "header" }, h("slot", { key: 'a681e8d1c9c379be1c18278811d7e99455ad0a8b', name: 'header' })), h("div", { key: 'aee6e5920384ecdbf0c8adb358a431e304f612de', id: "pre-content" }, h("slot", { key: '4e554925885a9f8200fe8cb7b35e438e6a7dd1e8', name: 'pre-content' })), h("div", { key: '30f1f9aeb3a58fb390716dec7f5855fdcc1cc82d', id: "content-container", class: this.getClasses() }, h("div", { key: '259ab99ca0ec43a86536c3c188429a555eebbd45', id: "sidebar-left" }, h("slot", { key: 'ff359698c0b452776e558234b46745dd40746edc', name: 'sidebar-left' })), h("div", { key: '14338cdc57d8ee6cfb5ca15fd5ed8fe276d83bea', id: "content" }, h("slot", { key: 'ea4f4a5423bf061880d580e86f015907ee5929ea', name: "content" }), h("slot", { key: 'ddf40946d828b0de102e9fc21ee99201dc36342b' })), h("div", { key: 'c207b0c2280033f71c2b7803b1ae9ec017ab2b5c', id: "sidebar-right" }, h("slot", { key: 'fd15c1b0ce197f7de9e72827dca3c1d4736b4219', name: 'sidebar-right' }))), h("div", { key: 'fd02b69336b4d6920975bf1a8b4a7c8a957e65d6', id: "post-body" }, h("slot", { key: '205b2283d6fff54f3e3be4ed9b2b64b05c985601', name: 'post-body' })), h("div", { key: '4602dc880efe376c9a951237c43ebcb6723499db', id: "footer" }, h("slot", { key: 'ed9314b5192194cea91dab7fc6efdbfb198016fc', name: 'footer' })), h("div", { key: '53b5bd4b187a0ae6657bccfb8626a5d335bdeb73', id: "sub-footer" }, h("slot", { key: '8b086fb200223ff0bf5acd2266da3ae47cc30269', name: 'sub-footer' })))));
|
|
12365
12356
|
}
|
|
12366
12357
|
get host() { return getElement(this); }
|
|
12367
12358
|
};
|
|
@@ -12433,7 +12424,7 @@ const CuraParagraph = class {
|
|
|
12433
12424
|
return classes;
|
|
12434
12425
|
}
|
|
12435
12426
|
render() {
|
|
12436
|
-
return (h(Host, { key: '
|
|
12427
|
+
return (h(Host, { key: '33b3d1d2e739523255fbfbfd8b6afd67aa5dbc2d', style: this.hostCSSProperties() }, h("p", { key: '1baf909ffcc9c682bc9fba3b36d173e53020d084', style: this.styles, class: this.getClasses() }, h("slot", { key: 'b836160b6c94a6f3a2f5a7c4c1802bc5340bd5b5' }))));
|
|
12437
12428
|
}
|
|
12438
12429
|
get host() { return getElement(this); }
|
|
12439
12430
|
};
|
|
@@ -14518,10 +14509,10 @@ const CuraSelect = class {
|
|
|
14518
14509
|
});
|
|
14519
14510
|
}
|
|
14520
14511
|
render() {
|
|
14521
|
-
return (h(Host, { key: '
|
|
14512
|
+
return (h(Host, { key: '7621641772e6c166b5359346f0d0681a614c1f5c', style: this.styles, role: "combobox", "aria-label": this.label, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error') }, h("div", { key: '7cc11beb3a10ada937c4668fdfcdb98b380200e0', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (h("cura-label", { key: 'd10426c84bb97db84074430f537293407f7afa05', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && h("span", { key: '82808b9add65b3c6abf03e56fe63dccd574229f3', class: "required" }, "* "))), h("div", { key: 'e37b1468d0bf2bdac3f1c2096c22840fe7e0eced', class: {
|
|
14522
14513
|
'cura-input-field': true,
|
|
14523
14514
|
'open': this.isOpen,
|
|
14524
|
-
}, ref: el => (this.inputWrapper = el) }, this.renderIcon(), h("input", { key: '
|
|
14515
|
+
}, ref: el => (this.inputWrapper = el) }, this.renderIcon(), h("input", { key: '7fabd1a5fc59c479ea09d95f7552f49f8448125e', type: "text", autocomplete: "off", onFocus: () => (this.isFocused = true), onBlur: () => (this.isFocused = false), onKeyDown: this.handleKeyNavigation, "aria-required": String(this.required), "aria-disabled": String(this.disabled), "aria-invalid": String(this.status === 'error'), onInput: this.handleInputChange, style: this.styles, placeholder: this.placeholder, disabled: this.disabled, required: this.required, value: this.textInput, readonly: this.searchBehavior ? null : true }), h("button", { key: '9fa767799517d3872d60e33a9d71562bfe24d0c5', class: "up-down-button" }, h("cura-icon", { key: '2299a69d28c72eba5f2a18faa87c653226105034', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), h("cura-label", { key: '6c88858d35cdf9c756b9ee7d9e93f5ff0596e372', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, h("slot", { key: '55a075d118ba10f7921d6cf13331c7c0a0ddae46' })), this.isOpen && (h("div", { key: 'd36637fb50aeefbb10991dd2fa8212886293fff3', class: {
|
|
14525
14516
|
menu: true,
|
|
14526
14517
|
open: this.isOpen,
|
|
14527
14518
|
[this.preferredPlacement]: true,
|
|
@@ -14534,7 +14525,7 @@ const CuraSelect = class {
|
|
|
14534
14525
|
visibility: this.isPositioned ? 'visible' : 'hidden',
|
|
14535
14526
|
opacity: this.isPositioned ? '1' : '0',
|
|
14536
14527
|
pointerEvents: this.isPositioned ? 'auto' : 'none',
|
|
14537
|
-
} }, h("slot", { key: '
|
|
14528
|
+
} }, h("slot", { key: '399d62fd686ed4c0a0729d336a3502b53918e371', name: "option" }))))));
|
|
14538
14529
|
}
|
|
14539
14530
|
static get formAssociated() { return true; }
|
|
14540
14531
|
get host() { return getElement(this); }
|
|
@@ -14588,7 +14579,7 @@ const CuraSelectOption = class {
|
|
|
14588
14579
|
};
|
|
14589
14580
|
}
|
|
14590
14581
|
render() {
|
|
14591
|
-
return (h(Host, { key: '
|
|
14582
|
+
return (h(Host, { key: '351cadffe0228ba5af1a9d6019c8dece886061c6', slot: "option", role: "option", "aria-selected": this.selected }, h("div", { key: '0bbe81fd481f3d7d83e42bcbeb69c8b88ce23804', class: this.getClasses(), style: this.styles }, h("cura-label", { key: 'fa4ae11397845ed517f756fd4537f80bb7580e4f', color: `${this.selected ? 'primary-base' : 'neutral-black'}`, size: this.getSize('label'), "margin-block": "0" }, h("slot", { key: 'c3b653b8a65d3b7afe0253fd9aafe922fdaebcfc' })), this.selected && h("cura-icon", { key: 'd7420da36a93c1f873ac79e6d55e1fa697a4eaad', name: 'check', size: this.getSize('icon'), color: "primary-base" }))));
|
|
14592
14583
|
}
|
|
14593
14584
|
get host() { return getElement(this); }
|
|
14594
14585
|
static get watchers() { return {
|
|
@@ -14688,7 +14679,7 @@ const CuraTabs = class {
|
|
|
14688
14679
|
const labelSize = labelSizes$1[this.size] || labelSizes$1['default'];
|
|
14689
14680
|
const labelColor = this.computeContentColor();
|
|
14690
14681
|
this.updateDynamicStyles();
|
|
14691
|
-
return (h(Host, { key: '
|
|
14682
|
+
return (h(Host, { key: 'd12ccbd8e900c1a21dfee2ee7363e167772acad4', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, h("button", { key: '2e77d02614e38baaca599d7830f5ba4dcb048519', class: this.getClasses(), style: this.styles, onClick: e => this.handleClick(e), disabled: this.disabled, onMouseEnter: this.handleMouseEnter.bind(this), onMouseLeave: this.handleMouseLeave.bind(this) }, this.getIcon(), h("cura-label", { key: '343f0d566d70ea2f132ea55ca588c57cb2ce20f2', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, h("slot", { key: '9acebd9e763f88d698ca6c0a08e97c3960701730' })))));
|
|
14692
14683
|
}
|
|
14693
14684
|
static get watchers() { return {
|
|
14694
14685
|
"colorMode": [{
|
|
@@ -14727,7 +14718,7 @@ const CuraTabsGroup = class {
|
|
|
14727
14718
|
this.styles = Object.assign(Object.assign({}, this.styles), { '--border-color': window.CuraAPI.theme.colors.getColor(this.colorMode === 'light' ? 'neutral-base' : 'primary-base'), '--gap': `${this.gap}px` });
|
|
14728
14719
|
}
|
|
14729
14720
|
render() {
|
|
14730
|
-
return (h(Host, { key: '
|
|
14721
|
+
return (h(Host, { key: '1a2babd4b23b2f54644cfe9d0129736c897f50c3', role: "tablist", style: this.styles, class: this.getClasses() }, h("slot", { key: 'ba78df56f01619de8df14cbfde08dd501b15048e' })));
|
|
14731
14722
|
}
|
|
14732
14723
|
get host() { return getElement(this); }
|
|
14733
14724
|
};
|
|
@@ -215,7 +215,7 @@ const CuraCheckbox = class {
|
|
|
215
215
|
return h("cura-icon", { class: "icon", name: iconName, size: iconSize, color: iconColor });
|
|
216
216
|
}
|
|
217
217
|
render() {
|
|
218
|
-
return (h(Host, { key: '
|
|
218
|
+
return (h(Host, { key: '9236b8f9d487c042e00800a624e1b729e36b296d', role: "checkbox", "aria-checked": this.checked, "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, h("div", { key: '4472e8ee4fa4d1ea6c6f4cf9ba347acc66f7df2a', class: this.getClasses(), style: this.styles, onClick: this.handleClick }, h("div", { key: '1c74e35fbfbcfcbe113edcd5522e674d197b2212', class: "info" }, h("div", { key: '75e7fdf6050f38473379fb3e4a5880f9eb34e88e', class: "label-wrapper" }, h("cura-label", { key: 'eeac634dd87a72922c0d89e1877d0e0b132e6cd9', textOverflow: this.overflowLabel, class: `label${this.overflowLabel === 'single' ? ' textoverflow-single' : ''}`, weight: "bold", size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && (h("cura-paragraph", { key: '7d590fd046c2ba90dbef7846f51a774d50418ca7', lineHeight: "0%", marginBlock: "0", color: "error-base" }, "*", ' '))), h("cura-label", { key: 'f7c750b3d3ce6afaaba514ac835ceed38674a048', textOverflow: this.overflowHelper, color: this.assignColor('message'), size: "xsmall", class: "message" }, h("slot", { key: 'd83d9f24b5a5274233e61256add788bfa2ee0f92' }))), h("div", { key: '3f67839bbbf8a583d41765a2a6450c71f5063066', class: 'checkbox', tabIndex: this.ontabindex }, h("input", { key: 'ab742442fc98838433f6db949478bef6ee2e0d45', type: "checkbox", name: this.name, value: this.value, disabled: this.disabled, required: this.required, checked: this.checked, indeterminate: this.indeterminate }), this.getIcon()))));
|
|
219
219
|
}
|
|
220
220
|
static get formAssociated() { return true; }
|
|
221
221
|
get host() { return getElement(this); }
|
|
@@ -84,7 +84,7 @@ const CuraDisplay = class {
|
|
|
84
84
|
return tags[`${this.level}`] || tags['default'];
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: 'b9264ba7f3ff79b474f02107824441c9f6e67ec1', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
|
|
88
88
|
}
|
|
89
89
|
get host() { return getElement(this); }
|
|
90
90
|
static get watchers() { return {
|
|
@@ -14,7 +14,7 @@ const CuraDropdownSearchNotFound = class {
|
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '6b57806eb3a2c3be73c76876bfce0062e36a97fa' }, h("div", { key: '5a294ef5d53177d439816d881a8d5c90b60b621e', class: "component-container", onClick: this.handleClick }, h("cura-heading", { key: 'ff92297c1261d69ef9fa8c2b9cdbfee6365b08f2', size: "xsmall", weight: "bold", color: "error-dark" }, h("slot", { key: 'b84f981ba0cff218b5bf0c94a014c83daaa184ac' })))));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
CuraDropdownSearchNotFound.style = curaDropdownSearchNotFoundCss();
|
|
@@ -20,7 +20,7 @@ const CuraIconsView = class {
|
|
|
20
20
|
this.sizes.unshift(this.sizes.pop());
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'f25d10b3f380cc58fd5b4e77b437e09ba0787df4' }, h("div", { key: '5162f1c8aff585a60f37ef9af8451dae8b310394', class: "iconDetail" }, h("cura-heading", { key: '2e95f88bf98bcb3b5ea8b2ce6b015ef5d3c984e5', size: "small", "margin-block": "0 24px" }, "Icon: ", h("b", { key: '102d867291ca3af92c370f044a7140571b15c737' }, this.selected)), h("div", { key: 'e2fd0833644705ea8b406508be51c6d2d5683d24', class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { key: 'fa842318750f3cdb5e5d7f7333c9221aaf66b585', class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), h("span", null, size))))), h("div", { key: 'a25fd5649fe3bda93f80208e634790da44dde89b', class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: { icon: true, selected: icon === this.selected }, onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon, size: "32", color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }), h("cura-label", { size: "xsmall", weight: icon === this.selected ? 'bold' : 'regular', color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }, icon))))));
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
CuraIconsView.style = curaIconsViewCss();
|
|
@@ -187,7 +187,7 @@ const CuraInputDate = class {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return (h(Host, { key: '
|
|
190
|
+
return (h(Host, { key: 'fe506eeb9ca1193994e8988f59f7d39aa09afb7c' }, h("div", { key: '33b50ee8b32c70855ec061a0fb9747203f473a62', class: "container", style: this.styles }, h("cura-input-text", { key: '8c3d0254c3b6dcd0b24a5c5a27e1b4aeda4c83df', label: this.label, name: this.name, status: this.status, value: this.value, onFocus: () => this.showCalendar(), size: this.size, "icon-name": this.iconName, placeholder: this.dateSettings.placeholder, "mask-preset": this.dateSettings.mask, "enable-selection-mode": true, onKeyUp: event => this.handleInputDates(event), autocomplete: "off", onValueChange: event => this.handleChangeDates(event) }, this.renderCalendarOrHelperText()))));
|
|
191
191
|
}
|
|
192
192
|
static get formAssociated() { return true; }
|
|
193
193
|
get el() { return getElement(this); }
|