@kumori/aurora-wui-components 0.0.181 → 0.0.182
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
2
|
import { CarouselItem } from './axebow-carousel-input.js';
|
|
3
3
|
import { AddDialogLabels } from './axebow-select-input.js';
|
|
4
|
-
export type ControlType = 'input' | 'select' | 'carousel' | 'numeric' | 'integer' | 'checkbox' | 'providers'
|
|
4
|
+
export type ControlType = 'input' | 'select' | 'carousel' | 'numeric' | 'integer' | 'checkbox' | 'providers';
|
|
5
5
|
export interface Option {
|
|
6
6
|
value: string;
|
|
7
7
|
label: string | TemplateResult;
|
|
@@ -43,7 +43,6 @@ export declare class AxebowInput extends LitElement {
|
|
|
43
43
|
}) => void;
|
|
44
44
|
addDialogLabels: AddDialogLabels;
|
|
45
45
|
compact: boolean;
|
|
46
|
-
integerOnly: boolean;
|
|
47
46
|
fixedWidth?: string;
|
|
48
47
|
fixedHeight?: string;
|
|
49
48
|
showStepper: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAEvE,OAAO,yDAAyD,CAAC;AAGjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAA6B,MAAM,0BAA0B,CAAC;AACtF,OAAO,wBAAwB,CAAC;AAChC,OAAO,2BAA2B,CAAC;AACnC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,4BAA4B,CAAC;AACpC,OAAO,6BAA6B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,SAA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AC9B,GAAG,SAAK;IACR,SAAS,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,UAAS;IACrB,WAAW,SAAkB;IAC7B,gBAAgB,SAAmB;IAClC,mBAAmB,UAAQ;IAC3B,SAAS,UAAQ;IACd,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACrF,eAAe,EAAE,eAAe,CAA6B;IAChE,OAAO,UAAS;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,UAAQ;IACpB,UAAU,SAAK;IAE3C,MAAM;CAiJP"}
|
package/dist/index.js
CHANGED
|
@@ -2060,7 +2060,6 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2060
2060
|
this.clearable = true;
|
|
2061
2061
|
this.addDialogLabels = DEFAULT_ADD_DIALOG_LABELS;
|
|
2062
2062
|
this.compact = false;
|
|
2063
|
-
this.integerOnly = false;
|
|
2064
2063
|
this.showStepper = true;
|
|
2065
2064
|
this.stepAmount = 1;
|
|
2066
2065
|
}
|
|
@@ -2069,10 +2068,6 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2069
2068
|
unsafeCSS(tailwind_default),
|
|
2070
2069
|
axebowTheme,
|
|
2071
2070
|
css`
|
|
2072
|
-
sl-input,
|
|
2073
|
-
sl-select {
|
|
2074
|
-
width: 100%;
|
|
2075
|
-
}
|
|
2076
2071
|
axebow-numeric-input {
|
|
2077
2072
|
display: block;
|
|
2078
2073
|
width: 100%;
|
|
@@ -2185,31 +2180,6 @@ var AxebowInput = class AxebowInput extends LitElement {
|
|
|
2185
2180
|
.carouselItems=${this.carouselItems}
|
|
2186
2181
|
.carouselItemRenderer=${this.carouselItemRenderer}
|
|
2187
2182
|
></axebow-carousel-input>
|
|
2188
|
-
`;
|
|
2189
|
-
case "small-input": return html`
|
|
2190
|
-
<sl-input
|
|
2191
|
-
type="number"
|
|
2192
|
-
size="small"
|
|
2193
|
-
min=${this.min}
|
|
2194
|
-
max=${this.max}
|
|
2195
|
-
step=${this.integerOnly ? "1" : "any"}
|
|
2196
|
-
.value=${this.value}
|
|
2197
|
-
?disabled=${this.disabled}
|
|
2198
|
-
style="${this.hasError ? "--sl-input-border-color: var(--axebow-error, #e53e3e); --sl-input-border-color-focus: var(--axebow-error, #e53e3e); --sl-input-border-color-hover: var(--axebow-error, #e53e3e);" : ""}"
|
|
2199
|
-
@sl-input=${(e) => {
|
|
2200
|
-
if (this.disabled) return;
|
|
2201
|
-
if (this.integerOnly) {
|
|
2202
|
-
const target = e.target;
|
|
2203
|
-
let truncated = Math.trunc(Number(target.value));
|
|
2204
|
-
if (truncated > this.max) truncated = this.max;
|
|
2205
|
-
target.value = truncated.toString();
|
|
2206
|
-
}
|
|
2207
|
-
if (this.callback) this.callback(e);
|
|
2208
|
-
}}
|
|
2209
|
-
@keydown=${(e) => {
|
|
2210
|
-
if (this.integerOnly && (e.key === "." || e.key === "," || e.key === "e" || e.key === "E")) e.preventDefault();
|
|
2211
|
-
}}
|
|
2212
|
-
></sl-input>
|
|
2213
2183
|
`;
|
|
2214
2184
|
case "providers": return html`
|
|
2215
2185
|
<axebow-providers-input
|
|
@@ -2270,7 +2240,6 @@ __decorate([property({ type: Boolean })], AxebowInput.prototype, "clearable", vo
|
|
|
2270
2240
|
__decorate([property({ attribute: false })], AxebowInput.prototype, "onAddNew", void 0);
|
|
2271
2241
|
__decorate([property({ attribute: false })], AxebowInput.prototype, "addDialogLabels", void 0);
|
|
2272
2242
|
__decorate([property({ type: Boolean })], AxebowInput.prototype, "compact", void 0);
|
|
2273
|
-
__decorate([property({ type: Boolean })], AxebowInput.prototype, "integerOnly", void 0);
|
|
2274
2243
|
__decorate([property({ type: String })], AxebowInput.prototype, "fixedWidth", void 0);
|
|
2275
2244
|
__decorate([property({ type: String })], AxebowInput.prototype, "fixedHeight", void 0);
|
|
2276
2245
|
__decorate([property({ type: Boolean })], AxebowInput.prototype, "showStepper", void 0);
|