smoothly 0.3.31 → 0.3.32
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/{getLanguage-aa9af88b.js → getLanguage-430ecf04.js} +7 -0
- package/dist/cjs/{index-7b75b331.js → index-879bbabb.js} +19 -19
- package/dist/cjs/{index-3fb97927.js → index-de46f836.js} +7 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/smoothly-accordion_53.cjs.entry.js +129 -6
- package/dist/cjs/smoothly-country.cjs.entry.js +4 -2
- package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-reorder.cjs.entry.js +1 -1
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +4 -1
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +2 -1
- package/dist/cjs/smoothly.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/index.js +1 -0
- package/dist/collection/components/accordion-item/index.js +5 -0
- package/dist/collection/components/app/index.js +3 -0
- package/dist/collection/components/app-demo/index.js +3 -0
- package/dist/collection/components/backtotop/index.js +1 -0
- package/dist/collection/components/button/index.js +5 -0
- package/dist/collection/components/calendar/index.js +8 -1
- package/dist/collection/components/checkbox/index.js +4 -0
- package/dist/collection/components/country/index.js +2 -0
- package/dist/collection/components/dialog/index.js +2 -0
- package/dist/collection/components/display/index.js +7 -0
- package/dist/collection/components/display-amount/index.js +2 -0
- package/dist/collection/components/display-date-time/index.js +3 -0
- package/dist/collection/components/frame/index.js +5 -0
- package/dist/collection/components/google-font/index.js +3 -0
- package/dist/collection/components/icon/index.js +4 -0
- package/dist/collection/components/input/index.js +6 -0
- package/dist/collection/components/input-date/index.js +8 -0
- package/dist/collection/components/input-date-range/index.js +6 -0
- package/dist/collection/components/input-month/index.js +3 -0
- package/dist/collection/components/item/index.js +5 -0
- package/dist/collection/components/menu-options/index.js +3 -0
- package/dist/collection/components/notification/index.js +2 -1
- package/dist/collection/components/option/index.js +5 -0
- package/dist/collection/components/picker/index.js +6 -0
- package/dist/collection/components/quiet/index.js +3 -0
- package/dist/collection/components/radio/index.js +6 -0
- package/dist/collection/components/radio-button/index.js +3 -0
- package/dist/collection/components/radio-button/item/index.js +5 -0
- package/dist/collection/components/room/index.js +6 -0
- package/dist/collection/components/select/index.js +5 -0
- package/dist/collection/components/selector/index.js +3 -1
- package/dist/collection/components/skeleton/index.js +4 -0
- package/dist/collection/components/spinner/index.js +1 -0
- package/dist/collection/components/submit/index.js +5 -0
- package/dist/collection/components/svg/index.js +3 -0
- package/dist/collection/components/tab/index.js +4 -0
- package/dist/collection/components/tab-switch/index.js +3 -0
- package/dist/collection/components/table/expandable/cell/index.js +1 -0
- package/dist/collection/components/table/expandable/row/index.js +1 -0
- package/dist/collection/components/table/header/index.js +3 -0
- package/dist/collection/components/trigger/index.js +5 -0
- package/dist/collection/components/trigger-sink/index.js +5 -0
- package/dist/collection/components/trigger-source/index.js +3 -0
- package/dist/collection/components/tuple/index.js +3 -0
- package/dist/collection/components/urlencoded/index.js +3 -0
- package/dist/collection/model/Listenable.js +29 -16
- package/dist/collection/model/Notice.js +18 -18
- package/dist/collection/model/index.js +1 -0
- package/dist/custom-elements/index.js +158 -21
- package/dist/esm/{getLanguage-3dbe8ccd.js → getLanguage-cccb8418.js} +7 -0
- package/dist/esm/{index-fcf8bdd3.js → index-d3421c35.js} +7 -1
- package/dist/esm/{index-3b463176.js → index-d7a4e405.js} +19 -19
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/smoothly-accordion_53.entry.js +129 -6
- package/dist/esm/smoothly-country.entry.js +4 -2
- package/dist/esm/smoothly-google-font.entry.js +2 -1
- package/dist/esm/smoothly-radio-group.entry.js +1 -1
- package/dist/esm/smoothly-reorder.entry.js +1 -1
- package/dist/esm/smoothly-trigger-sink.entry.js +4 -1
- package/dist/esm/smoothly-trigger-source.entry.js +2 -1
- package/dist/esm/smoothly.js +2 -2
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/{p-af90d05a.js → p-4a0b35b7.js} +0 -0
- package/dist/smoothly/p-5b6351f6.js +1 -0
- package/dist/smoothly/{p-f67259c5.entry.js → p-5d41e3ca.entry.js} +1 -1
- package/dist/smoothly/{p-6acd7162.entry.js → p-6630d923.entry.js} +1 -1
- package/dist/smoothly/{p-a1c137fc.entry.js → p-7db49a38.entry.js} +1 -1
- package/dist/smoothly/{p-e5191036.js → p-94e08cee.js} +1 -1
- package/dist/smoothly/p-c9bb4a18.entry.js +1 -0
- package/dist/smoothly/p-e0f4957d.entry.js +1 -0
- package/dist/smoothly/p-eb4e2500.entry.js +1 -0
- package/dist/smoothly/p-f97fcb32.entry.js +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/submit/Data.d.ts +1 -1
- package/dist/types/components.d.ts +12 -0
- package/dist/types/model/Autocomplete.d.ts +1 -1
- package/dist/types/model/Color.d.ts +1 -1
- package/dist/types/model/Expand.d.ts +1 -1
- package/dist/types/model/Fill.d.ts +1 -1
- package/dist/types/model/GoogleFont.d.ts +1 -1
- package/dist/types/model/Listenable.d.ts +9 -5
- package/dist/types/model/Option.d.ts +1 -1
- package/dist/types/model/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +44 -3
- package/dist/types/utilities/Cosmetic/Color/CommaRgb.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Hex.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Hsl.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Name.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/Rgb.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/Color/index.d.ts +1 -1
- package/dist/types/utilities/Cosmetic/index.d.ts +1 -1
- package/package.json +28 -1
- package/dist/smoothly/p-0833f25c.entry.js +0 -1
- package/dist/smoothly/p-2bf8c660.entry.js +0 -1
- package/dist/smoothly/p-3bd18eea.entry.js +0 -1
- package/dist/smoothly/p-41e29ef7.js +0 -1
- package/dist/smoothly/p-9fd866e2.entry.js +0 -1
package/dist/cjs/smoothly.cjs.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-de46f836.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.21.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('smoothly.cjs.js', document.baseURI).href));
|
|
@@ -2,6 +2,9 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { redirect } from "../../index";
|
|
3
3
|
import { App } from "../App";
|
|
4
4
|
export class SmoothlyAppDemo {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.baseUrl = undefined;
|
|
7
|
+
}
|
|
5
8
|
render() {
|
|
6
9
|
return (h(App, { label: "Smoothly Demo" }, h("a", { slot: "nav-start", href: "display" }, "Display"), h("a", { slot: "nav-start", href: "https://google.com" }, "External"), h("smoothly-room", { path: "" }, h("smoothly-input", { type: "text" }, "Default"), h("div", { style: { padding: "1em", maxWidth: "12em" } }, h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"), h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", download: true }, "download"), h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { disabled: true, fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"), h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))), h("smoothly-room", { path: "input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-room", { path: "dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-room", { path: "table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-room", { path: "select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-room", { path: "icon", label: "Icon" }, h("smoothly-icon-demo", null)), h("smoothly-room", { path: "/redirect", label: "Redirect" }, h("smoothly-button", { style: { "max-width": "300px" }, onClick: () => {
|
|
7
10
|
redirect("/routing/pathParameter1");
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyButton {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.color = undefined;
|
|
5
|
+
this.expand = undefined;
|
|
6
|
+
this.fill = undefined;
|
|
4
7
|
this.disabled = false;
|
|
5
8
|
this.type = "button";
|
|
9
|
+
this.link = undefined;
|
|
10
|
+
this.download = undefined;
|
|
6
11
|
}
|
|
7
12
|
render() {
|
|
8
13
|
let result;
|
|
@@ -3,8 +3,15 @@ import { Date } from "isoly";
|
|
|
3
3
|
import * as generate from "./generate";
|
|
4
4
|
export class Calendar {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.value = Date.now();
|
|
7
6
|
this.clickCounter = 0;
|
|
7
|
+
this.month = undefined;
|
|
8
|
+
this.value = Date.now();
|
|
9
|
+
this.start = undefined;
|
|
10
|
+
this.end = undefined;
|
|
11
|
+
this.max = undefined;
|
|
12
|
+
this.min = undefined;
|
|
13
|
+
this.doubleInput = undefined;
|
|
14
|
+
this.firstSelected = undefined;
|
|
8
15
|
}
|
|
9
16
|
onStart(next) {
|
|
10
17
|
this.startChanged.emit(next);
|
|
@@ -4,6 +4,10 @@ export class SmoothlyCheckbox {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.selectAll = false;
|
|
6
6
|
this.size = "small";
|
|
7
|
+
this.intermediate = undefined;
|
|
8
|
+
this.selected = undefined;
|
|
9
|
+
this.disabled = undefined;
|
|
10
|
+
this.t = undefined;
|
|
7
11
|
}
|
|
8
12
|
componentWillLoad() {
|
|
9
13
|
this.t = translation.create(this.element);
|
|
@@ -3,7 +3,9 @@ import { CountryCode } from "isoly";
|
|
|
3
3
|
import { getLanguage } from "langly";
|
|
4
4
|
export class SmoothlyCountry {
|
|
5
5
|
constructor() {
|
|
6
|
+
this.value = undefined;
|
|
6
7
|
this.text = "alpha2";
|
|
8
|
+
this.language = undefined;
|
|
7
9
|
}
|
|
8
10
|
componentWillLoad() {
|
|
9
11
|
this.language = getLanguage(this.element);
|
|
@@ -2,8 +2,10 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { Trigger } from "../../model";
|
|
3
3
|
export class SmoothlyDialog {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.color = undefined;
|
|
5
6
|
this.open = true;
|
|
6
7
|
this.closable = false;
|
|
8
|
+
this.header = undefined;
|
|
7
9
|
}
|
|
8
10
|
TriggerListener(event) {
|
|
9
11
|
if (Trigger.is(event.detail) && event.detail.name == "close")
|
|
@@ -2,6 +2,13 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { DateTime, Language, Locale } from "isoly";
|
|
3
3
|
import { format, get } from "tidily";
|
|
4
4
|
export class SmoothlyDisplay {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.type = undefined;
|
|
7
|
+
this.value = undefined;
|
|
8
|
+
this.currency = undefined;
|
|
9
|
+
this.country = undefined;
|
|
10
|
+
this.format = undefined;
|
|
11
|
+
}
|
|
5
12
|
render() {
|
|
6
13
|
var _a, _b;
|
|
7
14
|
let result;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Message, Trigger } from "../../model";
|
|
3
3
|
export class SmoothlyFrame {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.url = undefined;
|
|
6
|
+
this.name = undefined;
|
|
7
|
+
this.origin = undefined;
|
|
8
|
+
}
|
|
4
9
|
get contentWindow() {
|
|
5
10
|
const iframe = this.element && this.element.firstElementChild ? this.element.firstElementChild : undefined;
|
|
6
11
|
return (iframe && iframe.contentWindow) || undefined;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { GoogleFont } from "../../model/GoogleFont";
|
|
3
3
|
export class SmoothlyGoogleFont {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.value = undefined;
|
|
6
|
+
}
|
|
4
7
|
render() {
|
|
5
8
|
return GoogleFont.is(this.value) ? h("style", null, GoogleFont.styleImportString(this.value)) : "";
|
|
6
9
|
}
|
|
@@ -4,14 +4,20 @@ import { Action, get, StateEditor } from "tidily";
|
|
|
4
4
|
export class SmoothlyInput {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.keepFocusOnReRender = false;
|
|
7
|
+
this.name = undefined;
|
|
8
|
+
this.value = undefined;
|
|
7
9
|
this.type = "text";
|
|
8
10
|
this.required = false;
|
|
9
11
|
this.minLength = 0;
|
|
10
12
|
this.showLabel = true;
|
|
11
13
|
this.maxLength = Number.POSITIVE_INFINITY;
|
|
12
14
|
this.autocomplete = true;
|
|
15
|
+
this.pattern = undefined;
|
|
16
|
+
this.placeholder = undefined;
|
|
13
17
|
this.disabled = false;
|
|
14
18
|
this.readonly = false;
|
|
19
|
+
this.currency = undefined;
|
|
20
|
+
this.initialValue = undefined;
|
|
15
21
|
}
|
|
16
22
|
get formatter() {
|
|
17
23
|
let result;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Date } from "isoly";
|
|
3
3
|
export class InputDate {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.name = undefined;
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
this.open = undefined;
|
|
8
|
+
this.max = undefined;
|
|
9
|
+
this.min = undefined;
|
|
10
|
+
this.disabled = undefined;
|
|
11
|
+
}
|
|
4
12
|
onStart(next) {
|
|
5
13
|
this.valueChanged.emit(next);
|
|
6
14
|
}
|
|
@@ -2,6 +2,12 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { Date, DateRange } from "isoly";
|
|
3
3
|
export class InputDateRange {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.value = undefined;
|
|
6
|
+
this.start = undefined;
|
|
7
|
+
this.end = undefined;
|
|
8
|
+
this.max = undefined;
|
|
9
|
+
this.min = undefined;
|
|
10
|
+
this.open = undefined;
|
|
5
11
|
this.showLabel = true;
|
|
6
12
|
this.labelStart = "from";
|
|
7
13
|
this.labelEnd = "to";
|
|
@@ -4,10 +4,13 @@ export class SmoothlyMenuOptions {
|
|
|
4
4
|
this.optionElements = [];
|
|
5
5
|
this.filteredOptions = [];
|
|
6
6
|
this.highlightIndex = 0;
|
|
7
|
+
this.keyword = undefined;
|
|
7
8
|
this.toggle = false;
|
|
8
9
|
this.emptyMenuLabel = "No Options";
|
|
9
10
|
this.newOptionLabel = "Add:";
|
|
11
|
+
this.maxMenuHeight = undefined;
|
|
10
12
|
this.order = false;
|
|
13
|
+
this.optionStyle = undefined;
|
|
11
14
|
this.options = [];
|
|
12
15
|
this.resetHighlightOnOptionsChange = true;
|
|
13
16
|
this.mutable = false;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class Notification {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.tick = {};
|
|
5
4
|
this.listener = notice => {
|
|
6
5
|
console.log("changed: ", notice);
|
|
7
6
|
if (notice.state == "closed")
|
|
@@ -9,6 +8,8 @@ export class Notification {
|
|
|
9
8
|
else
|
|
10
9
|
this.tick = {};
|
|
11
10
|
};
|
|
11
|
+
this.notice = undefined;
|
|
12
|
+
this.tick = {};
|
|
12
13
|
}
|
|
13
14
|
get color() {
|
|
14
15
|
let result;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class SmoothlyOption {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.aliases = undefined;
|
|
4
5
|
this.dataHighlight = false;
|
|
6
|
+
this.name = undefined;
|
|
7
|
+
this.value = undefined;
|
|
5
8
|
this.divider = false;
|
|
9
|
+
this.checkbox = undefined;
|
|
10
|
+
this.new = undefined;
|
|
6
11
|
this.toggle = false;
|
|
7
12
|
this.checked = false;
|
|
8
13
|
}
|
|
@@ -2,13 +2,19 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
export class SmoothlyPicker {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.keepFocusOnReRender = false;
|
|
5
|
+
this.isOpen = undefined;
|
|
6
|
+
this.empty = undefined;
|
|
5
7
|
this.disabled = false;
|
|
6
8
|
this.readonly = false;
|
|
7
9
|
this.maxMenuHeight = "inherit";
|
|
10
|
+
this.maxHeight = undefined;
|
|
8
11
|
this.emptyMenuLabel = "No Options";
|
|
9
12
|
this.multiple = false;
|
|
10
13
|
this.mutable = false;
|
|
14
|
+
this.optionStyle = undefined;
|
|
11
15
|
this.options = [];
|
|
16
|
+
this.labelSetting = undefined;
|
|
17
|
+
this.label = undefined;
|
|
12
18
|
this.selections = [];
|
|
13
19
|
this.selectNoneName = "Select None";
|
|
14
20
|
this.selectAllName = "Select All";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyRadio {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.name = undefined;
|
|
5
|
+
this.value = undefined;
|
|
6
|
+
this.checked = undefined;
|
|
7
|
+
this.tabIndex = undefined;
|
|
8
|
+
}
|
|
3
9
|
async onInput(e) {
|
|
4
10
|
if (e.target && e.target.value && (this.checked = e.target.checked))
|
|
5
11
|
this.smoothlySelected.emit({ name: this.name, value: this.value });
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlySelect {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.identifier = undefined;
|
|
5
|
+
this.background = undefined;
|
|
6
|
+
this.value = undefined;
|
|
7
|
+
}
|
|
3
8
|
optionSelected() {
|
|
4
9
|
if (this.selectElement)
|
|
5
10
|
this.selectionChanged.emit({ identifier: this.identifier, value: (this.value = this.selectElement.value) });
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class Selector {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.opened = false;
|
|
5
4
|
this.items = [];
|
|
5
|
+
this.initialPrompt = undefined;
|
|
6
|
+
this.opened = false;
|
|
7
|
+
this.selectedElement = undefined;
|
|
6
8
|
this.missing = false;
|
|
7
9
|
this.filter = "";
|
|
8
10
|
}
|
|
@@ -2,6 +2,10 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
export class SmoothlySkeleton {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.widths = ["8rem", "9rem", "10rem"];
|
|
5
|
+
this.width = undefined;
|
|
6
|
+
this.color = undefined;
|
|
7
|
+
this.period = undefined;
|
|
8
|
+
this.distance = undefined;
|
|
5
9
|
this.align = "left";
|
|
6
10
|
}
|
|
7
11
|
componentWillLoad() {
|
|
@@ -2,7 +2,12 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { Data } from "./Data";
|
|
3
3
|
export class SmoothlySubmit {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.processing = undefined;
|
|
6
|
+
this.color = undefined;
|
|
7
|
+
this.expand = undefined;
|
|
8
|
+
this.fill = undefined;
|
|
5
9
|
this.disabled = false;
|
|
10
|
+
this.prevent = undefined;
|
|
6
11
|
}
|
|
7
12
|
get form() {
|
|
8
13
|
return (this.button && this.button.form) || undefined;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SmoothlyTrigger {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.color = undefined;
|
|
5
|
+
this.expand = undefined;
|
|
6
|
+
this.fill = undefined;
|
|
4
7
|
this.disabled = false;
|
|
5
8
|
this.type = "button";
|
|
9
|
+
this.name = undefined;
|
|
10
|
+
this.value = undefined;
|
|
6
11
|
}
|
|
7
12
|
onClick(e) {
|
|
8
13
|
this.trigger.emit({ name: this.name, value: this.value });
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Message, Trigger } from "../../model";
|
|
3
3
|
export class SmoothlyTriggerSink {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.context = undefined;
|
|
6
|
+
this.destination = undefined;
|
|
7
|
+
this.filter = undefined;
|
|
8
|
+
}
|
|
4
9
|
get filters() {
|
|
5
10
|
if (!this.filtersValue)
|
|
6
11
|
this.filtersValue = this.filter ? this.filter.split(" ") : [];
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { Message, Trigger } from "../../model";
|
|
3
3
|
export class SmoothlyTriggerSource {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.listen = undefined;
|
|
6
|
+
}
|
|
4
7
|
componentDidLoad() {
|
|
5
8
|
Message.listen(this.listen, (destination, content) => {
|
|
6
9
|
if (Trigger.is(content))
|