smoothly 0.1.70 → 0.1.71
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/{index-896ac706.js → index-7c9d0102.js} +806 -638
- package/dist/cjs/smoothly-accordion_43.cjs.entry.js +799 -642
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +1 -3
- package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-input.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-select.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
- package/dist/collection/components/display-amount/index.js +1 -3
- package/dist/collection/components/select/index.js +1 -1
- package/dist/collection/components/table/header/index.js +1 -1
- package/dist/custom-elements/index.js +810 -644
- package/dist/esm/{index-a7e44b28.js → index-01fedb5b.js} +806 -638
- package/dist/esm/smoothly-accordion_43.entry.js +799 -642
- package/dist/esm/smoothly-display-amount.entry.js +1 -3
- package/dist/esm/smoothly-display.entry.js +1 -1
- package/dist/esm/smoothly-input.entry.js +1 -1
- package/dist/esm/smoothly-select.entry.js +1 -1
- package/dist/esm/smoothly-table-header.entry.js +1 -1
- package/dist/smoothly/{index-a7e44b28.js → index-01fedb5b.js} +806 -638
- package/dist/smoothly/{p-2e35abfc.entry.js → p-c107b623.entry.js} +1 -1
- package/dist/smoothly/smoothly-display-amount.entry.js +1 -3
- package/dist/smoothly/smoothly-display.entry.js +1 -1
- package/dist/smoothly/smoothly-input.entry.js +1 -1
- package/dist/smoothly/smoothly-select.entry.js +1 -1
- package/dist/smoothly/smoothly-table-header.entry.js +1 -1
- package/package.json +4 -4
|
@@ -15,9 +15,7 @@ const SmoothlyDisplayAmount = class {
|
|
|
15
15
|
format(amount) {
|
|
16
16
|
const digitsPerGroup = 3;
|
|
17
17
|
const defaultDecimals = 2;
|
|
18
|
-
const maxDecimals = (index$1.dist.Currency.decimalDigits(this.currency)
|
|
19
|
-
? index$1.dist.Currency.decimalDigits(this.currency)
|
|
20
|
-
: defaultDecimals);
|
|
18
|
+
const maxDecimals = (index$1.dist.Currency.decimalDigits(this.currency) ? index$1.dist.Currency.decimalDigits(this.currency) : defaultDecimals);
|
|
21
19
|
let beforeSeparator = amount.length;
|
|
22
20
|
let separator;
|
|
23
21
|
let result = amount;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-7c9d0102.js');
|
|
7
7
|
require('./_commonjsHelpers-10109b76.js');
|
|
8
8
|
|
|
9
9
|
const styleCss = ".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b7e6a72c.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-7c9d0102.js');
|
|
7
7
|
require('./_commonjsHelpers-10109b76.js');
|
|
8
8
|
|
|
9
9
|
const styleCss = ".sc-smoothly-input-h{display:block;position:relative}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-text-tint));opacity:0.8;user-select:none;cursor:inherit;transition:font-size 0.1s;transition-timing-function:ease}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;width:calc(100% - 0.4em);background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+smoothly-icon.sc-smoothly-input{display:block}.has-value.sc-smoothly-input-h>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}.sc-smoothly-input-h:focus-within>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 30px unset inset !important;-webkit-box-shadow:0 0 0 30px unset inset !important}input.sc-smoothly-input:-webkit-autofill{-webkit-text-fill-color:unset !important}input.sc-smoothly-input:-internal-autofill-previewed,input.sc-smoothly-input:-internal-autofill-selected,textarea.sc-smoothly-input:-internal-autofill-previewed,textarea.sc-smoothly-input:-internal-autofill-selected,select.sc-smoothly-input:-internal-autofill-previewed,select.sc-smoothly-input:-internal-autofill-selected{background-color:none !important;background-image:none !important;color:unset !important}";
|
|
@@ -13,7 +13,7 @@ const SmoothlySelect = class {
|
|
|
13
13
|
}
|
|
14
14
|
optionSelected() {
|
|
15
15
|
if (this.selectElement)
|
|
16
|
-
this.selectionChanged.emit({ identifier: this.identifier, value: this.value = this.selectElement.value });
|
|
16
|
+
this.selectionChanged.emit({ identifier: this.identifier, value: (this.value = this.selectElement.value) });
|
|
17
17
|
}
|
|
18
18
|
componentDidLoad() {
|
|
19
19
|
var _a;
|
|
@@ -14,7 +14,7 @@ const TableHeader = class {
|
|
|
14
14
|
onClick(event) {
|
|
15
15
|
this.sort.emit({
|
|
16
16
|
property: this.name,
|
|
17
|
-
direction: this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending",
|
|
17
|
+
direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
|
|
18
18
|
});
|
|
19
19
|
console.log("sort", this.name, this.sortDirection);
|
|
20
20
|
event.preventDefault();
|
|
@@ -4,9 +4,7 @@ export class SmoothlyDisplayAmount {
|
|
|
4
4
|
format(amount) {
|
|
5
5
|
const digitsPerGroup = 3;
|
|
6
6
|
const defaultDecimals = 2;
|
|
7
|
-
const maxDecimals = (Currency.decimalDigits(this.currency)
|
|
8
|
-
? Currency.decimalDigits(this.currency)
|
|
9
|
-
: defaultDecimals);
|
|
7
|
+
const maxDecimals = (Currency.decimalDigits(this.currency) ? Currency.decimalDigits(this.currency) : defaultDecimals);
|
|
10
8
|
let beforeSeparator = amount.length;
|
|
11
9
|
let separator;
|
|
12
10
|
let result = amount;
|
|
@@ -2,7 +2,7 @@ import { Component, Event, h, Prop } from "@stencil/core";
|
|
|
2
2
|
export class SmoothlySelect {
|
|
3
3
|
optionSelected() {
|
|
4
4
|
if (this.selectElement)
|
|
5
|
-
this.selectionChanged.emit({ identifier: this.identifier, value: this.value = this.selectElement.value });
|
|
5
|
+
this.selectionChanged.emit({ identifier: this.identifier, value: (this.value = this.selectElement.value) });
|
|
6
6
|
}
|
|
7
7
|
componentDidLoad() {
|
|
8
8
|
var _a;
|
|
@@ -3,7 +3,7 @@ export class TableHeader {
|
|
|
3
3
|
onClick(event) {
|
|
4
4
|
this.sort.emit({
|
|
5
5
|
property: this.name,
|
|
6
|
-
direction: this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending",
|
|
6
|
+
direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
|
|
7
7
|
});
|
|
8
8
|
console.log("sort", this.name, this.sortDirection);
|
|
9
9
|
event.preventDefault();
|