@getufy/flint-ui 0.2.2 → 0.4.0
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/README.md +6 -0
- package/dist/_shared/{flint-accordion-CnXIksxN.js → flint-accordion-C1ZeUTPt.js} +7 -1
- package/dist/_shared/{flint-alert-DNcwWxQL.js → flint-alert-XVhCfLTJ.js} +4 -1
- package/dist/_shared/{flint-backdrop-BszHm5cJ.js → flint-backdrop-B28XJbZN.js} +4 -2
- package/dist/_shared/{flint-bottom-navigation-B4-3_1w7.js → flint-bottom-navigation-_0CMIMiw.js} +5 -2
- package/dist/_shared/{flint-card-C-j6SYxM.js → flint-card-CQCJ9CY-.js} +1 -1
- package/dist/_shared/{flint-chip-5QF8rU8e.js → flint-chip-BfNjtn6m.js} +6 -4
- package/dist/_shared/{flint-command-COftXb8j.js → flint-command-BuXwceg_.js} +2 -1
- package/dist/_shared/{flint-date-field-CYSc9ezt.js → flint-date-field-lcBa5fNS.js} +6 -3
- package/dist/_shared/{flint-date-picker-CmCtDBVO.js → flint-date-picker-BmCBZr-w.js} +8 -5
- package/dist/_shared/{flint-date-range-picker-DiVjn_ST.js → flint-date-range-picker-BmADbduG.js} +8 -5
- package/dist/_shared/{flint-dialog-CH1ylFUb.js → flint-dialog-CK6ltziy.js} +12 -5
- package/dist/_shared/{flint-drawer-BAukflTn.js → flint-drawer-jR9Z3p_w.js} +9 -2
- package/dist/_shared/{flint-hover-card-fSMVR0xj.js → flint-hover-card-BTdefGOR.js} +2 -1
- package/dist/_shared/{flint-input-BV4Glu8N.js → flint-input-CuVd-L9A.js} +13 -7
- package/dist/_shared/{flint-input-otp-__geY8N4.js → flint-input-otp-C2GUUYS9.js} +9 -9
- package/dist/_shared/{flint-menu-EOF1QvHq.js → flint-menu-ZvPIg74v.js} +3 -2
- package/dist/_shared/{flint-menubar-7AuGQli6.js → flint-menubar-C1Q_-F8q.js} +2 -1
- package/dist/_shared/{flint-select-Bhc3BR09.js → flint-select-Cuu4rHts.js} +1 -1
- package/dist/_shared/{flint-single-input-date-range-field-BVGf6515.js → flint-single-input-date-range-field-CnKdZow6.js} +6 -3
- package/dist/_shared/{flint-snackbar-DS5F7oXF.js → flint-snackbar-D8-hpqLp.js} +12 -4
- package/dist/_shared/{flint-speed-dial-DTZ2WaBh.js → flint-speed-dial-DYU66D0P.js} +2 -1
- package/dist/_shared/{flint-stepper-DdkEEVXE.js → flint-stepper-J1h_Y0-1.js} +10 -4
- package/dist/_shared/{flint-text-field-DlLvuIJW.js → flint-text-field-CqiHradH.js} +11 -5
- package/dist/_shared/{flint-textarea-wDEUC9Bt.js → flint-textarea-D15Eq154.js} +5 -5
- package/dist/_shared/{flint-time-picker-DcFN6DJD.js → flint-time-picker-CgOz2hSp.js} +39 -27
- package/dist/_shared/{flint-toggle-button-group-Cp9x0wSj.js → flint-toggle-button-group-Bb9ysTf-.js} +5 -2
- package/dist/_shared/{flint-transfer-list-DZsAcF0l.js → flint-transfer-list-CVm0jvtR.js} +1 -1
- package/dist/accordion/flint-accordion.d.ts +14 -0
- package/dist/accordion/flint-accordion.d.ts.map +1 -1
- package/dist/accordion/flint-accordion.js +1 -1
- package/dist/alert/flint-alert.d.ts +1 -1
- package/dist/alert/flint-alert.js +1 -1
- package/dist/app-bar/flint-app-bar.d.ts +4 -0
- package/dist/app-bar/flint-app-bar.d.ts.map +1 -1
- package/dist/backdrop/flint-backdrop.d.ts +1 -1
- package/dist/backdrop/flint-backdrop.js +1 -1
- package/dist/bottom-navigation/flint-bottom-navigation-action.d.ts +3 -0
- package/dist/bottom-navigation/flint-bottom-navigation-action.d.ts.map +1 -1
- package/dist/bottom-navigation/flint-bottom-navigation.d.ts +8 -1
- package/dist/bottom-navigation/flint-bottom-navigation.d.ts.map +1 -1
- package/dist/bottom-navigation/flint-bottom-navigation.js +1 -1
- package/dist/button/flint-toggle-button-group.d.ts +7 -0
- package/dist/button/flint-toggle-button-group.d.ts.map +1 -1
- package/dist/button/flint-toggle-button-group.js +1 -1
- package/dist/card/flint-card-header.d.ts +7 -0
- package/dist/card/flint-card-header.d.ts.map +1 -1
- package/dist/card/flint-card.js +1 -1
- package/dist/carousel/flint-carousel.d.ts +12 -0
- package/dist/carousel/flint-carousel.d.ts.map +1 -1
- package/dist/chip/flint-chip.d.ts +5 -1
- package/dist/chip/flint-chip.d.ts.map +1 -1
- package/dist/chip/flint-chip.js +1 -1
- package/dist/command/flint-command.d.ts +1 -1
- package/dist/command/flint-command.d.ts.map +1 -1
- package/dist/command/flint-command.js +1 -1
- package/dist/date-field/flint-date-field.d.ts +2 -0
- package/dist/date-field/flint-date-field.d.ts.map +1 -1
- package/dist/date-field/flint-date-field.js +1 -1
- package/dist/date-picker/flint-date-picker.d.ts +3 -1
- package/dist/date-picker/flint-date-picker.d.ts.map +1 -1
- package/dist/date-picker/flint-date-picker.js +1 -1
- package/dist/date-range-picker/flint-date-range-picker.d.ts +2 -0
- package/dist/date-range-picker/flint-date-range-picker.d.ts.map +1 -1
- package/dist/date-range-picker/flint-date-range-picker.js +1 -1
- package/dist/date-range-picker/flint-single-input-date-range-field.d.ts +2 -0
- package/dist/date-range-picker/flint-single-input-date-range-field.d.ts.map +1 -1
- package/dist/date-range-picker/flint-single-input-date-range-field.js +1 -1
- package/dist/dialog/flint-dialog.d.ts +10 -3
- package/dist/dialog/flint-dialog.d.ts.map +1 -1
- package/dist/dialog/flint-dialog.js +1 -1
- package/dist/drawer/flint-drawer.d.ts +8 -1
- package/dist/drawer/flint-drawer.d.ts.map +1 -1
- package/dist/drawer/flint-drawer.js +1 -1
- package/dist/hover-card/flint-hover-card.d.ts +2 -2
- package/dist/hover-card/flint-hover-card.js +1 -1
- package/dist/image-list/flint-image-list-item-bar.d.ts +3 -3
- package/dist/index.js +27 -27
- package/dist/input/flint-input.d.ts +5 -2
- package/dist/input/flint-input.d.ts.map +1 -1
- package/dist/input/flint-input.js +1 -1
- package/dist/input-otp/flint-input-otp.d.ts +0 -1
- package/dist/input-otp/flint-input-otp.d.ts.map +1 -1
- package/dist/input-otp/flint-input-otp.js +1 -1
- package/dist/link/flint-link.d.ts +1 -1
- package/dist/menu/flint-menu.d.ts +2 -2
- package/dist/menu/flint-menu.d.ts.map +1 -1
- package/dist/menu/flint-menu.js +1 -1
- package/dist/menubar/flint-menubar.d.ts.map +1 -1
- package/dist/menubar/flint-menubar.js +1 -1
- package/dist/resizable/flint-resizable.js +2 -2
- package/dist/select/flint-select.d.ts +1 -1
- package/dist/select/flint-select.js +1 -1
- package/dist/snackbar/flint-snackbar.d.ts +9 -2
- package/dist/snackbar/flint-snackbar.d.ts.map +1 -1
- package/dist/snackbar/flint-snackbar.js +1 -1
- package/dist/speed-dial/flint-speed-dial.d.ts +2 -2
- package/dist/speed-dial/flint-speed-dial.js +1 -1
- package/dist/split-panel/flint-split-panel.js +1 -1
- package/dist/stepper/flint-stepper.d.ts +33 -2
- package/dist/stepper/flint-stepper.d.ts.map +1 -1
- package/dist/stepper/flint-stepper.js +1 -1
- package/dist/suppress-warnings.d.ts +20 -0
- package/dist/suppress-warnings.d.ts.map +1 -0
- package/dist/suppress-warnings.js +2 -0
- package/dist/text-field/flint-text-field.d.ts +7 -3
- package/dist/text-field/flint-text-field.d.ts.map +1 -1
- package/dist/text-field/flint-text-field.js +1 -1
- package/dist/textarea/flint-textarea.d.ts +1 -1
- package/dist/textarea/flint-textarea.d.ts.map +1 -1
- package/dist/textarea/flint-textarea.js +1 -1
- package/dist/time-picker/flint-time-picker.d.ts +16 -8
- package/dist/time-picker/flint-time-picker.d.ts.map +1 -1
- package/dist/time-picker/flint-time-picker.js +1 -1
- package/dist/transfer-list/flint-transfer-list.d.ts +1 -1
- package/dist/transfer-list/flint-transfer-list.js +1 -1
- package/dist/tree-view/flint-tree-item.d.ts +2 -1
- package/dist/tree-view/flint-tree-item.d.ts.map +1 -1
- package/package.json +7 -3
|
@@ -5,18 +5,23 @@ import { classMap as s } from "lit/directives/class-map.js";
|
|
|
5
5
|
//#region src/snackbar/flint-snackbar.css?inline
|
|
6
6
|
var c = ":host{pointer-events:none;z-index:var(--flint-snackbar-z-index,1400);justify-content:center;align-items:center;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:fixed}:host([anchor-origin*=bottom]){bottom:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=top]){top:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=left]){left:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=right]){right:var(--flint-snackbar-offset,24px)}:host([anchor-origin*=center]){left:50%;transform:translate(-50%)}.snackbar{background-color:var(--flint-snackbar-bg,#313131);color:var(--flint-snackbar-color,#fff);font-family:var(--flint-font-family);letter-spacing:.01071em;border-radius:var(--flint-border-radius-md);box-shadow:var(--flint-shadow-lg);min-width:var(--flint-snackbar-min-width,288px);max-width:var(--flint-snackbar-max-width,560px);pointer-events:auto;opacity:0;visibility:hidden;align-items:center;padding:6px 16px;font-size:.875rem;line-height:1.43;transition:opacity .225s cubic-bezier(.4,0,.2,1),transform .15s cubic-bezier(.4,0,.2,1);display:flex;transform:scale(.85)}.snackbar.open{opacity:1;visibility:visible;transform:scale(1)}:host([variant=info]) .snackbar{background-color:var(--flint-snackbar-bg-info,#0288d1)}:host([variant=success]) .snackbar{background-color:var(--flint-snackbar-bg-success,#2e7d32)}:host([variant=warning]) .snackbar{background-color:var(--flint-snackbar-bg-warning,#ed6c02)}:host([variant=error]) .snackbar{background-color:var(--flint-snackbar-bg-error,#d32f2f)}.message{flex-grow:1;padding:8px 0}.action{align-items:center;margin-left:8px;margin-right:-8px;padding-left:16px;display:flex}.action.hidden{display:none}.close-btn{color:inherit;cursor:pointer;opacity:.8;background:0 0;border:none;border-radius:2px;align-items:center;margin-left:8px;margin-right:-8px;padding:4px 8px;line-height:0;display:flex}.close-btn:hover{opacity:1}::slotted(flint-alert){width:100%;min-width:288px;margin-bottom:0!important}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
7
7
|
constructor(...e) {
|
|
8
|
-
super(...e), this.open = !1, this.message = "", this.autoHideDuration = 5e3, this.anchorOrigin = "bottom-center", this.pauseOnHover = !0, this.closable = !1, this.variant = "default", this._hasAction = !1, this._timer = null, this._remainingTime = 0, this._timerStartedAt = 0;
|
|
8
|
+
super(...e), this.open = !1, this.defaultOpen = !1, this.message = "", this.autoHideDuration = 5e3, this.anchorOrigin = "bottom-center", this.pauseOnHover = !0, this.closable = !1, this.variant = "default", this._firstUpdate = !0, this._hasAction = !1, this._timer = null, this._remainingTime = 0, this._timerStartedAt = 0;
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
11
|
this.styles = r(c);
|
|
12
12
|
}
|
|
13
|
+
willUpdate(e) {
|
|
14
|
+
this._firstUpdate && (this._firstUpdate = !1, this.defaultOpen && !this.open && (this.open = !0));
|
|
15
|
+
}
|
|
13
16
|
updated(e) {
|
|
14
17
|
e.has("open") && (this.open ? (this._remainingTime = this.autoHideDuration, this._startTimer(this._remainingTime), this.dispatchEvent(new CustomEvent("flint-snackbar-open", {
|
|
15
18
|
bubbles: !0,
|
|
16
|
-
composed: !0
|
|
19
|
+
composed: !0,
|
|
20
|
+
detail: { open: !0 }
|
|
17
21
|
}))) : (this._clearTimer(), this.dispatchEvent(new CustomEvent("flint-snackbar-close", {
|
|
18
22
|
bubbles: !0,
|
|
19
|
-
composed: !0
|
|
23
|
+
composed: !0,
|
|
24
|
+
detail: { open: !1 }
|
|
20
25
|
}))));
|
|
21
26
|
}
|
|
22
27
|
disconnectedCallback() {
|
|
@@ -81,7 +86,10 @@ var c = ":host{pointer-events:none;z-index:var(--flint-snackbar-z-index,1400);ju
|
|
|
81
86
|
e([a({
|
|
82
87
|
type: Boolean,
|
|
83
88
|
reflect: !0
|
|
84
|
-
})], l.prototype, "open", void 0), e([a({
|
|
89
|
+
})], l.prototype, "open", void 0), e([a({
|
|
90
|
+
type: Boolean,
|
|
91
|
+
attribute: "default-open"
|
|
92
|
+
})], l.prototype, "defaultOpen", void 0), e([a({ type: String })], l.prototype, "message", void 0), e([a({
|
|
85
93
|
type: Number,
|
|
86
94
|
attribute: "auto-hide-duration"
|
|
87
95
|
})], l.prototype, "autoHideDuration", void 0), e([a({
|
|
@@ -140,7 +140,8 @@ var f = class extends t {
|
|
|
140
140
|
_setOpen(e) {
|
|
141
141
|
this.open = e, this._updateActionTooltips(), this.dispatchEvent(new CustomEvent(e ? "flint-speed-dial-open" : "flint-speed-dial-close", {
|
|
142
142
|
bubbles: !0,
|
|
143
|
-
composed: !0
|
|
143
|
+
composed: !0,
|
|
144
|
+
detail: { open: e }
|
|
144
145
|
}));
|
|
145
146
|
}
|
|
146
147
|
_toggle() {
|
|
@@ -74,7 +74,7 @@ var y = class extends t {
|
|
|
74
74
|
}
|
|
75
75
|
_fire() {
|
|
76
76
|
this.disabled || this.dispatchEvent(new CustomEvent("flint-step-click", {
|
|
77
|
-
detail: {
|
|
77
|
+
detail: { step: this.stepIndex },
|
|
78
78
|
bubbles: !0,
|
|
79
79
|
composed: !0
|
|
80
80
|
}));
|
|
@@ -162,9 +162,9 @@ e([o({
|
|
|
162
162
|
})], y.prototype, "prevCompleted", void 0), y = e([a("flint-step")], y);
|
|
163
163
|
var b = class extends t {
|
|
164
164
|
constructor(...e) {
|
|
165
|
-
super(...e), this.activeStep = 0, this.orientation = "horizontal", this.alternativeLabel = !1, this.nonLinear = !1, this.label = "steps", this._onStepClick = (e) => {
|
|
166
|
-
this.activeStep = e.detail.
|
|
167
|
-
detail: { step:
|
|
165
|
+
super(...e), this.activeStep = 0, this.orientation = "horizontal", this.alternativeLabel = !1, this.nonLinear = !1, this.label = "steps", this._firstUpdate = !0, this._onStepClick = (e) => {
|
|
166
|
+
this.activeStep = e.detail.step, this.dispatchEvent(new CustomEvent("flint-step-change", {
|
|
167
|
+
detail: { step: this.activeStep },
|
|
168
168
|
bubbles: !0,
|
|
169
169
|
composed: !0
|
|
170
170
|
})), this._syncSteps();
|
|
@@ -173,6 +173,9 @@ var b = class extends t {
|
|
|
173
173
|
static {
|
|
174
174
|
this.styles = i(f);
|
|
175
175
|
}
|
|
176
|
+
willUpdate(e) {
|
|
177
|
+
this._firstUpdate && (this._firstUpdate = !1, this.defaultActiveStep !== void 0 && (this.activeStep = this.defaultActiveStep));
|
|
178
|
+
}
|
|
176
179
|
_syncSteps() {
|
|
177
180
|
let e = Array.from(this.querySelectorAll(":scope > flint-step"));
|
|
178
181
|
e.forEach((t, n) => {
|
|
@@ -204,6 +207,9 @@ e([o({
|
|
|
204
207
|
type: Number,
|
|
205
208
|
attribute: "active-step"
|
|
206
209
|
})], b.prototype, "activeStep", void 0), e([o({
|
|
210
|
+
type: Number,
|
|
211
|
+
attribute: "default-active-step"
|
|
212
|
+
})], b.prototype, "defaultActiveStep", void 0), e([o({
|
|
207
213
|
type: String,
|
|
208
214
|
reflect: !0
|
|
209
215
|
})], b.prototype, "orientation", void 0), e([o({
|
|
@@ -3,22 +3,25 @@ import { LitElement as t, html as n, unsafeCSS as r } from "lit";
|
|
|
3
3
|
import { customElement as i, property as a, state as o } from "lit/decorators.js";
|
|
4
4
|
import { classMap as s } from "lit/directives/class-map.js";
|
|
5
5
|
//#region src/text-field/flint-text-field.css?inline
|
|
6
|
-
var c = ":host{font-family:var(--flint-font-family);margin-bottom:
|
|
6
|
+
var c = ":host{font-family:var(--flint-font-family);margin-bottom:var(--flint-text-field-margin-bottom,0);display:block}.field-container{flex-direction:column;gap:.5rem;display:flex}.label{color:var(--flint-label-color);font-size:.875rem;font-weight:500;transition:color .2s}.input-wrapper{background-color:var(--flint-input-bg);border:1px solid var(--flint-input-border-color);border-radius:var(--flint-input-border-radius);align-items:center;transition:all .2s;display:flex;position:relative;overflow:hidden}.input-wrapper:hover:not(.disabled):not(.error){border-color:var(--flint-input-border-hover-color)}.input-wrapper.focused:not(.error){border-color:var(--flint-primary-color);box-shadow:0 0 0 3px var(--flint-primary-focus-ring)}.input-wrapper.error{border-color:var(--flint-error-color)}.input-wrapper.error.focused{box-shadow:0 0 0 3px var(--flint-error-focus-ring)}.input-wrapper.disabled{background-color:var(--flint-input-disabled-bg);cursor:not-allowed;opacity:.7}input{width:100%;color:inherit;background:0 0;border:none;outline:none;flex:1;padding:.625rem .875rem;font-family:inherit;font-size:1rem}input:disabled{cursor:not-allowed}input::placeholder{color:var(--flint-input-placeholder-color)}.icon-leading,.icon-trailing{color:var(--flint-text-color-muted);justify-content:center;align-items:center;padding:0 .75rem;display:flex}.icon-leading{padding-right:0}.icon-trailing{padding-left:0}.helper-text{color:var(--flint-help-text-color);font-size:.75rem}.error-text{color:var(--flint-error-color)}.filled .input-wrapper{background-color:var(--flint-surface-2);border-bottom:2px solid var(--flint-input-border-color);border-top:none;border-left:none;border-right:none;border-radius:4px 4px 0 0}.filled .input-wrapper.focused{border-bottom-color:var(--flint-primary-color);background-color:var(--flint-hover-color)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}", l = class extends t {
|
|
7
7
|
constructor(...e) {
|
|
8
|
-
super(...e), this.label = "", this.value = "", this.placeholder = "", this.type = "text", this.variant = "outlined", this.disabled = !1, this.error = !1, this.helperText = "", this.errorMessage = "", this._focused = !1;
|
|
8
|
+
super(...e), this.label = "", this.value = "", this.placeholder = "", this.type = "text", this.variant = "outlined", this.disabled = !1, this.error = !1, this.helperText = "", this.errorMessage = "", this.defaultValue = "", this._focused = !1, this._firstUpdate = !0;
|
|
9
9
|
}
|
|
10
10
|
static {
|
|
11
11
|
this.styles = r(c);
|
|
12
12
|
}
|
|
13
|
+
willUpdate(e) {
|
|
14
|
+
super.willUpdate(e), this._firstUpdate && (this._firstUpdate = !1, this.defaultValue && !this.value && (this.value = this.defaultValue));
|
|
15
|
+
}
|
|
13
16
|
_handleInput(e) {
|
|
14
|
-
this.value = e.target.value, this.dispatchEvent(new CustomEvent("input", {
|
|
17
|
+
this.value = e.target.value, this.dispatchEvent(new CustomEvent("flint-text-field-input", {
|
|
15
18
|
detail: { value: this.value },
|
|
16
19
|
bubbles: !0,
|
|
17
20
|
composed: !0
|
|
18
21
|
}));
|
|
19
22
|
}
|
|
20
23
|
_handleChange(e) {
|
|
21
|
-
this.value = e.target.value, this.dispatchEvent(new CustomEvent("change", {
|
|
24
|
+
this.value = e.target.value, this.dispatchEvent(new CustomEvent("flint-text-field-change", {
|
|
22
25
|
detail: { value: this.value },
|
|
23
26
|
bubbles: !0,
|
|
24
27
|
composed: !0
|
|
@@ -71,6 +74,9 @@ var c = ":host{font-family:var(--flint-font-family);margin-bottom:1rem;display:b
|
|
|
71
74
|
`;
|
|
72
75
|
}
|
|
73
76
|
};
|
|
74
|
-
e([a({ type: String })], l.prototype, "label", void 0), e([a({ type: String })], l.prototype, "value", void 0), e([a({ type: String })], l.prototype, "placeholder", void 0), e([a({ type: String })], l.prototype, "type", void 0), e([a({ type: String })], l.prototype, "variant", void 0), e([a({ type: Boolean })], l.prototype, "disabled", void 0), e([a({ type: Boolean })], l.prototype, "error", void 0), e([a({ type: String })], l.prototype, "helperText", void 0), e([a({ type: String })], l.prototype, "errorMessage", void 0), e([
|
|
77
|
+
e([a({ type: String })], l.prototype, "label", void 0), e([a({ type: String })], l.prototype, "value", void 0), e([a({ type: String })], l.prototype, "placeholder", void 0), e([a({ type: String })], l.prototype, "type", void 0), e([a({ type: String })], l.prototype, "variant", void 0), e([a({ type: Boolean })], l.prototype, "disabled", void 0), e([a({ type: Boolean })], l.prototype, "error", void 0), e([a({ type: String })], l.prototype, "helperText", void 0), e([a({ type: String })], l.prototype, "errorMessage", void 0), e([a({
|
|
78
|
+
type: String,
|
|
79
|
+
attribute: "default-value"
|
|
80
|
+
})], l.prototype, "defaultValue", void 0), e([o()], l.prototype, "_focused", void 0), l = e([i("flint-text-field")], l);
|
|
75
81
|
//#endregion
|
|
76
82
|
export { l as t };
|
|
@@ -10,7 +10,7 @@ var u = ":host{font-family:var(--flint-font-family);display:block}.textarea-wrap
|
|
|
10
10
|
this.styles = a(u);
|
|
11
11
|
}
|
|
12
12
|
constructor() {
|
|
13
|
-
super(), this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.error = !1, this.errorMessage = "", this.
|
|
13
|
+
super(), this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.error = !1, this.errorMessage = "", this.helperText = "", this.label = "", this.size = "default", this.rows = 3, this.maxlength = void 0, this.minlength = void 0, this.name = "", this.autocomplete = "", this.resize = "vertical", this.defaultValue = "", this.ariaLabel = null, d++, this._textareaId = `flint-textarea-${d}`, this._descId = `flint-textarea-desc-${d}`;
|
|
14
14
|
}
|
|
15
15
|
get textareaElement() {
|
|
16
16
|
return this.shadowRoot?.querySelector("textarea") ?? null;
|
|
@@ -40,7 +40,7 @@ var u = ":host{font-family:var(--flint-font-family);display:block}.textarea-wrap
|
|
|
40
40
|
}));
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
let e = this.error || !!this.errorMessage, t = e && !!this.errorMessage || !!this.
|
|
43
|
+
let e = this.error || !!this.errorMessage, t = e && !!this.errorMessage || !!this.helperText;
|
|
44
44
|
return r`
|
|
45
45
|
<div class="textarea-wrapper" part="wrapper">
|
|
46
46
|
${this.label ? r`
|
|
@@ -69,7 +69,7 @@ var u = ":host{font-family:var(--flint-font-family);display:block}.textarea-wrap
|
|
|
69
69
|
@change=${this._handleChange}
|
|
70
70
|
></textarea>
|
|
71
71
|
|
|
72
|
-
${e && this.errorMessage ? r`<p id=${this._descId} class="help-text error-text" part="error-text" role="alert">${this.errorMessage}</p>` : this.
|
|
72
|
+
${e && this.errorMessage ? r`<p id=${this._descId} class="help-text error-text" part="error-text" role="alert">${this.errorMessage}</p>` : this.helperText ? r`<p id=${this._descId} class="help-text" part="help-text">${this.helperText}</p>` : i}
|
|
73
73
|
</div>
|
|
74
74
|
`;
|
|
75
75
|
}
|
|
@@ -88,8 +88,8 @@ e([s({ type: String })], f.prototype, "value", void 0), e([s({ type: String })],
|
|
|
88
88
|
attribute: "error-message"
|
|
89
89
|
})], f.prototype, "errorMessage", void 0), e([s({
|
|
90
90
|
type: String,
|
|
91
|
-
attribute: "
|
|
92
|
-
})], f.prototype, "
|
|
91
|
+
attribute: "helper-text"
|
|
92
|
+
})], f.prototype, "helperText", void 0), e([s({ type: String })], f.prototype, "label", void 0), e([s({
|
|
93
93
|
type: String,
|
|
94
94
|
reflect: !0
|
|
95
95
|
})], f.prototype, "size", void 0), e([s({ type: Number })], f.prototype, "rows", void 0), e([s({ type: Number })], f.prototype, "maxlength", void 0), e([s({ type: Number })], f.prototype, "minlength", void 0), e([s({ type: String })], f.prototype, "name", void 0), e([s({ type: String })], f.prototype, "autocomplete", void 0), e([s({
|
|
@@ -50,7 +50,7 @@ function T(e, t, n = 140, r = 140) {
|
|
|
50
50
|
}
|
|
51
51
|
var E = class extends t {
|
|
52
52
|
constructor(...e) {
|
|
53
|
-
super(...e), this.value = "", this.label = "", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.helperText = "", this._h = null, this._m = null, this._s = null, this._mer = "AM", this._active = null, this._focused = !1, this._buf = "";
|
|
53
|
+
super(...e), this.value = "", this.label = "", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.helperText = "", this.errorMessage = "", this._h = null, this._m = null, this._s = null, this._mer = "AM", this._active = null, this._focused = !1, this._buf = "";
|
|
54
54
|
}
|
|
55
55
|
static {
|
|
56
56
|
this.styles = o(f);
|
|
@@ -77,7 +77,7 @@ var E = class extends t {
|
|
|
77
77
|
_emit() {
|
|
78
78
|
if (this._h === null || this._m === null) return;
|
|
79
79
|
let e = b(this.ampm ? S(this._h, this._mer) : this._h, this._m, this._s ?? 0);
|
|
80
|
-
e !== this.value && (this.value = e, this.dispatchEvent(new CustomEvent("change", {
|
|
80
|
+
e !== this.value && (this.value = e, this.dispatchEvent(new CustomEvent("flint-time-field-change", {
|
|
81
81
|
detail: { value: e },
|
|
82
82
|
bubbles: !0,
|
|
83
83
|
composed: !0
|
|
@@ -230,7 +230,7 @@ var E = class extends t {
|
|
|
230
230
|
e.stopPropagation(), this.clear();
|
|
231
231
|
}}>✕</button>` : i}
|
|
232
232
|
</div>
|
|
233
|
-
${this.helperText ? r`<small class="helper">${this.helperText}</small>` : i}
|
|
233
|
+
${this.error && this.errorMessage ? r`<small class="helper error-text" role="alert">${this.errorMessage}</small>` : this.helperText ? r`<small class="helper">${this.helperText}</small>` : i}
|
|
234
234
|
`;
|
|
235
235
|
}
|
|
236
236
|
};
|
|
@@ -246,7 +246,10 @@ e([c({ type: String })], E.prototype, "value", void 0), e([c({ type: String })],
|
|
|
246
246
|
})], E.prototype, "error", void 0), e([c({
|
|
247
247
|
type: String,
|
|
248
248
|
attribute: "helper-text"
|
|
249
|
-
})], E.prototype, "helperText", void 0), e([
|
|
249
|
+
})], E.prototype, "helperText", void 0), e([c({
|
|
250
|
+
type: String,
|
|
251
|
+
attribute: "error-message"
|
|
252
|
+
})], E.prototype, "errorMessage", void 0), e([l()], E.prototype, "_h", void 0), e([l()], E.prototype, "_m", void 0), e([l()], E.prototype, "_s", void 0), e([l()], E.prototype, "_mer", void 0), e([l()], E.prototype, "_active", void 0), e([l()], E.prototype, "_focused", void 0), e([l()], E.prototype, "_buf", void 0), E = e([s("flint-time-field")], E);
|
|
250
253
|
var D = class extends t {
|
|
251
254
|
constructor(...e) {
|
|
252
255
|
super(...e), this.value = "", this.step = 30, this.ampm = !0;
|
|
@@ -266,7 +269,7 @@ var D = class extends t {
|
|
|
266
269
|
return C(e, this.ampm);
|
|
267
270
|
}
|
|
268
271
|
_select(e) {
|
|
269
|
-
this.dispatchEvent(new CustomEvent("change", {
|
|
272
|
+
this.dispatchEvent(new CustomEvent("flint-digital-clock-change", {
|
|
270
273
|
detail: { value: e },
|
|
271
274
|
bubbles: !0,
|
|
272
275
|
composed: !0
|
|
@@ -322,7 +325,7 @@ var O = class extends t {
|
|
|
322
325
|
}
|
|
323
326
|
_set(e, t, n) {
|
|
324
327
|
let r = b(e, t, n);
|
|
325
|
-
this.dispatchEvent(new CustomEvent("change", {
|
|
328
|
+
this.dispatchEvent(new CustomEvent("flint-multi-section-digital-clock-change", {
|
|
326
329
|
detail: { value: r },
|
|
327
330
|
bubbles: !0,
|
|
328
331
|
composed: !0
|
|
@@ -464,7 +467,7 @@ var k = class extends t {
|
|
|
464
467
|
}
|
|
465
468
|
_emit(e, t, n) {
|
|
466
469
|
let r = b(e, t, n);
|
|
467
|
-
this.dispatchEvent(new CustomEvent("change", {
|
|
470
|
+
this.dispatchEvent(new CustomEvent("flint-time-clock-change", {
|
|
468
471
|
detail: { value: r },
|
|
469
472
|
bubbles: !0,
|
|
470
473
|
composed: !0
|
|
@@ -645,13 +648,13 @@ var A = n`
|
|
|
645
648
|
.btn-ok:hover { background:var(--flint-primary-color-hover,#2563eb); }
|
|
646
649
|
`, j = class extends t {
|
|
647
650
|
constructor(...e) {
|
|
648
|
-
super(...e), this.value = "", this.label = "Time", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.helperText = "", this._open = !1;
|
|
651
|
+
super(...e), this.value = "", this.label = "Time", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.readonly = !1, this.error = !1, this.helperText = "", this.errorMessage = "", this._open = !1;
|
|
649
652
|
}
|
|
650
653
|
static {
|
|
651
654
|
this.styles = [A];
|
|
652
655
|
}
|
|
653
656
|
_commit(e) {
|
|
654
|
-
this.value = e, this.dispatchEvent(new CustomEvent("change", {
|
|
657
|
+
this.value = e, this.dispatchEvent(new CustomEvent("flint-desktop-time-picker-change", {
|
|
655
658
|
detail: { value: e },
|
|
656
659
|
bubbles: !0,
|
|
657
660
|
composed: !0
|
|
@@ -661,8 +664,8 @@ var A = n`
|
|
|
661
664
|
return r`
|
|
662
665
|
<div class="popover-anchor">
|
|
663
666
|
<flint-time-field .value=${this.value} .label=${this.label} .ampm=${this.ampm} ?seconds=${this.seconds}
|
|
664
|
-
?disabled=${this.disabled} ?readonly=${this.readonly} ?error=${this.error} helper-text=${this.helperText}
|
|
665
|
-
@change=${(e) => this._commit(e.detail.value)}
|
|
667
|
+
?disabled=${this.disabled} ?readonly=${this.readonly} ?error=${this.error} helper-text=${this.helperText} error-message=${this.errorMessage}
|
|
668
|
+
@flint-time-field-change=${(e) => this._commit(e.detail.value)}
|
|
666
669
|
@focus=${() => {
|
|
667
670
|
!this.disabled && !this.readonly && (this._open = !0);
|
|
668
671
|
}}
|
|
@@ -670,7 +673,7 @@ var A = n`
|
|
|
670
673
|
<div class="click-away ${this._open ? "open" : ""}" @click=${() => this._open = !1}></div>
|
|
671
674
|
<div class="popover ${this._open ? "open" : ""}" role="dialog" aria-label="Time picker">
|
|
672
675
|
<flint-multi-section-digital-clock .value=${this.value || b(12, 0)} .ampm=${this.ampm} ?seconds=${this.seconds}
|
|
673
|
-
@change=${(e) => {
|
|
676
|
+
@flint-multi-section-digital-clock-change=${(e) => {
|
|
674
677
|
this.value = e.detail.value;
|
|
675
678
|
}}
|
|
676
679
|
></flint-multi-section-digital-clock>
|
|
@@ -695,10 +698,13 @@ e([c({ type: String })], j.prototype, "value", void 0), e([c({ type: String })],
|
|
|
695
698
|
})], j.prototype, "error", void 0), e([c({
|
|
696
699
|
type: String,
|
|
697
700
|
attribute: "helper-text"
|
|
698
|
-
})], j.prototype, "helperText", void 0), e([
|
|
701
|
+
})], j.prototype, "helperText", void 0), e([c({
|
|
702
|
+
type: String,
|
|
703
|
+
attribute: "error-message"
|
|
704
|
+
})], j.prototype, "errorMessage", void 0), e([l()], j.prototype, "_open", void 0), j = e([s("flint-desktop-time-picker")], j);
|
|
699
705
|
var M = class extends t {
|
|
700
706
|
constructor(...e) {
|
|
701
|
-
super(...e), this.value = "", this.label = "Time", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.error = !1, this.helperText = "", this._open = !1, this._pending = "", this._view = "hours";
|
|
707
|
+
super(...e), this.value = "", this.label = "Time", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.error = !1, this.helperText = "", this.errorMessage = "", this._open = !1, this._pending = "", this._view = "hours";
|
|
702
708
|
}
|
|
703
709
|
static {
|
|
704
710
|
this.styles = [A];
|
|
@@ -706,23 +712,23 @@ var M = class extends t {
|
|
|
706
712
|
render() {
|
|
707
713
|
return r`
|
|
708
714
|
<flint-time-field .value=${this.value} .label=${this.label} .ampm=${this.ampm} ?seconds=${this.seconds}
|
|
709
|
-
?disabled=${this.disabled} ?error=${this.error} helper-text=${this.helperText} readonly
|
|
715
|
+
?disabled=${this.disabled} ?error=${this.error} helper-text=${this.helperText} error-message=${this.errorMessage} readonly
|
|
710
716
|
@focus=${() => {
|
|
711
717
|
this.disabled || (this._pending = this.value, this._view = "hours", this._open = !0);
|
|
712
718
|
}}
|
|
713
|
-
@change=${(e) => {
|
|
714
|
-
this.value = e.detail.value, this.dispatchEvent(new CustomEvent("change", {
|
|
719
|
+
@flint-time-field-change=${(e) => {
|
|
720
|
+
this.value = e.detail.value, this.dispatchEvent(new CustomEvent("flint-mobile-time-picker-change", {
|
|
715
721
|
detail: e.detail,
|
|
716
722
|
bubbles: !0,
|
|
717
723
|
composed: !0
|
|
718
724
|
}));
|
|
719
725
|
}}
|
|
720
726
|
></flint-time-field>
|
|
721
|
-
<flint-dialog .open=${this._open} disable-backdrop-close @close=${() => this._open = !1} style="--flint-dialog-width:320px">
|
|
727
|
+
<flint-dialog .open=${this._open} disable-backdrop-close @flint-dialog-close=${() => this._open = !1} style="--flint-dialog-width:320px">
|
|
722
728
|
<flint-dialog-title>Select Time</flint-dialog-title>
|
|
723
729
|
<flint-dialog-content style="padding:12px;display:flex;justify-content:center;">
|
|
724
730
|
<flint-time-clock .value=${this._pending || this.value || b(12, 0)} .ampm=${this.ampm} ?seconds=${this.seconds} .view=${this._view}
|
|
725
|
-
@change=${(e) => {
|
|
731
|
+
@flint-time-clock-change=${(e) => {
|
|
726
732
|
this._pending = e.detail.value;
|
|
727
733
|
}}
|
|
728
734
|
@flint-time-clock-view-change=${(e) => {
|
|
@@ -736,7 +742,7 @@ var M = class extends t {
|
|
|
736
742
|
}}>Cancel</button>
|
|
737
743
|
<button class="btn btn-ok" @click=${() => {
|
|
738
744
|
let e = this._pending || this.value;
|
|
739
|
-
this.value = e, this.dispatchEvent(new CustomEvent("change", {
|
|
745
|
+
this.value = e, this.dispatchEvent(new CustomEvent("flint-mobile-time-picker-change", {
|
|
740
746
|
detail: { value: e },
|
|
741
747
|
bubbles: !0,
|
|
742
748
|
composed: !0
|
|
@@ -756,7 +762,10 @@ e([c({ type: String })], M.prototype, "value", void 0), e([c({ type: String })],
|
|
|
756
762
|
})], M.prototype, "error", void 0), e([c({
|
|
757
763
|
type: String,
|
|
758
764
|
attribute: "helper-text"
|
|
759
|
-
})], M.prototype, "helperText", void 0), e([
|
|
765
|
+
})], M.prototype, "helperText", void 0), e([c({
|
|
766
|
+
type: String,
|
|
767
|
+
attribute: "error-message"
|
|
768
|
+
})], M.prototype, "errorMessage", void 0), e([l()], M.prototype, "_open", void 0), e([l()], M.prototype, "_pending", void 0), e([l()], M.prototype, "_view", void 0), M = e([s("flint-mobile-time-picker")], M);
|
|
760
769
|
var N = class extends t {
|
|
761
770
|
constructor(...e) {
|
|
762
771
|
super(...e), this.value = "", this.ampm = !0, this.seconds = !1;
|
|
@@ -768,8 +777,8 @@ var N = class extends t {
|
|
|
768
777
|
return r`
|
|
769
778
|
<div class="surface">
|
|
770
779
|
<flint-multi-section-digital-clock .value=${this.value || b(12, 0)} .ampm=${this.ampm} ?seconds=${this.seconds}
|
|
771
|
-
@change=${(e) => {
|
|
772
|
-
this.value = e.detail.value, this.dispatchEvent(new CustomEvent("change", {
|
|
780
|
+
@flint-multi-section-digital-clock-change=${(e) => {
|
|
781
|
+
this.value = e.detail.value, this.dispatchEvent(new CustomEvent("flint-static-time-picker-change", {
|
|
773
782
|
detail: e.detail,
|
|
774
783
|
bubbles: !0,
|
|
775
784
|
composed: !0
|
|
@@ -783,7 +792,7 @@ var N = class extends t {
|
|
|
783
792
|
e([c({ type: String })], N.prototype, "value", void 0), e([c({ type: Boolean })], N.prototype, "ampm", void 0), e([c({ type: Boolean })], N.prototype, "seconds", void 0), N = e([s("flint-static-time-picker")], N);
|
|
784
793
|
var P = class extends t {
|
|
785
794
|
constructor(...e) {
|
|
786
|
-
super(...e), this.value = "", this.label = "Time", this.variant = "desktop", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.error = !1, this.helperText = "";
|
|
795
|
+
super(...e), this.value = "", this.label = "Time", this.variant = "desktop", this.ampm = !0, this.seconds = !1, this.disabled = !1, this.error = !1, this.helperText = "", this.errorMessage = "";
|
|
787
796
|
}
|
|
788
797
|
static {
|
|
789
798
|
this.styles = o(_);
|
|
@@ -792,7 +801,7 @@ var P = class extends t {
|
|
|
792
801
|
return this.variant === "auto" ? window.matchMedia("(pointer:coarse)").matches ? "mobile" : "desktop" : this.variant;
|
|
793
802
|
}
|
|
794
803
|
_onChange(e) {
|
|
795
|
-
this.value = e.detail.value, this.dispatchEvent(new CustomEvent("change", {
|
|
804
|
+
this.value = e.detail.value, this.dispatchEvent(new CustomEvent("flint-time-picker-change", {
|
|
796
805
|
detail: e.detail,
|
|
797
806
|
bubbles: !0,
|
|
798
807
|
composed: !0
|
|
@@ -800,7 +809,7 @@ var P = class extends t {
|
|
|
800
809
|
}
|
|
801
810
|
render() {
|
|
802
811
|
let e = this._v;
|
|
803
|
-
return e === "static" ? r`<flint-static-time-picker .value=${this.value} .ampm=${this.ampm} ?seconds=${this.seconds} @change=${this._onChange}></flint-static-time-picker>` : e === "mobile" ? r`<flint-mobile-time-picker .value=${this.value} .label=${this.label} .ampm=${this.ampm} ?seconds=${this.seconds} ?disabled=${this.disabled} ?error=${this.error} helper-text=${this.helperText} @change=${this._onChange}></flint-mobile-time-picker>` : r`<flint-desktop-time-picker .value=${this.value} .label=${this.label} .ampm=${this.ampm} ?seconds=${this.seconds} ?disabled=${this.disabled} ?error=${this.error} helper-text=${this.helperText} @change=${this._onChange}></flint-desktop-time-picker>`;
|
|
812
|
+
return e === "static" ? r`<flint-static-time-picker .value=${this.value} .ampm=${this.ampm} ?seconds=${this.seconds} @flint-static-time-picker-change=${this._onChange}></flint-static-time-picker>` : e === "mobile" ? r`<flint-mobile-time-picker .value=${this.value} .label=${this.label} .ampm=${this.ampm} ?seconds=${this.seconds} ?disabled=${this.disabled} ?error=${this.error} helper-text=${this.helperText} error-message=${this.errorMessage} @flint-mobile-time-picker-change=${this._onChange}></flint-mobile-time-picker>` : r`<flint-desktop-time-picker .value=${this.value} .label=${this.label} .ampm=${this.ampm} ?seconds=${this.seconds} ?disabled=${this.disabled} ?error=${this.error} helper-text=${this.helperText} error-message=${this.errorMessage} @flint-desktop-time-picker-change=${this._onChange}></flint-desktop-time-picker>`;
|
|
804
813
|
}
|
|
805
814
|
};
|
|
806
815
|
e([c({ type: String })], P.prototype, "value", void 0), e([c({ type: String })], P.prototype, "label", void 0), e([c({ type: String })], P.prototype, "variant", void 0), e([c({ type: Boolean })], P.prototype, "ampm", void 0), e([c({ type: Boolean })], P.prototype, "seconds", void 0), e([c({
|
|
@@ -812,6 +821,9 @@ e([c({ type: String })], P.prototype, "value", void 0), e([c({ type: String })],
|
|
|
812
821
|
})], P.prototype, "error", void 0), e([c({
|
|
813
822
|
type: String,
|
|
814
823
|
attribute: "helper-text"
|
|
815
|
-
})], P.prototype, "helperText", void 0),
|
|
824
|
+
})], P.prototype, "helperText", void 0), e([c({
|
|
825
|
+
type: String,
|
|
826
|
+
attribute: "error-message"
|
|
827
|
+
})], P.prototype, "errorMessage", void 0), P = e([s("flint-time-picker")], P);
|
|
816
828
|
//#endregion
|
|
817
829
|
export { N as a, P as c, O as i, D as n, k as o, M as r, E as s, j as t };
|
package/dist/_shared/{flint-toggle-button-group-Cp9x0wSj.js → flint-toggle-button-group-Bb9ysTf-.js}
RENAMED
|
@@ -4,11 +4,14 @@ import { customElement as i, property as a } from "lit/decorators.js";
|
|
|
4
4
|
//#region src/button/flint-toggle-button-group.css?inline
|
|
5
5
|
var o = ":host{vertical-align:middle;display:inline-flex}", s = class extends t {
|
|
6
6
|
constructor(...e) {
|
|
7
|
-
super(...e), this.value = "", this.exclusive = !0;
|
|
7
|
+
super(...e), this.value = "", this.defaultValue = "", this.exclusive = !0, this._firstUpdate = !0;
|
|
8
8
|
}
|
|
9
9
|
static {
|
|
10
10
|
this.styles = r(o);
|
|
11
11
|
}
|
|
12
|
+
willUpdate(e) {
|
|
13
|
+
this._firstUpdate && (this._firstUpdate = !1, this.defaultValue !== "" && (this.value = this.defaultValue));
|
|
14
|
+
}
|
|
12
15
|
connectedCallback() {
|
|
13
16
|
super.connectedCallback(), this.addEventListener("flint-toggle-button-change", this._handleToggleClick), this._updateChildren();
|
|
14
17
|
}
|
|
@@ -47,6 +50,6 @@ var o = ":host{vertical-align:middle;display:inline-flex}", s = class extends t
|
|
|
47
50
|
return n`<slot @slotchange=${this._updateChildren}></slot>`;
|
|
48
51
|
}
|
|
49
52
|
};
|
|
50
|
-
e([a({ type: String })], s.prototype, "value", void 0), e([a({ type: Boolean })], s.prototype, "exclusive", void 0), s = e([i("flint-toggle-button-group")], s);
|
|
53
|
+
e([a({ type: String })], s.prototype, "value", void 0), e([a({ attribute: "default-value" })], s.prototype, "defaultValue", void 0), e([a({ type: Boolean })], s.prototype, "exclusive", void 0), s = e([i("flint-toggle-button-group")], s);
|
|
51
54
|
//#endregion
|
|
52
55
|
export { s as t };
|
|
@@ -33,7 +33,7 @@ var l = ":host{--flint-transfer-list-height:300px;--flint-transfer-list-width:20
|
|
|
33
33
|
this.disabled || (this.value = [], this.leftChecked = [], this.rightChecked = [], this._dispatchChange());
|
|
34
34
|
}
|
|
35
35
|
_dispatchChange() {
|
|
36
|
-
this.dispatchEvent(new CustomEvent("change", {
|
|
36
|
+
this.dispatchEvent(new CustomEvent("flint-transfer-list-change", {
|
|
37
37
|
detail: { value: this.value },
|
|
38
38
|
bubbles: !0,
|
|
39
39
|
composed: !0
|
|
@@ -2,6 +2,8 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
2
2
|
/**
|
|
3
3
|
* Accordion: the wrapper for grouping related components.
|
|
4
4
|
*
|
|
5
|
+
* @slot - FlintAccordionSummary and FlintAccordionDetails.
|
|
6
|
+
*
|
|
5
7
|
* @fires flint-accordion-change - Fired when the accordion's expanded state changes.
|
|
6
8
|
*/
|
|
7
9
|
export declare class FlintAccordion extends LitElement {
|
|
@@ -10,12 +12,19 @@ export declare class FlintAccordion extends LitElement {
|
|
|
10
12
|
* If true, expands the accordion by default.
|
|
11
13
|
*/
|
|
12
14
|
expanded: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Initial expanded state for uncontrolled usage.
|
|
17
|
+
* Has no effect after the element has connected to the DOM.
|
|
18
|
+
*/
|
|
19
|
+
defaultExpanded: boolean;
|
|
13
20
|
/**
|
|
14
21
|
* If true, the accordion is disabled.
|
|
15
22
|
*/
|
|
16
23
|
disabled: boolean;
|
|
17
24
|
/** Unique ID used to link the region to its summary heading. */
|
|
18
25
|
private readonly _uid;
|
|
26
|
+
private _firstUpdate;
|
|
27
|
+
willUpdate(changed: PropertyValues): void;
|
|
19
28
|
updated(changed: PropertyValues): void;
|
|
20
29
|
private _handleToggle;
|
|
21
30
|
constructor();
|
|
@@ -25,6 +34,9 @@ export declare class FlintAccordion extends LitElement {
|
|
|
25
34
|
/**
|
|
26
35
|
* Accordion Summary: the wrapper for the Accordion header.
|
|
27
36
|
*
|
|
37
|
+
* @slot expandIcon - Custom expand/collapse icon.
|
|
38
|
+
* @slot - Summary content.
|
|
39
|
+
*
|
|
28
40
|
* @fires flint-accordion-toggle - Fired when the summary is clicked or activated via keyboard.
|
|
29
41
|
*/
|
|
30
42
|
export declare class FlintAccordionSummary extends LitElement {
|
|
@@ -38,6 +50,8 @@ export declare class FlintAccordionSummary extends LitElement {
|
|
|
38
50
|
}
|
|
39
51
|
/**
|
|
40
52
|
* Accordion Details: the wrapper for the Accordion content.
|
|
53
|
+
*
|
|
54
|
+
* @slot - Detail content.
|
|
41
55
|
*/
|
|
42
56
|
export declare class FlintAccordionDetails extends LitElement {
|
|
43
57
|
static styles: import("lit").CSSResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flint-accordion.d.ts","sourceRoot":"","sources":["../../src/accordion/flint-accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AASlE
|
|
1
|
+
{"version":3,"file":"flint-accordion.d.ts","sourceRoot":"","sources":["../../src/accordion/flint-accordion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AASlE;;;;;;GAMG;AACH,qBACa,cAAe,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAAgC;IAE7C;;OAEG;IACyC,QAAQ,UAAS;IAE7D;;;OAGG;IACyD,eAAe,UAAS;IAEpF;;OAEG;IACyC,QAAQ,UAAS;IAE7D,gEAAgE;IAChE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA4C;IAEjE,OAAO,CAAC,YAAY,CAAQ;IAEnB,UAAU,CAAC,OAAO,EAAE,cAAc;IAalC,OAAO,CAAC,OAAO,EAAE,cAAc;IAYxC,OAAO,CAAC,aAAa,CAQnB;;IAOO,oBAAoB;IAK7B,MAAM;CAOT;AAED;;;;;;;GAOG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAAuC;IAEpD,OAAO,CAAC,eAAe,CAKrB;IAEF,OAAO,CAAC,cAAc,CAKpB;;IAQO,oBAAoB;IAMpB,iBAAiB;IAW1B,MAAM;CAcT;AAED;;;;GAIG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAAuC;IAEpD,MAAM;CAST;AAED;;GAEG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAAuC;IAEpD,MAAM;CAGT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,iBAAiB,EAAE,cAAc,CAAC;QAClC,yBAAyB,EAAE,qBAAqB,CAAC;QACjD,yBAAyB,EAAE,qBAAqB,CAAC;QACjD,yBAAyB,EAAE,qBAAqB,CAAC;KACpD;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../_shared/flint-accordion-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../_shared/flint-accordion-C1ZeUTPt.js";
|
|
2
2
|
export { r as FlintAccordion, t as FlintAccordionActions, n as FlintAccordionDetails, e as FlintAccordionSummary };
|
|
@@ -5,7 +5,7 @@ import { LitElement } from 'lit';
|
|
|
5
5
|
* @slot - The message content of the alert.
|
|
6
6
|
* @slot icon - Optional icon to display instead of the default severity icon.
|
|
7
7
|
*
|
|
8
|
-
* @fires flint-alert-close - Fired when the alert's close button is clicked.
|
|
8
|
+
* @fires flint-alert-close - Fired when the alert's close button is clicked. detail: `{ open: false, severity: string }`
|
|
9
9
|
*/
|
|
10
10
|
export declare class FlintAlert extends LitElement {
|
|
11
11
|
static styles: import("lit").CSSResult;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../_shared/flint-alert-
|
|
1
|
+
import { t as e } from "../_shared/flint-alert-XVhCfLTJ.js";
|
|
2
2
|
export { e as FlintAlert };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* flint-app-bar: The top App bar provides content and actions related to the current screen.
|
|
4
|
+
*
|
|
5
|
+
* @slot navigation - Left section, e.g. menu button.
|
|
6
|
+
* @slot title - Center section next to the title prop.
|
|
7
|
+
* @slot actions - Right section, e.g. action buttons.
|
|
4
8
|
*/
|
|
5
9
|
export declare class FlintAppBar extends LitElement {
|
|
6
10
|
static styles: import("lit").CSSResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flint-app-bar.d.ts","sourceRoot":"","sources":["../../src/app-bar/flint-app-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAKlD
|
|
1
|
+
{"version":3,"file":"flint-app-bar.d.ts","sourceRoot":"","sources":["../../src/app-bar/flint-app-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAKlD;;;;;;GAMG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAA6B;IAE1C,yDAAyD;IAC7B,KAAK,SAAM;IACvC,+CAA+C;IACJ,QAAQ,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAY;IAC3G,2CAA2C;IACA,OAAO,EAAE,SAAS,GAAG,UAAU,CAAa;IAEvF,MAAM;CAmBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,WAAW,CAAC;KAC9B;CACF"}
|
|
@@ -2,7 +2,7 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
/**
|
|
3
3
|
* A backdrop component that narrows the user's focus to a particular element.
|
|
4
4
|
*
|
|
5
|
-
* @fires flint-backdrop-close - Dispatched when the backdrop is clicked or Escape is pressed.
|
|
5
|
+
* @fires flint-backdrop-close - Dispatched when the backdrop is clicked or Escape is pressed. detail: `{ open: false }`
|
|
6
6
|
* @slot - Content to display in the foreground.
|
|
7
7
|
*/
|
|
8
8
|
export declare class FlintBackdrop extends LitElement {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../_shared/flint-backdrop-
|
|
1
|
+
import { t as e } from "../_shared/flint-backdrop-B28XJbZN.js";
|
|
2
2
|
export { e as FlintBackdrop };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Bottom Navigation Action: Individual navigation item.
|
|
4
|
+
*
|
|
5
|
+
* @slot icon - Icon element.
|
|
6
|
+
* @slot - Label text.
|
|
4
7
|
*/
|
|
5
8
|
export declare class FlintBottomNavigationAction extends LitElement {
|
|
6
9
|
static styles: import("lit").CSSResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flint-bottom-navigation-action.d.ts","sourceRoot":"","sources":["../../src/bottom-navigation/flint-bottom-navigation-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AAKlE
|
|
1
|
+
{"version":3,"file":"flint-bottom-navigation-action.d.ts","sourceRoot":"","sources":["../../src/bottom-navigation/flint-bottom-navigation-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AAKlE;;;;;GAKG;AACH,qBACa,2BAA4B,SAAQ,UAAU;IACvD,MAAM,CAAC,MAAM,0BAA6C;IAE1D;;OAEG;IACyB,KAAK,SAAM;IAEvC;;OAEG;IACS,KAAK,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACyC,MAAM,UAAS;IAE3D;;OAEG;IAC0B,SAAS,UAAQ;IAE9C,iBAAiB;IAWjB,oBAAoB;IAKpB,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAMnD,OAAO,CAAC,cAAc,CAKpB;IAEF,MAAM;CAWT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,gCAAgC,EAAE,2BAA2B,CAAC;KACjE;CACJ"}
|
|
@@ -3,7 +3,7 @@ import { LitElement, PropertyValues } from 'lit';
|
|
|
3
3
|
* Bottom Navigation bars allow movement between primary destinations in an app.
|
|
4
4
|
*
|
|
5
5
|
* @slot - destinations (flint-bottom-navigation-action).
|
|
6
|
-
* @fires flint-bottom-navigation-change - Dispatched when the selected value changes.
|
|
6
|
+
* @fires flint-bottom-navigation-change - Dispatched when the selected value changes. detail: `{ value: number | string }`
|
|
7
7
|
*/
|
|
8
8
|
export declare class FlintBottomNavigation extends LitElement {
|
|
9
9
|
static styles: import("lit").CSSResult;
|
|
@@ -11,10 +11,17 @@ export declare class FlintBottomNavigation extends LitElement {
|
|
|
11
11
|
* The value of the currently selected action.
|
|
12
12
|
*/
|
|
13
13
|
value: unknown;
|
|
14
|
+
/**
|
|
15
|
+
* Initial selected value for uncontrolled usage.
|
|
16
|
+
* Has no effect after the element has connected to the DOM.
|
|
17
|
+
*/
|
|
18
|
+
defaultValue?: unknown;
|
|
14
19
|
/**
|
|
15
20
|
* If true, all labels are shown at all times.
|
|
16
21
|
*/
|
|
17
22
|
showLabels: boolean;
|
|
23
|
+
private _firstUpdate;
|
|
24
|
+
protected willUpdate(changed: PropertyValues): void;
|
|
18
25
|
private _actions;
|
|
19
26
|
protected updated(changedProperties: PropertyValues): void;
|
|
20
27
|
private _handleSlotChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flint-bottom-navigation.d.ts","sourceRoot":"","sources":["../../src/bottom-navigation/flint-bottom-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AAKlE;;;;;GAKG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAAuC;IAEpD;;OAEG;IACS,KAAK,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACoD,UAAU,UAAS;
|
|
1
|
+
{"version":3,"file":"flint-bottom-navigation.d.ts","sourceRoot":"","sources":["../../src/bottom-navigation/flint-bottom-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,cAAc,EAAE,MAAM,KAAK,CAAC;AAKlE;;;;;GAKG;AACH,qBACa,qBAAsB,SAAQ,UAAU;IACjD,MAAM,CAAC,MAAM,0BAAuC;IAEpD;;OAEG;IACS,KAAK,EAAE,OAAO,CAAC;IAE3B;;;OAGG;IACuC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEjE;;OAEG;IACoD,UAAU,UAAS;IAE1E,OAAO,CAAC,YAAY,CAAQ;cAET,UAAU,CAAC,OAAO,EAAE,cAAc;IAWrD,OAAO,CAAC,QAAQ,CAAsC;IAEtD,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAMnD,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,mBAAmB;IAc3B,MAAM;CAOT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,yBAAyB,EAAE,qBAAqB,CAAC;KACpD;CACJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../_shared/flint-bottom-navigation-
|
|
1
|
+
import { t as e } from "../_shared/flint-bottom-navigation-_0CMIMiw.js";
|
|
2
2
|
export { e as FlintBottomNavigation };
|
|
@@ -8,8 +8,15 @@ export declare class FlintToggleButtonGroup extends LitElement {
|
|
|
8
8
|
static styles: import("lit").CSSResult;
|
|
9
9
|
/** Currently selected value(s). A string when exclusive, an array otherwise. */
|
|
10
10
|
value: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* Initial selected value(s) for uncontrolled usage.
|
|
13
|
+
* Has no effect after the element has connected to the DOM.
|
|
14
|
+
*/
|
|
15
|
+
defaultValue: string | string[];
|
|
11
16
|
/** Whether only one button can be selected at a time. */
|
|
12
17
|
exclusive: boolean;
|
|
18
|
+
private _firstUpdate;
|
|
19
|
+
willUpdate(changed: PropertyValues): void;
|
|
13
20
|
connectedCallback(): void;
|
|
14
21
|
disconnectedCallback(): void;
|
|
15
22
|
private _handleToggleClick;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flint-toggle-button-group.d.ts","sourceRoot":"","sources":["../../src/button/flint-toggle-button-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKvE;;;;GAIG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAAwC;IAErD,gFAAgF;IACpD,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAM;IAC1D,yDAAyD;IAC5B,SAAS,UAAQ;IAE9C,iBAAiB;IAMjB,oBAAoB;IAKpB,OAAO,CAAC,kBAAkB;IAyB1B,OAAO,CAAC,eAAe;IAyBvB,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAMzC,MAAM;CAGT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,2BAA2B,EAAE,sBAAsB,CAAC;KACvD;CACJ"}
|
|
1
|
+
{"version":3,"file":"flint-toggle-button-group.d.ts","sourceRoot":"","sources":["../../src/button/flint-toggle-button-group.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAKvE;;;;GAIG;AACH,qBACa,sBAAuB,SAAQ,UAAU;IAClD,MAAM,CAAC,MAAM,0BAAwC;IAErD,gFAAgF;IACpD,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAM;IAC1D;;;OAGG;IACuC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,CAAM;IAC/E,yDAAyD;IAC5B,SAAS,UAAQ;IAE9C,OAAO,CAAC,YAAY,CAAQ;IAEnB,UAAU,CAAC,OAAO,EAAE,cAAc;IAU3C,iBAAiB;IAMjB,oBAAoB;IAKpB,OAAO,CAAC,kBAAkB;IAyB1B,OAAO,CAAC,eAAe;IAyBvB,OAAO,CAAC,iBAAiB,EAAE,cAAc;IAMzC,MAAM;CAGT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,2BAA2B,EAAE,sBAAsB,CAAC;KACvD;CACJ"}
|