@rededor/cura 2.0.0-alpha.13 → 2.0.0-alpha.14
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 +55 -20
- 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-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/collection/components/cura-calendar/cura-calendar.css +13 -1
- package/dist/collection/components/cura-calendar/cura-calendar.js +91 -3
- 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-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-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-B2RN7oe_.js → p-BBtCzdwH.js} +1 -1
- package/dist/components/{p-fR02COZb.js → p-BFGkepgq.js} +1 -1
- package/dist/components/{p-CCkEqDZb.js → p-BGBnVlL3.js} +1 -1
- package/dist/components/{p-B8xnU6YS.js → p-BJafC0R3.js} +1 -1
- package/dist/components/{p-BYA8glxD.js → p-BOQ-9WHP.js} +1 -1
- package/dist/components/{p-DXlGQp3a.js → p-BXFxWVl3.js} +1 -1
- package/dist/components/{p-D7WNwjv-.js → p-Bac-rr_f.js} +1 -1
- package/dist/components/{p-C7so9xnO.js → p-BmMvoH-m.js} +1 -1
- package/dist/components/p-CalvBU-U.js +1 -0
- package/dist/components/{p-BSdkRryc.js → p-Cm1Vfoc6.js} +1 -1
- package/dist/components/{p-fn4zJrKE.js → p-DI66_jP6.js} +1 -1
- package/dist/components/{p-D6xuYQiO.js → p-DbZtk_CM.js} +1 -1
- package/dist/components/{p-DxJedO3K.js → p-I4AXUk2V.js} +1 -1
- package/dist/components/{p-C05r6CQV.js → p-Oyg5hynZ.js} +1 -1
- package/dist/components/p-nqT7t82E.js +1 -0
- package/dist/cura/cura.esm.js +1 -1
- package/dist/cura/{p-b14ae206.entry.js → p-04b5c710.entry.js} +1 -1
- package/dist/cura/{p-bf99e8bf.entry.js → p-18a1cadf.entry.js} +1 -1
- package/dist/cura/{p-2e2e2b4d.entry.js → p-1ecb2249.entry.js} +1 -1
- package/dist/cura/{p-b7369d04.entry.js → p-2572a4f9.entry.js} +1 -1
- package/dist/cura/{p-42e72d12.entry.js → p-604f1c1d.entry.js} +1 -1
- package/dist/cura/{p-ddf4d240.entry.js → p-71fffffa.entry.js} +1 -1
- package/dist/cura/{p-c247c93b.entry.js → p-8b29b763.entry.js} +1 -1
- package/dist/cura/{p-9de85de6.entry.js → p-906c8b66.entry.js} +1 -1
- package/dist/cura/{p-7965fe63.entry.js → p-a5c4849c.entry.js} +1 -1
- package/dist/cura/{p-3a3202f0.entry.js → p-a72db13d.entry.js} +1 -1
- package/dist/cura/{p-f911a6c5.entry.js → p-b447fca2.entry.js} +1 -1
- package/dist/cura/p-c287c69e.entry.js +1 -0
- package/dist/cura/{p-c18d7f16.entry.js → p-c987ddde.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 +55 -20
- 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-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/types/components/cura-calendar/cura-calendar.d.ts +21 -0
- 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.d.ts +22 -0
- package/package.json +2 -2
- package/dist/components/p-Bf21UQXV.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
|
@@ -6796,12 +6796,14 @@ var locale = {
|
|
|
6796
6796
|
}
|
|
6797
6797
|
};
|
|
6798
6798
|
|
|
6799
|
-
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
|
|
6799
|
+
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)}`;
|
|
6800
6800
|
|
|
6801
6801
|
const CuraCalendar = class {
|
|
6802
6802
|
constructor(hostRef) {
|
|
6803
6803
|
index.registerInstance(this, hostRef);
|
|
6804
6804
|
this.onchangeday = index.createEvent(this, "onchangeday");
|
|
6805
|
+
this.changeDateInView = index.createEvent(this, "changeDateInView");
|
|
6806
|
+
this.isMounted = false;
|
|
6805
6807
|
/**
|
|
6806
6808
|
* Disable component
|
|
6807
6809
|
*
|
|
@@ -6809,6 +6811,13 @@ const CuraCalendar = class {
|
|
|
6809
6811
|
* @default false
|
|
6810
6812
|
*/
|
|
6811
6813
|
this.isDisabled = false;
|
|
6814
|
+
/**
|
|
6815
|
+
* Loading state
|
|
6816
|
+
*
|
|
6817
|
+
* @type {boolean}
|
|
6818
|
+
* @default false
|
|
6819
|
+
*/
|
|
6820
|
+
this.isLoading = false;
|
|
6812
6821
|
/**
|
|
6813
6822
|
* An array of specific dates to be highlighted or processed.
|
|
6814
6823
|
*
|
|
@@ -7165,7 +7174,7 @@ const CuraCalendar = class {
|
|
|
7165
7174
|
* @returns {Date[]} An array of individual dates.
|
|
7166
7175
|
*/
|
|
7167
7176
|
expandDateRanges(dates) {
|
|
7168
|
-
if (!dates)
|
|
7177
|
+
if (!dates || !Array.isArray(dates))
|
|
7169
7178
|
return [];
|
|
7170
7179
|
return dates.flatMap(date => {
|
|
7171
7180
|
if (typeof date === 'string')
|
|
@@ -7408,7 +7417,15 @@ const CuraCalendar = class {
|
|
|
7408
7417
|
'--width': this.width,
|
|
7409
7418
|
'--min-width': this.minWidth,
|
|
7410
7419
|
'--max-width': this.maxWidth,
|
|
7420
|
+
'--color-neutral-purewhite': window.CuraAPI.theme.colors.getColor(`neutral-purewhite`)
|
|
7421
|
+
};
|
|
7422
|
+
}
|
|
7423
|
+
sendEventChangeDateInView(isCollapsed) {
|
|
7424
|
+
const eventData = {
|
|
7425
|
+
datesInView: isCollapsed ? this.fetchDaysOfWeek() : this.fetchDaysOfMonth(),
|
|
7426
|
+
monthDays: this.fetchDaysOfMonth()
|
|
7411
7427
|
};
|
|
7428
|
+
this.changeDateInView.emit(eventData);
|
|
7412
7429
|
}
|
|
7413
7430
|
watchDefaultDatesArray() {
|
|
7414
7431
|
this.selectedDates = this.customDates;
|
|
@@ -7426,11 +7443,23 @@ const CuraCalendar = class {
|
|
|
7426
7443
|
}
|
|
7427
7444
|
this.defaultDates = this.expandDateRanges(newValue);
|
|
7428
7445
|
}
|
|
7446
|
+
watchDatesInViewChange() {
|
|
7447
|
+
if (!this.isMounted) {
|
|
7448
|
+
return;
|
|
7449
|
+
}
|
|
7450
|
+
this.sendEventChangeDateInView(Boolean(this.collapsed));
|
|
7451
|
+
}
|
|
7452
|
+
watchCollapse(isCollapsed) {
|
|
7453
|
+
this.sendEventChangeDateInView(isCollapsed);
|
|
7454
|
+
}
|
|
7455
|
+
componentDidLoad() {
|
|
7456
|
+
this.isMounted = true;
|
|
7457
|
+
}
|
|
7429
7458
|
render() {
|
|
7430
7459
|
const { months } = this.fetchMonthNames();
|
|
7431
|
-
return (index.h(index.Host, { key: '
|
|
7460
|
+
return (index.h(index.Host, { key: '9667bc4f47b6581724dcc658ce322b375622906a', style: this.getHostCSSProperties() }, index.h("div", { key: '231bc0e3890949e6696338e386a3db4e9744c5b6', class: `calendar ${this.floating ? 'floating' : ''} ${this.embedded ? 'embedded' : ''} ${this.getDisabledClassModifier()}`, style: this.styles }, index.h("header", { key: '88357e185b812e45d4632aa20759cf078e51af19', class: "header" }, index.h("div", { key: '93cf9ecfbce8772e64cdad26090119257f47b77b', class: `month-year ${this.type === 'dropdown' && 'dropdown'}` }, index.h("cura-icon", { key: 'c188f28ca53ffb79ad9d13b1ef7b19ab6d26b10d', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "left", disabled: this.isDisabled, color: this.determinePrevButtonColor(), onClick: this.handlePrevMonth }), this.type === 'dropdown' ? (index.h("div", { class: "select" }, index.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$1) => (index.h("cura-select-option", { size: "xsmall", key: index$1, value: month }, month)))), index.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$1) => (index.h("cura-select-option", { key: index$1, value: year.toString() }, year.toString())))))) : (index.h("cura-label", { color: !this.isDisabled ? 'neutral-black' : 'neutral-dark', size: "small" }, months[getMonth(this.currentDate)].slice(0, 3), ", ", getYear(this.currentDate))), index.h("cura-icon", { key: 'c890a280637b8c50d2b8cb8ac1ab9a685d742cc3', class: `icon ${this.type === 'dropdown' && 'dropdown'}`, name: "right", disabled: this.isDisabled, color: "primary-base", onClick: this.handleNextMonth }))), index.h("span", { key: 'fac87075df8335c9ad1464a5dc6caebfbd79cf38', class: "days-of-week" }, this.fetchWeekDays().map(this.renderItemWeekDays)), index.h("div", { key: 'e3d08f781cb7765f2c74e88ebd040d8dd28e7e9f', class: "dates" }, !this.collapsed
|
|
7432
7461
|
? this.fetchDaysOfMonth().map((day, index$1) => (index.h("div", { key: index$1, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))
|
|
7433
|
-
: this.fetchDaysOfWeek().map((day, index$1) => (index.h("div", { key: index$1, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (index.h("div", { class: "collapsed-container" }, index.h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (index.h("div", { class: "collapsed-container" }, index.h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null)));
|
|
7462
|
+
: this.fetchDaysOfWeek().map((day, index$1) => (index.h("div", { key: index$1, class: this.getClasses(day), onClick: () => this.onDateClick(day) }, day ? format(day, 'd') : '')))), this.collapsed !== null ? (this.collapsed ? (index.h("div", { class: "collapsed-container" }, index.h("cura-button-transparent", { disabled: this.isDisabled, onClick: () => this.showNotColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "plusCircle" }, "Veja mais datas"))) : (index.h("div", { class: "collapsed-container" }, index.h("cura-button-transparent", { onClick: () => this.showColapsedCalendar(), size: "small", color: "primary", fontColor: "dark", iconName: "minusCircle" }, "Veja menos datas")))) : null, this.isLoading && (index.h("div", { key: '91af6d390271d126ad380f26a2018e5e06c0f762', class: "loading-container" }, index.h("cura-loader-circle", { key: '032105471ed76a221fbbc50eac62d52250328d57', color: "primary", size: "large" }), index.h("slot", { key: '2cb6ce4b2cffc2d4ec704f4ba8fb746d59c1b0a0', name: "loadingMessage" }))))));
|
|
7434
7463
|
}
|
|
7435
7464
|
static get watchers() { return {
|
|
7436
7465
|
"defaultDate": [{
|
|
@@ -7440,6 +7469,12 @@ const CuraCalendar = class {
|
|
|
7440
7469
|
}],
|
|
7441
7470
|
"customDates": [{
|
|
7442
7471
|
"watchDefaultDatesArray": 0
|
|
7472
|
+
}],
|
|
7473
|
+
"currentDate": [{
|
|
7474
|
+
"watchDatesInViewChange": 0
|
|
7475
|
+
}],
|
|
7476
|
+
"collapsed": [{
|
|
7477
|
+
"watchCollapse": 0
|
|
7443
7478
|
}]
|
|
7444
7479
|
}; }
|
|
7445
7480
|
};
|
|
@@ -7512,7 +7547,7 @@ const CuraCard = class {
|
|
|
7512
7547
|
return classes;
|
|
7513
7548
|
}
|
|
7514
7549
|
render() {
|
|
7515
|
-
return (index.h(index.Host, { key: '
|
|
7550
|
+
return (index.h(index.Host, { key: '73f399ec63b8a0933a22c4a6d605dbb4bc8bf2c3', role: this.href ? 'link' : 'div' }, this.href ? (index.h("a", { class: this.getClasses(), target: this.target, style: this.styles, href: this.href }, index.h("slot", null))) : (index.h("div", { class: this.getClasses(), style: this.styles }, index.h("slot", null)))));
|
|
7516
7551
|
}
|
|
7517
7552
|
};
|
|
7518
7553
|
CuraCard.style = curaCardCss();
|
|
@@ -7943,7 +7978,7 @@ const CuraDropdownSearch = class {
|
|
|
7943
7978
|
};
|
|
7944
7979
|
}
|
|
7945
7980
|
render() {
|
|
7946
|
-
return (index.h(index.Host, { key: '
|
|
7981
|
+
return (index.h(index.Host, { key: '4eebe0e03eb20a9c056158e9bb7dafad6c5d7e36', style: this.getHostCSSProperties(), role: "search", "aria-label": this.label, "aria-required": this.required, "aria-disabled": this.disabled, "aria-expanded": this.zoomState }, index.h("div", { key: 'c74a9785e747c23f853beabce244d9d79be963f6', class: this.getClasses(), style: this.styles }, index.h("div", { key: '8e0e1b8ad5929f7a65d970da37af8da526ea1ec6', class: "component-controls" }, this.isMobile && this.zoomState ? (index.h("cura-button-transparent", { fontColor: "dark", onClick: () => this.handleBackClick(), iconName: "arrowLeft", size: "large", iconOnly: true, color: "primary", id: "button-back" })) : '', index.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) }, index.h("slot", { key: '3626dc325181c193081af56996804453c9dee9f5', name: "helperText" }))), index.h("div", { key: 'c0b979983b567e35a15e756d24cecf0a0102e2bc', class: "dropdown-container", onMouseOver: () => this.handleDropdownMouseOver() }, index.h("slot", { key: '56fc0ae14345c88eaf214a12f6ebf545fc040aea', onSlotchange: () => this.handleSlotChange() })))));
|
|
7947
7982
|
}
|
|
7948
7983
|
get host() { return index.getElement(this); }
|
|
7949
7984
|
};
|
|
@@ -7963,7 +7998,7 @@ const CuraDropdownSearchCategory = class {
|
|
|
7963
7998
|
};
|
|
7964
7999
|
}
|
|
7965
8000
|
render() {
|
|
7966
|
-
return (index.h(index.Host, { key: '
|
|
8001
|
+
return (index.h(index.Host, { key: 'd80c4ebc3e7edee04eb7e3b405cc11ea1cb65111' }, index.h("div", { key: 'af087ac20e0e2075acb87b64573734e16bdd7b62', class: "component-container", style: this.styles }, index.h("cura-heading", { key: 'f48f5ca2cd5fdb7b2862ae20e51b3963461db945', size: 'xsmall', weight: 'bold', color: 'neutral-dark', marginBlock: '0', lineHeight: '1em' }, index.h("slot", { key: '13030d0abe5ac052fa3c3a7e04694ecfd7a3ab23' })))));
|
|
7967
8002
|
}
|
|
7968
8003
|
};
|
|
7969
8004
|
CuraDropdownSearchCategory.style = curaDropdownSearchCategoryCss();
|
|
@@ -8026,7 +8061,7 @@ const CuraDropdownSearchOption = class {
|
|
|
8026
8061
|
};
|
|
8027
8062
|
}
|
|
8028
8063
|
render() {
|
|
8029
|
-
return (index.h(index.Host, { key: '
|
|
8064
|
+
return (index.h(index.Host, { key: 'e01c513f3c2cf8ad1b4b118f2b59d5228a052112' }, index.h("div", { key: 'b59ae795fc8905929ed91fc2e18e465b0d1632f0', class: this.getClasses(), style: this.styles }, index.h("div", { key: 'f3d163ac57e5c6cbc15f4b7d822273afa1279816', class: "selectable-container", onClick: () => this.handleSelect() }, index.h("slot", { key: 'ed9427e3251354825ee9652f653f9597ccf79383', name: 'image' }), index.h("div", { key: 'a78dcf1bfd71e42542b9f7bdb7fb43e3acc628ba', class: "content" }, index.h("slot", { key: '7ad2f91f434cf69b5f45674e887d29fe4188cd9e' }))), index.h("div", { key: '7f9cac5875885a80505b7455de49c090aca7848c', class: "actions-container", onClick: () => this.handleActionsClick() }, index.h("slot", { key: '12496150bea58f08dc7c5a868d866f67903e545c', name: 'actions' })))));
|
|
8030
8065
|
}
|
|
8031
8066
|
};
|
|
8032
8067
|
CuraDropdownSearchOption.style = curaDropdownSearchOptionCss();
|
|
@@ -8121,7 +8156,7 @@ const CuraHeading = class {
|
|
|
8121
8156
|
return tags[`${this.level}`] || tags['default'];
|
|
8122
8157
|
}
|
|
8123
8158
|
render() {
|
|
8124
|
-
return (index.h(index.Host, { key: '
|
|
8159
|
+
return (index.h(index.Host, { key: 'e28268e7d797af495f6accb8536e88ac49ef608f', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
|
|
8125
8160
|
}
|
|
8126
8161
|
get host() { return index.getElement(this); }
|
|
8127
8162
|
};
|
|
@@ -8156,7 +8191,7 @@ const CuraIcon = class {
|
|
|
8156
8191
|
this.host.style.setProperty(prop, value);
|
|
8157
8192
|
}
|
|
8158
8193
|
render() {
|
|
8159
|
-
return (index.h(index.Host, { key: '
|
|
8194
|
+
return (index.h(index.Host, { key: 'b383f07f146a8f4760317a8bfc42a16c06f8d323', role: "img" }, index.h("svg", { key: 'd1d3e98cd7afbf729989463a123030b95ea84221', version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg" }, index.h("use", { key: 'bb6c8175923161b9d603a969bc1a7ca651e19256', xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
|
|
8160
8195
|
}
|
|
8161
8196
|
get host() { return index.getElement(this); }
|
|
8162
8197
|
static get watchers() { return {
|
|
@@ -12297,7 +12332,7 @@ const CuraLabel = class {
|
|
|
12297
12332
|
};
|
|
12298
12333
|
}
|
|
12299
12334
|
render() {
|
|
12300
|
-
return (index.h(index.Host, { key: '
|
|
12335
|
+
return (index.h(index.Host, { key: '720f13cf286fb7f938e46c6f0a968c4e0f109d50', style: this.hostCSSProperties() }, index.h("p", { key: '0ff31e9b99761b045b24ed8042b27e47b186bf48', style: this.styles, class: this.getClasses() }, index.h("slot", { key: '0986ae8c63cc44b4656f403556c48a7ca6410073' }))));
|
|
12301
12336
|
}
|
|
12302
12337
|
get host() { return index.getElement(this); }
|
|
12303
12338
|
static get watchers() { return {
|
|
@@ -12340,7 +12375,7 @@ const CuraLoaderCircle = class {
|
|
|
12340
12375
|
};
|
|
12341
12376
|
}
|
|
12342
12377
|
render() {
|
|
12343
|
-
return (index.h(index.Host, { key: '
|
|
12378
|
+
return (index.h(index.Host, { key: 'c4615da9001f98d1b9e3663cc3be35d2171730e1', style: this.getStyles(), role: "progressbar" }, index.h("svg", { key: '9c37222a3fe0da848f113ad6d8c75e9b2a0cc9cc', viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("g", { key: 'f4a18be935decddbe888d70a37b1433044e05fb0' }, index.h("circle", { key: 'd681798065754082c40a289af01d0d68fc41dca4', cx: "8", cy: "8", r: "7", stroke: "url(#paint0_linear_13485_11488)", "stroke-width": "2" }), index.h("path", { key: '3f0bba399b4fad8870467ef82bbc73bd18a2e9de', 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" })), index.h("defs", { key: '7e74e8efbd8fd28de95b40c856462e1c1dbefec1' }, index.h("linearGradient", { key: 'd8f4d5a79e13f25a72b73219d9398df4dbc1635c', id: "paint0_linear_13485_11488", x1: "15.7", y1: "4.5", x2: "4.15", y2: "11.5", gradientUnits: "userSpaceOnUse" }, index.h("stop", { key: '38d78b4fe60768fd5987cb44bbbcd76bdb82b7c4' }), index.h("stop", { key: 'ea7961e56c62437260bf7e0e8270073d1dd5bbe4', offset: "1" }))))));
|
|
12344
12379
|
}
|
|
12345
12380
|
};
|
|
12346
12381
|
CuraLoaderCircle.style = curaLoaderCircleCss();
|
|
@@ -12363,7 +12398,7 @@ const CuraPageTemplate = class {
|
|
|
12363
12398
|
return classes;
|
|
12364
12399
|
}
|
|
12365
12400
|
render() {
|
|
12366
|
-
return (index.h(index.Host, { key: '
|
|
12401
|
+
return (index.h(index.Host, { key: '65ceac57166149f686508dd56d865092406afe4d' }, index.h("div", { key: 'c78f1ef93fd52b43285fa3b39d203db258c1bf31', style: this.styles, class: "grid-template" }, index.h("div", { key: 'cfb99058f718560bf2679e13266bf6e1447cfb1e', id: "sub-header" }, index.h("slot", { key: 'ddd2aaeb147cad4e92e16dda69f757d9aa261e2c', name: 'sub-header' })), index.h("div", { key: 'c3d87f2c1d68d08e2c46730d731e03a17e0c355d', id: "header" }, index.h("slot", { key: 'a681e8d1c9c379be1c18278811d7e99455ad0a8b', name: 'header' })), index.h("div", { key: 'aee6e5920384ecdbf0c8adb358a431e304f612de', id: "pre-content" }, index.h("slot", { key: '4e554925885a9f8200fe8cb7b35e438e6a7dd1e8', name: 'pre-content' })), index.h("div", { key: '30f1f9aeb3a58fb390716dec7f5855fdcc1cc82d', id: "content-container", class: this.getClasses() }, index.h("div", { key: '259ab99ca0ec43a86536c3c188429a555eebbd45', id: "sidebar-left" }, index.h("slot", { key: 'ff359698c0b452776e558234b46745dd40746edc', name: 'sidebar-left' })), index.h("div", { key: '14338cdc57d8ee6cfb5ca15fd5ed8fe276d83bea', id: "content" }, index.h("slot", { key: 'ea4f4a5423bf061880d580e86f015907ee5929ea', name: "content" }), index.h("slot", { key: 'ddf40946d828b0de102e9fc21ee99201dc36342b' })), index.h("div", { key: 'c207b0c2280033f71c2b7803b1ae9ec017ab2b5c', id: "sidebar-right" }, index.h("slot", { key: 'fd15c1b0ce197f7de9e72827dca3c1d4736b4219', name: 'sidebar-right' }))), index.h("div", { key: 'fd02b69336b4d6920975bf1a8b4a7c8a957e65d6', id: "post-body" }, index.h("slot", { key: '205b2283d6fff54f3e3be4ed9b2b64b05c985601', name: 'post-body' })), index.h("div", { key: '4602dc880efe376c9a951237c43ebcb6723499db', id: "footer" }, index.h("slot", { key: 'ed9314b5192194cea91dab7fc6efdbfb198016fc', name: 'footer' })), index.h("div", { key: '53b5bd4b187a0ae6657bccfb8626a5d335bdeb73', id: "sub-footer" }, index.h("slot", { key: '8b086fb200223ff0bf5acd2266da3ae47cc30269', name: 'sub-footer' })))));
|
|
12367
12402
|
}
|
|
12368
12403
|
get host() { return index.getElement(this); }
|
|
12369
12404
|
};
|
|
@@ -12435,7 +12470,7 @@ const CuraParagraph = class {
|
|
|
12435
12470
|
return classes;
|
|
12436
12471
|
}
|
|
12437
12472
|
render() {
|
|
12438
|
-
return (index.h(index.Host, { key: '
|
|
12473
|
+
return (index.h(index.Host, { key: '411b5363e280ac45fdd05b52beb4d778f9a65f81', style: this.hostCSSProperties() }, index.h("p", { key: '4dcf7ab9518dfe6baea24e5ecf340074d5cc0531', style: this.styles, class: this.getClasses() }, index.h("slot", { key: 'cfbd348562f33ef233cda512d596844f49bf3453' }))));
|
|
12439
12474
|
}
|
|
12440
12475
|
get host() { return index.getElement(this); }
|
|
12441
12476
|
};
|
|
@@ -14520,10 +14555,10 @@ const CuraSelect = class {
|
|
|
14520
14555
|
});
|
|
14521
14556
|
}
|
|
14522
14557
|
render() {
|
|
14523
|
-
return (index.h(index.Host, { key: '
|
|
14558
|
+
return (index.h(index.Host, { key: '13d03dc2dae8a2aea0a40a9f3f8cff4f8dd5e2f7', 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') }, index.h("div", { key: '70d1e6e1e196d9955e29705e7859e60e25116321', class: this.getClasses(), onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), onClick: this.handleClick }, this.label && (index.h("cura-label", { key: '17a8be580d7e66295756dd0d4c50023315ade905', class: "label", weight: "bold", size: this.size === 'large' ? 'small' : 'xsmall', color: this.getColor('label') }, this.label, " ", this.required && index.h("span", { key: '5d3e76ce07f6214eb9925e2b1bdd1a8ea0d59e43', class: "required" }, "* "))), index.h("div", { key: '57da69c886f2f94bc9311ba987a697f3caff7bbf', class: {
|
|
14524
14559
|
'cura-input-field': true,
|
|
14525
14560
|
'open': this.isOpen,
|
|
14526
|
-
}, ref: el => (this.inputWrapper = el) }, this.renderIcon(), index.h("input", { key: '
|
|
14561
|
+
}, ref: el => (this.inputWrapper = el) }, this.renderIcon(), index.h("input", { key: '783caf1d2e7e55d1e50ce870ed62ee358b63d2c5', 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 }), index.h("button", { key: '626d2a26a771babd5353bba45448a5410c4886e3', class: "up-down-button" }, index.h("cura-icon", { key: 'e331e0dde7ece240f8f80768150679262bb88ab6', name: this.isOpen ? 'up' : 'down', class: "up-down-icon", color: this.disabled ? 'neutral-dark' : 'primary-base', size: 16, iconset: "default" }))), index.h("cura-label", { key: '458647bd83c8e8a0d68f49f2b08b7f61bed7e5af', class: "helper-text", size: "xsmall", color: this.getColor('text'), weight: this.mode === 'transparent' ? 'bold' : 'regular' }, index.h("slot", { key: '7ef8488495f4e03694bc65930aad0fa6caa8b51f' })), this.isOpen && (index.h("div", { key: '2ba839bf8b7d85ffd7be60f1575fe94f3057155a', class: {
|
|
14527
14562
|
menu: true,
|
|
14528
14563
|
open: this.isOpen,
|
|
14529
14564
|
[this.preferredPlacement]: true,
|
|
@@ -14536,7 +14571,7 @@ const CuraSelect = class {
|
|
|
14536
14571
|
visibility: this.isPositioned ? 'visible' : 'hidden',
|
|
14537
14572
|
opacity: this.isPositioned ? '1' : '0',
|
|
14538
14573
|
pointerEvents: this.isPositioned ? 'auto' : 'none',
|
|
14539
|
-
} }, index.h("slot", { key: '
|
|
14574
|
+
} }, index.h("slot", { key: '8cb789b3f8cf850a6965ed7be11264a654f26c60', name: "option" }))))));
|
|
14540
14575
|
}
|
|
14541
14576
|
static get formAssociated() { return true; }
|
|
14542
14577
|
get host() { return index.getElement(this); }
|
|
@@ -14590,7 +14625,7 @@ const CuraSelectOption = class {
|
|
|
14590
14625
|
};
|
|
14591
14626
|
}
|
|
14592
14627
|
render() {
|
|
14593
|
-
return (index.h(index.Host, { key: '
|
|
14628
|
+
return (index.h(index.Host, { key: '1959cfad9e9f91de0a6614517e0a696ff832a8b4', slot: "option", role: "option", "aria-selected": this.selected }, index.h("div", { key: 'f22474011fa2a0def2d272477bbb6ba3c7c5dd59', class: this.getClasses(), style: this.styles }, index.h("cura-label", { key: 'a1236553e347a88c478e50cea6809c54ced8f55d', color: `${this.selected ? 'primary-base' : 'neutral-black'}`, size: this.getSize('label'), "margin-block": "0" }, index.h("slot", { key: '3655ebfdd77515ddd8f8dcb6aa736b0dfcca4802' })), this.selected && index.h("cura-icon", { key: 'cc0051639d6878aaeff7c8eb4a2a15a9c73276da', name: 'check', size: this.getSize('icon'), color: "primary-base" }))));
|
|
14594
14629
|
}
|
|
14595
14630
|
get host() { return index.getElement(this); }
|
|
14596
14631
|
static get watchers() { return {
|
|
@@ -14690,7 +14725,7 @@ const CuraTabs = class {
|
|
|
14690
14725
|
const labelSize = curaTabs_definitions.labelSizes[this.size] || curaTabs_definitions.labelSizes['default'];
|
|
14691
14726
|
const labelColor = this.computeContentColor();
|
|
14692
14727
|
this.updateDynamicStyles();
|
|
14693
|
-
return (index.h(index.Host, { key: '
|
|
14728
|
+
return (index.h(index.Host, { key: 'fc0a87968ffd898bd8fc7b287eca4c43183d5b22', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, index.h("button", { key: '00fe656ab46b7f57dae2a7a1dead6a55759ec729', 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(), index.h("cura-label", { key: 'c291da87ab7e8beda3c547570a80914bba5e5836', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, index.h("slot", { key: '7233f8f990b33a841e815746f0c18fad27b907f1' })))));
|
|
14694
14729
|
}
|
|
14695
14730
|
static get watchers() { return {
|
|
14696
14731
|
"colorMode": [{
|
|
@@ -14729,7 +14764,7 @@ const CuraTabsGroup = class {
|
|
|
14729
14764
|
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` });
|
|
14730
14765
|
}
|
|
14731
14766
|
render() {
|
|
14732
|
-
return (index.h(index.Host, { key: '
|
|
14767
|
+
return (index.h(index.Host, { key: '19ab029f51ded1870e7a59518c57cd4270241ac9', role: "tablist", style: this.styles, class: this.getClasses() }, index.h("slot", { key: 'eda90f855125cfdee50efdb11ffd05ec83e7cfe0' })));
|
|
14733
14768
|
}
|
|
14734
14769
|
get host() { return index.getElement(this); }
|
|
14735
14770
|
};
|
|
@@ -217,7 +217,7 @@ const CuraCheckbox = class {
|
|
|
217
217
|
return index.h("cura-icon", { class: "icon", name: iconName, size: iconSize, color: iconColor });
|
|
218
218
|
}
|
|
219
219
|
render() {
|
|
220
|
-
return (index.h(index.Host, { key: '
|
|
220
|
+
return (index.h(index.Host, { key: '9236b8f9d487c042e00800a624e1b729e36b296d', role: "checkbox", "aria-checked": this.checked, "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, index.h("div", { key: '4472e8ee4fa4d1ea6c6f4cf9ba347acc66f7df2a', class: this.getClasses(), style: this.styles, onClick: this.handleClick }, index.h("div", { key: '1c74e35fbfbcfcbe113edcd5522e674d197b2212', class: "info" }, index.h("div", { key: '75e7fdf6050f38473379fb3e4a5880f9eb34e88e', class: "label-wrapper" }, index.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 && (index.h("cura-paragraph", { key: '7d590fd046c2ba90dbef7846f51a774d50418ca7', lineHeight: "0%", marginBlock: "0", color: "error-base" }, "*", ' '))), index.h("cura-label", { key: 'f7c750b3d3ce6afaaba514ac835ceed38674a048', textOverflow: this.overflowHelper, color: this.assignColor('message'), size: "xsmall", class: "message" }, index.h("slot", { key: 'd83d9f24b5a5274233e61256add788bfa2ee0f92' }))), index.h("div", { key: '3f67839bbbf8a583d41765a2a6450c71f5063066', class: 'checkbox', tabIndex: this.ontabindex }, index.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()))));
|
|
221
221
|
}
|
|
222
222
|
static get formAssociated() { return true; }
|
|
223
223
|
get host() { return index.getElement(this); }
|
|
@@ -86,7 +86,7 @@ const CuraDisplay = class {
|
|
|
86
86
|
return tags[`${this.level}`] || tags['default'];
|
|
87
87
|
}
|
|
88
88
|
render() {
|
|
89
|
-
return (index.h(index.Host, { key: '
|
|
89
|
+
return (index.h(index.Host, { key: '343caf7e121561a5339ea553ccadb8aeed553c37', style: this.hostCSSProperties(), role: "heading", "aria-level": this.level }, this.getHeadingTag()));
|
|
90
90
|
}
|
|
91
91
|
get host() { return index.getElement(this); }
|
|
92
92
|
static get watchers() { return {
|
|
@@ -16,7 +16,7 @@ const CuraDropdownSearchNotFound = class {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: '6b57806eb3a2c3be73c76876bfce0062e36a97fa' }, index.h("div", { key: '5a294ef5d53177d439816d881a8d5c90b60b621e', class: "component-container", onClick: this.handleClick }, index.h("cura-heading", { key: 'ff92297c1261d69ef9fa8c2b9cdbfee6365b08f2', size: "xsmall", weight: "bold", color: "error-dark" }, index.h("slot", { key: 'b84f981ba0cff218b5bf0c94a014c83daaa184ac' })))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
CuraDropdownSearchNotFound.style = curaDropdownSearchNotFoundCss();
|
|
@@ -22,7 +22,7 @@ const CuraIconsView = class {
|
|
|
22
22
|
this.sizes.unshift(this.sizes.pop());
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: 'f25d10b3f380cc58fd5b4e77b437e09ba0787df4' }, index.h("div", { key: '5162f1c8aff585a60f37ef9af8451dae8b310394', class: "iconDetail" }, index.h("cura-heading", { key: '2e95f88bf98bcb3b5ea8b2ce6b015ef5d3c984e5', size: "small", "margin-block": "0 24px" }, "Icon: ", index.h("b", { key: '102d867291ca3af92c370f044a7140571b15c737' }, this.selected)), index.h("div", { key: 'e2fd0833644705ea8b406508be51c6d2d5683d24', class: "iconSizes" }, this.sizes.map(size => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, size: size }), index.h("span", null, size)))), index.h("div", { key: 'fa842318750f3cdb5e5d7f7333c9221aaf66b585', class: "iconSizes invert" }, this.sizes.map(size => index.h("div", { class: "size" }, index.h("cura-icon", { name: this.selected, size: size, color: "neutral-white" }), index.h("span", null, size))))), index.h("div", { key: 'a25fd5649fe3bda93f80208e634790da44dde89b', class: "icons" }, iconsetdefaulticons.map(icon => index.h("div", { class: { icon: true, selected: icon === this.selected }, onClick: () => this.setSelected(icon) }, index.h("cura-icon", { name: icon, size: "32", color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }), index.h("cura-label", { size: "xsmall", weight: icon === this.selected ? 'bold' : 'regular', color: icon === this.selected ? 'accent-dark' : 'neutral-dark' }, icon))))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
CuraIconsView.style = curaIconsViewCss();
|
|
@@ -189,7 +189,7 @@ const CuraInputDate = class {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (index.h(index.Host, { key: '
|
|
192
|
+
return (index.h(index.Host, { key: 'fe506eeb9ca1193994e8988f59f7d39aa09afb7c' }, index.h("div", { key: '33b50ee8b32c70855ec061a0fb9747203f473a62', class: "container", style: this.styles }, index.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()))));
|
|
193
193
|
}
|
|
194
194
|
static get formAssociated() { return true; }
|
|
195
195
|
get el() { return index.getElement(this); }
|
|
@@ -23,7 +23,7 @@ const CuraLoaderBar = class {
|
|
|
23
23
|
this.setProgress();
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (index.h(index.Host, { key: '
|
|
26
|
+
return (index.h(index.Host, { key: 'dd27615093a7ab333175afb1e48bbe5455d7406b', role: "progressbar", "aria-valuenow": this.progress, "aria-valuemin": 0, "aria-valuemax": 100 }, index.h("div", { key: 'c3c76b76826c558769d43e441d9e0c573fb7eb7b', id: "progress-bar", class: "progress-bar", style: this.styles }, index.h("span", { key: '0e8e361bdf63e558fa34cca67c3446b1147c2643', class: "progress-bar-fill" }))));
|
|
27
27
|
}
|
|
28
28
|
setColor() {
|
|
29
29
|
this.styles = Object.assign(Object.assign({}, this.styles), { '--neutral-base': window.CuraAPI.theme.colors.getColor(`neutral-base`, 0.2), '--color-base': window.CuraAPI.theme.colors.getColor(this.color) });
|
|
@@ -107,7 +107,7 @@ const CuraModal = class {
|
|
|
107
107
|
window.addEventListener('keydown', this.handleCloseOnEsc);
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (index.h(index.Host, { key: '
|
|
110
|
+
return (index.h(index.Host, { key: 'add6ff0d9e7596282547b9632a10d6b36ce2dd77', role: "dialog", "aria-modal": "true", style: { '--zIndex': this.zindex } }, index.h("div", { key: '0ea813bd986b4cb0e87f31511d600bc88f922d66', class: this.open ? 'modal container open' : 'modal container', style: this.styles }, index.h("div", { key: '90ace6e14ed40371839a784d82c4370cff9c8bc2', class: this.open ? 'modal backdrop open' : 'modal backdrop', onClick: this.canClose ? this.handleClose : undefined }), index.h("div", { key: '1593d59bed08050004b638379194f331518e93ad', class: "wrapper" }, this.canClose && (index.h("div", { key: '348678020334e6f60794e9a22c9aa570deb32411', class: "close desktop" }, index.h("cura-button-transparent", { key: 'bcaed0130dfe074cf23a244a71138243362c6706', iconName: "close", color: "error", size: "small", onClick: this.handleClose, iconOnly: true }))), index.h("slot", { key: 'e34ea51fa11116b235911b7303b7d2f2a70dabd7' }), this.canClose && (index.h("div", { key: 'a262c02432b56a149773e601f14dadc05d09e64f', class: "close mobile", onClick: this.handleClose }, index.h("cura-button-transparent", { key: 'c72a85bc5a3c121829bfe6e509523811ca36e317', color: "error", iconName: "close", size: "small" }, this.mobileCloseLabel)))))));
|
|
111
111
|
}
|
|
112
112
|
static get watchers() { return {
|
|
113
113
|
"background": [{
|
|
@@ -22,7 +22,7 @@ const CuraProgressBar = class {
|
|
|
22
22
|
const circumference = radius * Math.PI * 2;
|
|
23
23
|
const dash = (this.progress * circumference) / 100;
|
|
24
24
|
const viewBox = `0 0 ${this.size} ${this.size}`;
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: 'f546339afd578c9916c87e160652d2836d636235' }, index.h("div", { key: '9341ac6716ea963f4a4b7c6b3a06b348846fe22b', class: "progress-bar" }, index.h("svg", { key: '3312489a2d50a45b9fdc63b3ea00c2e10d742f06', width: this.size, height: this.size, viewBox: viewBox }, index.h("circle", { key: '14672a7a5f0e62889de26ab8ea434ac802440f06', fill: "none", stroke: "#ccc", cx: this.size / 2, cy: this.size / 2, r: radius, "stroke-width": `${this.strokeWidth}px` }), this.active && (index.h("circle", { key: '659481dc37b13dc54ebc7df839fcc0b091733d9d', fill: "none", stroke: this.progressColor, cx: this.size / 2, cy: this.size / 2, r: radius, "stroke-width": `${this.strokeWidth}px`, transform: `rotate(-90 ${this.size / 2} ${this.size / 2})`, "stroke-dasharray": `${dash}px ${circumference - dash}px`, "stroke-linecap": "round", style: { transition: 'all 0.5s' } }))), index.h("span", { key: 'd92f101a4a05eb74b5b601855e8a8eb42ab50d03' }, index.h("slot", { key: '6e89b7922e5579087c6d31bf2733f1b5098867dc' })))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
CuraProgressBar.style = curaProgressBarCss();
|
|
@@ -95,7 +95,7 @@ const CuraStepperItem = class {
|
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
97
|
const { badgeColor, textColor, icon, iconOnly } = this.getStatusProperties();
|
|
98
|
-
return (index.h(index.Host, { key: '
|
|
98
|
+
return (index.h(index.Host, { key: 'fa32a8121b1117a2a186f8d8c0b0cabb03a9ea41' }, index.h("div", { key: '33cacd68a3b62ec1832e9625f034a80a94ca9569', class: "item-container", style: this.styles }, index.h("cura-badge-pill", { key: 'dd636659edc05de46d51d6f02fb8e00c5adbcb88', type: "solid", color: badgeColor, "icon-name": icon, "icon-only": iconOnly, "border-radius": "50%" }, this.label), this.displayHeading && this.heading && (index.h("cura-paragraph", { key: 'd5d9ab0defb69c5f8835c5e22ff300f30dd13d1d', marginBlock: "0", size: "xsmall", color: textColor }, this.heading)))));
|
|
99
99
|
}
|
|
100
100
|
get hostElement() { return index.getElement(this); }
|
|
101
101
|
};
|
|
@@ -190,7 +190,7 @@ const CuraRadio = class {
|
|
|
190
190
|
return statusColors[this.status][type];
|
|
191
191
|
}
|
|
192
192
|
render() {
|
|
193
|
-
return (index.h(index.Host, { key: '
|
|
193
|
+
return (index.h(index.Host, { key: '3b4001cf9d095153254069f9865d865f8570c74f', role: "radio", "aria-checked": this.checked, "aria-disabled": this.disabled, "aria-required": this.required, "aria-invalid": this.status === 'error' }, index.h("div", { key: '2a60ebf8f84ab618580b924bf1a2ce9acf70ed81', class: this.getClasses(), style: this.styles, onClick: this.handleClick }, index.h("div", { key: 'b1bf673d26f9651696fe5e705f4978eda14e25f6', class: "info" }, index.h("div", { key: '3f0cb6742da331c137c62b647a713781b57d25b2', class: "label-wrapper" }, index.h("cura-label", { key: 'a4bcd0b9b9265db0c7c13a47924ba6b253b01f25', textOverflow: this.overflowLabel, class: `label${this.overflowLabel === 'single' ? ' textoverflow-single' : ''}`, size: this.size === 'large' ? 'medium' : 'xsmall', color: this.assignColor('label') }, this.label), this.required && (index.h("cura-paragraph", { key: '821198baf60494203af757451e892a79afde3e2b', lineHeight: "0%", marginBlock: "0", color: "error-base" }, "*", ' '))), index.h("cura-label", { key: '8859c2fd4e77342b1884283977b109c714fc32e6', textOverflow: this.overflowHelper, color: this.assignColor('message'), size: "xsmall", class: "message" }, index.h("slot", { key: '313feac58eee6ee2d2b3656d0fb971be7fc43481' }))), index.h("input", { key: 'f9bd494bbe59443d7bacf31dafb2f516591ad596', type: "radio", class: `radio ${this.size.toLocaleLowerCase()}`, name: this.name, value: this.value, required: this.required, tabIndex: this.ontabindex, disabled: this.disabled, checked: this.checked }))));
|
|
194
194
|
}
|
|
195
195
|
static get formAssociated() { return true; }
|
|
196
196
|
get host() { return index.getElement(this); }
|
|
@@ -128,7 +128,7 @@ const CuraStepper = class {
|
|
|
128
128
|
return (index.h("div", { class: "container", style: this.styles }, index.h("div", { class: "stepper-list" }, this.stepList.map((step, stepIndex) => this.renderStep(step, stepIndex)))));
|
|
129
129
|
}
|
|
130
130
|
render() {
|
|
131
|
-
return index.h(index.Host, { key: '
|
|
131
|
+
return index.h(index.Host, { key: '34f5acc0bded7a19276667cbdb84e0617232d73b' }, this.variant === 'default' ? this.renderStepper() : this.renderCompactStepper());
|
|
132
132
|
}
|
|
133
133
|
get host() { return index.getElement(this); }
|
|
134
134
|
};
|
|
@@ -153,7 +153,7 @@ const CuraSwitch = class {
|
|
|
153
153
|
return classes;
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return (index.h(index.Host, { key: '
|
|
156
|
+
return (index.h(index.Host, { key: '73c935718e0bd39d49581d81de82f3d8dfbecf39', role: "switch", "aria-checked": this.checked, "aria-disabled": this.disabled }, index.h("div", { key: 'f2d813e2c863fd869c1ea48f20155a30f7e9b5bd', class: this.getClasses(), style: this.styles, onClick: this.toggleSwitch }, index.h("div", { key: 'de3b927a6ff4f599c527a370b954872990ef3632', class: "info" }, index.h("cura-label", { key: '71729b9f502baf0de6dba5b0d9592c28a420f41d', textOverflow: this.overflowLabel, style: { textAlign: this.position === 'right' ? 'right' : 'left' }, class: "label", weight: "bold", size: this.size === 'large' ? 'medium' : 'xsmall', lineHeight: "125%", color: this.assignColor('neutral-white', 'neutral-black') }, this.label), index.h("cura-label", { key: '54cc521cadd2d09cae1c5356858f20c5a18d3cf8', textOverflow: this.overflowHelper, style: { textAlign: this.position === 'right' ? 'right' : 'left' }, color: this.assignColor('primary-lighter', 'neutral-dark'), size: "xsmall", class: "message" }, index.h("slot", { key: '57d9dbd78f8e5b30677ecca1c6ba83946b459d28' }))), index.h("div", { key: '03d28fd476865d02010fcf7cd5820f9e50b09015', class: "control" }, index.h("div", { key: '5fc59727c27271cba5f63651373e1e99deb4f5b7', class: `track ${this.size.toLowerCase()}` }, index.h("div", { key: 'cae9983998d99333e85e0da6a66c24d79f79e591', class: `thumb ${this.size.toLowerCase()}`, tabIndex: this.ontabindex }))))));
|
|
157
157
|
}
|
|
158
158
|
static get formAssociated() { return true; }
|
|
159
159
|
static get watchers() { return {
|
|
@@ -89,7 +89,7 @@ const CuraTabs = class {
|
|
|
89
89
|
render() {
|
|
90
90
|
const labelSize = curaTabs_definitions.labelSizes[this.size] || curaTabs_definitions.labelSizes['default'];
|
|
91
91
|
const labelColor = this.computeContentColor();
|
|
92
|
-
return (index.h(index.Host, { key: '
|
|
92
|
+
return (index.h(index.Host, { key: 'e1b96aaf534d4a6c65f875413a0ad28b524c7d97', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, index.h("button", { key: 'dd6436cf0820f4038dfda6f5a45bcdf828d342bd', 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(), index.h("cura-label", { key: '8bebb4e66694fbcedcd218cba0f13de2253ae587', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, index.h("slot", { key: 'b6fab707b8b4cab36131bfec148746e9459302e8' })), this.counter > 0 && this.getCounter())));
|
|
93
93
|
}
|
|
94
94
|
static get watchers() { return {
|
|
95
95
|
"colorMode": [{
|
|
@@ -88,7 +88,7 @@ const CuraTabsTransparent = class {
|
|
|
88
88
|
render() {
|
|
89
89
|
const labelSize = curaTabs_definitions.labelSizes[this.size] || curaTabs_definitions.labelSizes['default'];
|
|
90
90
|
const labelColor = this.computeContentColor();
|
|
91
|
-
return (index.h(index.Host, { key: '
|
|
91
|
+
return (index.h(index.Host, { key: '09e06aa0e52ca852fa5e4409429f50242fa5c6a9', role: "button", "aria-pressed": this.selected, "aria-disabled": this.disabled }, index.h("button", { key: 'a4c5f800f22b23e24b89366766660c02abfd7091', 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(), index.h("cura-label", { key: '73de8c0f84a1128a92fd840c4b6d9b3415071a99', size: labelSize, color: labelColor, lineHeight: "0", marginBlock: "0" }, index.h("slot", { key: '2514d0f1bd9752635fcc2d453c8994d09ef7f5d1' })))));
|
|
92
92
|
}
|
|
93
93
|
static get watchers() { return {
|
|
94
94
|
"colorMode": [{
|
|
@@ -33,7 +33,7 @@ const CuraToast = class {
|
|
|
33
33
|
this.setStyle();
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (index.h(index.Host, { key: '
|
|
36
|
+
return (index.h(index.Host, { key: '3ed410c2082acf963a9bc034ba0698d3d5a8c05e', role: "alert", "aria-live": "polite", "aria-atomic": "true", "aria-label": this.label }, index.h("div", { key: '7da959ad2aa5d8b57e509bfc5c1241cfe2aab078', class: this.getClasses(), style: this.styles }, index.h("cura-icon", { key: 'f88bbe2ad57d6d5a2cdd707a753fe6a37d2fb13a', class: "default-icon", name: this.getNameIcon(), size: 16, color: `${this.type}-dark` }), index.h("div", { key: 'b6d1cf4f6d5cd42b331f19c7996f3de36c29f09e', class: "content" }, index.h("cura-heading", { key: 'ab72f2ffea1f653cd956c5ac1b1c80a053e07673', level: 4, size: "xsmall", color: `${this.type}-dark`, weight: "bold", "margin-block": "0" }, this.label), index.h("cura-paragraph", { key: '29e40bf6759c4a2c53beed9028d4d4a5472c8d1d', color: `${this.type}-darker`, size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, index.h("slot", { key: 'b76073439ef46c084eb681a1639d3644b862db00' })), index.h("slot", { key: 'a5d6b28128d692d84990654e5b74c13c91f1fcb5', name: "actions" })), this.closeButton && index.h("cura-icon", { key: 'bd46e61b4280815f9cb8a683838cceda7b3349c1', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.loader && !!this.autoCloseDelay && index.h("cura-loader-bar", { key: 'bffd92fb6e1c162ff5ead3d3fa84168ef80ca240', color: `${this.type}-base`, progress: this.progress }))));
|
|
37
37
|
}
|
|
38
38
|
componentDidLoad() {
|
|
39
39
|
this.openContainer();
|
|
@@ -32,7 +32,7 @@ const CuraTooltip = class {
|
|
|
32
32
|
this.setStyle();
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (index.h(index.Host, { key: '
|
|
35
|
+
return (index.h(index.Host, { key: '721cf76abdc6eb079edbc8540d2deaa74559c809', role: "tooltip", id: this.elementId }, index.h("div", { key: '51c94531a0d28de3844ac109f0b941062b17c013', class: "container", style: this.styles }, index.h("div", { key: 'b80521a83e983ba8939fb21183570de5dfacf544', class: "content" }, index.h("cura-heading", { key: 'fc16d66d76800d5c8b778bea1cf325d1ce500f72', level: 4, size: "xsmall", color: "neutral-black", weight: "bold", "margin-block": "0" }, this.label), index.h("cura-paragraph", { key: '1e0bd7fcbec98be145c83ef8cfa62e2b8e40211c', color: "neutral-dark", "spot-color": "secondary-darker", size: "xsmall", marginBlock: "0", lineHeight: "133.33%" }, index.h("slot", { key: '4c4509441c4aa22b3810e1b66939e4cea05f48aa' }))), this.closeButton && !this.isMobile && index.h("cura-icon", { key: '35910c2bb5122c25f10c38ed90c5c633daeb7891', class: "close-icon", name: "close", size: 16, color: "error-dark", onClick: this.handleClose }), this.isMobile && index.h("cura-button-transparent", { key: '1cec8c66efb24e8eda4e09354dd335e03abd99ed', class: "close-button", size: "small", type: "button", color: "error", "icon-name": "close", "icon-position": "right", onClick: this.handleClose }, "OK, entendi."))));
|
|
36
36
|
}
|
|
37
37
|
componentDidLoad() {
|
|
38
38
|
var _a, _b, _c, _d, _e;
|