smoothly 0.1.113 → 0.1.116
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/{Notice-9c2b52b7.js → Notice-839702d8.js} +34 -26
- package/dist/cjs/{Trigger-74bd1ee8.js → Trigger-cf376531.js} +55 -146
- package/dist/cjs/{index-41a36ce2.js → index-1c61bdd3.js} +27 -1
- package/dist/cjs/index.cjs.js +20 -8
- package/dist/cjs/loader.cjs.js +3 -19
- package/dist/cjs/{smoothly-accordion_50.cjs.entry.js → smoothly-accordion_51.cjs.entry.js} +7698 -1491
- package/dist/cjs/smoothly-google-font.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-reorder.cjs.entry.js +2 -2
- package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +5 -5
- package/dist/cjs/smoothly-trigger-source.cjs.entry.js +5 -5
- package/dist/cjs/smoothly.cjs.js +5 -113
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/app/style.css +6 -7
- package/dist/collection/components/app-demo/index.js +6 -1
- package/dist/collection/components/button/index.js +168 -0
- package/dist/collection/components/button/style.css +49 -0
- package/dist/collection/components/menu-options/style.css +2 -2
- package/dist/collection/components/picker/index.js +10 -6
- package/dist/collection/components/picker/style.css +14 -14
- package/dist/collection/components/selector/style.css +3 -3
- package/dist/collection/components/tab/style.css +3 -3
- package/dist/collection/components/table/header/style.css +5 -5
- package/dist/collection/components/trigger/style.css +3 -3
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +7785 -2974
- package/dist/esm/{Notice-4131b4e0.js → Notice-608b552c.js} +34 -26
- package/dist/esm/{Trigger-d7b181ec.js → Trigger-365408f0.js} +55 -146
- package/dist/esm/{index-dcb2b612.js → index-a3737440.js} +27 -1
- package/dist/esm/index.js +17 -4
- package/dist/esm/loader.js +3 -19
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{smoothly-accordion_50.entry.js → smoothly-accordion_51.entry.js} +7698 -1492
- package/dist/esm/smoothly-google-font.entry.js +2 -2
- package/dist/esm/smoothly-radio-group.entry.js +2 -2
- package/dist/esm/smoothly-reorder.entry.js +2 -2
- package/dist/esm/smoothly-trigger-sink.entry.js +3 -3
- package/dist/esm/smoothly-trigger-source.entry.js +3 -3
- package/dist/esm/smoothly.js +5 -113
- package/dist/smoothly/index.esm.js +1 -376
- package/dist/smoothly/p-0215b4da.entry.js +1 -0
- package/dist/smoothly/{p-074a0448.js → p-0cba3e3d.js} +1 -1
- package/dist/smoothly/p-4fa231df.entry.js +1 -0
- package/dist/smoothly/p-6ca0d36c.js +1 -0
- package/dist/smoothly/p-6f009ac9.entry.js +1 -0
- package/dist/smoothly/p-7a30d9b8.js +1 -0
- package/dist/smoothly/p-8ae38136.entry.js +1 -0
- package/dist/smoothly/p-993534fa.entry.js +1 -0
- package/dist/smoothly/p-eec1c703.entry.js +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -125
- package/dist/types/components/button/index.d.ts +11 -0
- package/dist/types/components.d.ts +27 -0
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/package.json +18 -18
- package/dist/cjs/App-339acc9b.js +0 -647
- package/dist/cjs/_commonjsHelpers-10109b76.js +0 -48
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-88cc6900.js +0 -6
- package/dist/cjs/dom-95afd968.js +0 -75
- package/dist/cjs/generate-f9a36f25.js +0 -66
- package/dist/cjs/index-138c41c2.js +0 -3066
- package/dist/cjs/index-40d009d5.js +0 -1354
- package/dist/cjs/index-ac32385c.js +0 -18850
- package/dist/cjs/index-d66869d7.js +0 -1672
- package/dist/cjs/shadow-css-71d0f821.js +0 -391
- package/dist/cjs/smoothly-accordion-item.cjs.entry.js +0 -54
- package/dist/cjs/smoothly-accordion.cjs.entry.js +0 -55
- package/dist/cjs/smoothly-app-demo.cjs.entry.js +0 -29
- package/dist/cjs/smoothly-app.cjs.entry.js +0 -19
- package/dist/cjs/smoothly-backtotop.cjs.entry.js +0 -37
- package/dist/cjs/smoothly-calendar.cjs.entry.js +0 -95
- package/dist/cjs/smoothly-checkbox.cjs.entry.js +0 -18671
- package/dist/cjs/smoothly-dialog-demo.cjs.entry.js +0 -16
- package/dist/cjs/smoothly-dialog.cjs.entry.js +0 -38
- package/dist/cjs/smoothly-display-amount.cjs.entry.js +0 -59
- package/dist/cjs/smoothly-display-date-time.cjs.entry.js +0 -20
- package/dist/cjs/smoothly-display-demo.cjs.entry.js +0 -25
- package/dist/cjs/smoothly-display.cjs.entry.js +0 -41
- package/dist/cjs/smoothly-frame.cjs.entry.js +0 -50
- package/dist/cjs/smoothly-icon-demo.cjs.entry.js +0 -491
- package/dist/cjs/smoothly-icon.cjs.entry.js +0 -52
- package/dist/cjs/smoothly-input-date-range.cjs.entry.js +0 -50
- package/dist/cjs/smoothly-input-date.cjs.entry.js +0 -44
- package/dist/cjs/smoothly-input-demo.cjs.entry.js +0 -19
- package/dist/cjs/smoothly-input-month.cjs.entry.js +0 -41
- package/dist/cjs/smoothly-input.cjs.entry.js +0 -202
- package/dist/cjs/smoothly-item.cjs.entry.js +0 -43
- package/dist/cjs/smoothly-menu-options.cjs.entry.js +0 -108
- package/dist/cjs/smoothly-notification.cjs.entry.js +0 -67
- package/dist/cjs/smoothly-notifier.cjs.entry.js +0 -29
- package/dist/cjs/smoothly-option.cjs.entry.js +0 -33
- package/dist/cjs/smoothly-picker.cjs.entry.js +0 -151
- package/dist/cjs/smoothly-popup.cjs.entry.js +0 -38
- package/dist/cjs/smoothly-quiet.cjs.entry.js +0 -19
- package/dist/cjs/smoothly-radio.cjs.entry.js +0 -28
- package/dist/cjs/smoothly-room.cjs.entry.js +0 -16
- package/dist/cjs/smoothly-select-demo.cjs.entry.js +0 -86
- package/dist/cjs/smoothly-select.cjs.entry.js +0 -31
- package/dist/cjs/smoothly-selector.cjs.entry.js +0 -119
- package/dist/cjs/smoothly-skeleton.cjs.entry.js +0 -27
- package/dist/cjs/smoothly-spinner.cjs.entry.js +0 -24
- package/dist/cjs/smoothly-submit.cjs.entry.js +0 -60
- package/dist/cjs/smoothly-svg.cjs.entry.js +0 -41
- package/dist/cjs/smoothly-tab-switch.cjs.entry.js +0 -32
- package/dist/cjs/smoothly-tab.cjs.entry.js +0 -37
- package/dist/cjs/smoothly-table-cell.cjs.entry.js +0 -19
- package/dist/cjs/smoothly-table-demo.cjs.entry.js +0 -22
- package/dist/cjs/smoothly-table-expandable-cell.cjs.entry.js +0 -45
- package/dist/cjs/smoothly-table-expandable-row.cjs.entry.js +0 -32
- package/dist/cjs/smoothly-table-header.cjs.entry.js +0 -41
- package/dist/cjs/smoothly-table-row.cjs.entry.js +0 -38
- package/dist/cjs/smoothly-table.cjs.entry.js +0 -26
- package/dist/cjs/smoothly-trigger.cjs.entry.js +0 -36
- package/dist/cjs/smoothly-tuple.cjs.entry.js +0 -16
- package/dist/cjs/smoothly-urlencoded.cjs.entry.js +0 -19
- package/dist/esm/App-22187759.js +0 -645
- package/dist/esm/_commonjsHelpers-8fe71198.js +0 -44
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-c64026cd.js +0 -4
- package/dist/esm/dom-a712b575.js +0 -73
- package/dist/esm/generate-50b98474.js +0 -61
- package/dist/esm/index-02a70ac1.js +0 -3027
- package/dist/esm/index-401c6ce3.js +0 -1670
- package/dist/esm/index-a5a08f46.js +0 -18848
- package/dist/esm/index-c8b5d468.js +0 -1349
- package/dist/esm/shadow-css-1e16431b.js +0 -389
- package/dist/esm/smoothly-accordion-item.entry.js +0 -50
- package/dist/esm/smoothly-accordion.entry.js +0 -51
- package/dist/esm/smoothly-app-demo.entry.js +0 -25
- package/dist/esm/smoothly-app.entry.js +0 -15
- package/dist/esm/smoothly-backtotop.entry.js +0 -33
- package/dist/esm/smoothly-calendar.entry.js +0 -91
- package/dist/esm/smoothly-checkbox.entry.js +0 -18667
- package/dist/esm/smoothly-dialog-demo.entry.js +0 -12
- package/dist/esm/smoothly-dialog.entry.js +0 -34
- package/dist/esm/smoothly-display-amount.entry.js +0 -55
- package/dist/esm/smoothly-display-date-time.entry.js +0 -16
- package/dist/esm/smoothly-display-demo.entry.js +0 -21
- package/dist/esm/smoothly-display.entry.js +0 -37
- package/dist/esm/smoothly-frame.entry.js +0 -46
- package/dist/esm/smoothly-icon-demo.entry.js +0 -487
- package/dist/esm/smoothly-icon.entry.js +0 -48
- package/dist/esm/smoothly-input-date-range.entry.js +0 -46
- package/dist/esm/smoothly-input-date.entry.js +0 -40
- package/dist/esm/smoothly-input-demo.entry.js +0 -15
- package/dist/esm/smoothly-input-month.entry.js +0 -37
- package/dist/esm/smoothly-input.entry.js +0 -198
- package/dist/esm/smoothly-item.entry.js +0 -39
- package/dist/esm/smoothly-menu-options.entry.js +0 -104
- package/dist/esm/smoothly-notification.entry.js +0 -63
- package/dist/esm/smoothly-notifier.entry.js +0 -25
- package/dist/esm/smoothly-option.entry.js +0 -29
- package/dist/esm/smoothly-picker.entry.js +0 -147
- package/dist/esm/smoothly-popup.entry.js +0 -34
- package/dist/esm/smoothly-quiet.entry.js +0 -15
- package/dist/esm/smoothly-radio.entry.js +0 -24
- package/dist/esm/smoothly-room.entry.js +0 -12
- package/dist/esm/smoothly-select-demo.entry.js +0 -82
- package/dist/esm/smoothly-select.entry.js +0 -27
- package/dist/esm/smoothly-selector.entry.js +0 -115
- package/dist/esm/smoothly-skeleton.entry.js +0 -23
- package/dist/esm/smoothly-spinner.entry.js +0 -20
- package/dist/esm/smoothly-submit.entry.js +0 -56
- package/dist/esm/smoothly-svg.entry.js +0 -37
- package/dist/esm/smoothly-tab-switch.entry.js +0 -28
- package/dist/esm/smoothly-tab.entry.js +0 -33
- package/dist/esm/smoothly-table-cell.entry.js +0 -15
- package/dist/esm/smoothly-table-demo.entry.js +0 -18
- package/dist/esm/smoothly-table-expandable-cell.entry.js +0 -41
- package/dist/esm/smoothly-table-expandable-row.entry.js +0 -28
- package/dist/esm/smoothly-table-header.entry.js +0 -37
- package/dist/esm/smoothly-table-row.entry.js +0 -34
- package/dist/esm/smoothly-table.entry.js +0 -22
- package/dist/esm/smoothly-trigger.entry.js +0 -32
- package/dist/esm/smoothly-tuple.entry.js +0 -12
- package/dist/esm/smoothly-urlencoded.entry.js +0 -15
- package/dist/smoothly/App-22187759.js +0 -645
- package/dist/smoothly/GoogleFont-8474516b.js +0 -21
- package/dist/smoothly/_commonjsHelpers-8fe71198.js +0 -44
- package/dist/smoothly/app-globals-0f993ce5.js +0 -3
- package/dist/smoothly/css-shim-c64026cd.js +0 -4
- package/dist/smoothly/dom-a712b575.js +0 -73
- package/dist/smoothly/generate-50b98474.js +0 -61
- package/dist/smoothly/index-02a70ac1.js +0 -3027
- package/dist/smoothly/index-401c6ce3.js +0 -1670
- package/dist/smoothly/index-a5a08f46.js +0 -18848
- package/dist/smoothly/index-c8b5d468.js +0 -1349
- package/dist/smoothly/p-06aab261.entry.js +0 -1
- package/dist/smoothly/p-0c1e9588.entry.js +0 -1
- package/dist/smoothly/p-14232157.entry.js +0 -1
- package/dist/smoothly/p-19518931.js +0 -1
- package/dist/smoothly/p-22d4d5a7.entry.js +0 -1
- package/dist/smoothly/p-2cda1784.js +0 -1
- package/dist/smoothly/p-9fa3ab06.entry.js +0 -1
- package/dist/smoothly/p-b8a3e273.entry.js +0 -1
- package/dist/smoothly/shadow-css-1e16431b.js +0 -389
- package/dist/smoothly/smoothly-accordion-item.entry.js +0 -50
- package/dist/smoothly/smoothly-accordion.entry.js +0 -51
- package/dist/smoothly/smoothly-app-demo.entry.js +0 -25
- package/dist/smoothly/smoothly-app.entry.js +0 -15
- package/dist/smoothly/smoothly-backtotop.entry.js +0 -33
- package/dist/smoothly/smoothly-calendar.entry.js +0 -91
- package/dist/smoothly/smoothly-checkbox.entry.js +0 -18667
- package/dist/smoothly/smoothly-dialog-demo.entry.js +0 -12
- package/dist/smoothly/smoothly-dialog.entry.js +0 -34
- package/dist/smoothly/smoothly-display-amount.entry.js +0 -55
- package/dist/smoothly/smoothly-display-date-time.entry.js +0 -16
- package/dist/smoothly/smoothly-display-demo.entry.js +0 -21
- package/dist/smoothly/smoothly-display.entry.js +0 -37
- package/dist/smoothly/smoothly-frame.entry.js +0 -46
- package/dist/smoothly/smoothly-google-font.entry.js +0 -13
- package/dist/smoothly/smoothly-icon-demo.entry.js +0 -487
- package/dist/smoothly/smoothly-icon.entry.js +0 -48
- package/dist/smoothly/smoothly-input-date-range.entry.js +0 -46
- package/dist/smoothly/smoothly-input-date.entry.js +0 -40
- package/dist/smoothly/smoothly-input-demo.entry.js +0 -15
- package/dist/smoothly/smoothly-input-month.entry.js +0 -37
- package/dist/smoothly/smoothly-input.entry.js +0 -198
- package/dist/smoothly/smoothly-item.entry.js +0 -39
- package/dist/smoothly/smoothly-menu-options.entry.js +0 -104
- package/dist/smoothly/smoothly-notification.entry.js +0 -63
- package/dist/smoothly/smoothly-notifier.entry.js +0 -25
- package/dist/smoothly/smoothly-option.entry.js +0 -29
- package/dist/smoothly/smoothly-picker.entry.js +0 -147
- package/dist/smoothly/smoothly-popup.entry.js +0 -34
- package/dist/smoothly/smoothly-quiet.entry.js +0 -15
- package/dist/smoothly/smoothly-radio-group.entry.js +0 -16
- package/dist/smoothly/smoothly-radio.entry.js +0 -24
- package/dist/smoothly/smoothly-reorder.entry.js +0 -99
- package/dist/smoothly/smoothly-room.entry.js +0 -12
- package/dist/smoothly/smoothly-select-demo.entry.js +0 -82
- package/dist/smoothly/smoothly-select.entry.js +0 -27
- package/dist/smoothly/smoothly-selector.entry.js +0 -115
- package/dist/smoothly/smoothly-skeleton.entry.js +0 -23
- package/dist/smoothly/smoothly-spinner.entry.js +0 -20
- package/dist/smoothly/smoothly-submit.entry.js +0 -56
- package/dist/smoothly/smoothly-svg.entry.js +0 -37
- package/dist/smoothly/smoothly-tab-switch.entry.js +0 -28
- package/dist/smoothly/smoothly-tab.entry.js +0 -33
- package/dist/smoothly/smoothly-table-cell.entry.js +0 -15
- package/dist/smoothly/smoothly-table-demo.entry.js +0 -18
- package/dist/smoothly/smoothly-table-expandable-cell.entry.js +0 -41
- package/dist/smoothly/smoothly-table-expandable-row.entry.js +0 -28
- package/dist/smoothly/smoothly-table-header.entry.js +0 -37
- package/dist/smoothly/smoothly-table-row.entry.js +0 -34
- package/dist/smoothly/smoothly-table.entry.js +0 -22
- package/dist/smoothly/smoothly-trigger-sink.entry.js +0 -29
- package/dist/smoothly/smoothly-trigger-source.entry.js +0 -28
- package/dist/smoothly/smoothly-trigger.entry.js +0 -32
- package/dist/smoothly/smoothly-tuple.entry.js +0 -12
- package/dist/smoothly/smoothly-urlencoded.entry.js +0 -15
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1c61bdd3.js');
|
|
6
6
|
const GoogleFont = require('./GoogleFont-6c4f0da1.js');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const SmoothlyGoogleFont = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
index.registerInstance(this, hostRef);
|
|
11
11
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1c61bdd3.js');
|
|
6
6
|
|
|
7
7
|
const styleCss = "smoothly-radio-group{display:flex;position:relative;color:none !important;background:none !important;margin:0.5em 0}smoothly-radio-group[hidden]{display:none}smoothly-radio-group[orientation=vertical] *:not(:first-of-type)>input[type=radio]~label{border-top:none}smoothly-radio-group:not([orientation=vertical]) *:not(:first-of-type)>input[type=radio]~label{border-left:none}smoothly-radio-group[orientation=vertical]{flex-direction:column}smoothly-radio-group[orientation=vertical] :first-of-type>input[type=radio]~label{border-radius:4px 4px 0 0}smoothly-radio-group[orientation=vertical] :last-of-type>input[type=radio]~label{border-radius:0 0 4px 4px}smoothly-radio-group:not([orientation=vertical]){flex-direction:row}smoothly-radio-group:not([orientation=vertical]) :first-of-type>input[type=radio]~label{border-radius:4px 0 0 4px}smoothly-radio-group:not([orientation=vertical]) :last-of-type>input[type=radio]~label{border-radius:0 4px 4px 0}";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const SmoothlyToggleGroup = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.orientation = "horizontal";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1c61bdd3.js');
|
|
6
6
|
|
|
7
7
|
const styleCss = "smoothly-reorder>*{cursor:move;transition:transform 0.3s}smoothly-reorder>*.dragging{transition:none;box-shadow:0 0 10px rgba(var(--smoothly-dark-color));z-index:1;user-select:none}";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
const SmoothlyReorder = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
this.reorder = index.createEvent(this, "reorder", 7);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-1c61bdd3.js');
|
|
6
|
+
const Trigger = require('./Trigger-cf376531.js');
|
|
7
7
|
require('./GoogleFont-6c4f0da1.js');
|
|
8
8
|
|
|
9
9
|
const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const SmoothlyTriggerSink = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
}
|
|
@@ -18,8 +18,8 @@ let SmoothlyTriggerSink = class {
|
|
|
18
18
|
return this.filtersValue;
|
|
19
19
|
}
|
|
20
20
|
TriggerListener(event) {
|
|
21
|
-
if (
|
|
22
|
-
|
|
21
|
+
if (Trigger.Trigger.is(event.detail) && this.filters.some(f => f == event.detail.name)) {
|
|
22
|
+
Trigger.Message.send(this.destination, event.detail, this.context || window);
|
|
23
23
|
event.preventDefault();
|
|
24
24
|
event.stopPropagation();
|
|
25
25
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
5
|
+
const index = require('./index-1c61bdd3.js');
|
|
6
|
+
const Trigger = require('./Trigger-cf376531.js');
|
|
7
7
|
require('./GoogleFont-6c4f0da1.js');
|
|
8
8
|
|
|
9
9
|
const styleCss = ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const SmoothlyTriggerSource = class {
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
this.trigger = index.createEvent(this, "trigger", 7);
|
|
15
15
|
this.message = index.createEvent(this, "message", 7);
|
|
16
16
|
}
|
|
17
17
|
componentDidLoad() {
|
|
18
|
-
|
|
19
|
-
if (
|
|
18
|
+
Trigger.Message.listen(this.listen, (destination, content) => {
|
|
19
|
+
if (Trigger.Trigger.is(content))
|
|
20
20
|
this.trigger.emit(content);
|
|
21
21
|
else
|
|
22
22
|
this.message.emit({ destination, content });
|
package/dist/cjs/smoothly.cjs.js
CHANGED
|
@@ -1,127 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
3
|
+
const index = require('./index-1c61bdd3.js');
|
|
5
4
|
|
|
6
5
|
/*
|
|
7
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
8
7
|
*/
|
|
9
|
-
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
10
8
|
const patchBrowser = () => {
|
|
11
|
-
// NOTE!! This fn cannot use async/await!
|
|
12
|
-
if (index.BUILD.isDev && !index.BUILD.isTesting) {
|
|
13
|
-
index.consoleDevInfo('Running in development mode.');
|
|
14
|
-
}
|
|
15
|
-
if (index.BUILD.cssVarShim) {
|
|
16
|
-
// shim css vars
|
|
17
|
-
index.plt.$cssShim$ = index.win.__cssshim;
|
|
18
|
-
}
|
|
19
|
-
if (index.BUILD.cloneNodeFix) {
|
|
20
|
-
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
21
|
-
patchCloneNodeFix(index.H.prototype);
|
|
22
|
-
}
|
|
23
|
-
if (index.BUILD.profile && !performance.mark) {
|
|
24
|
-
// not all browsers support performance.mark/measure (Safari 10)
|
|
25
|
-
performance.mark = performance.measure = () => {
|
|
26
|
-
/*noop*/
|
|
27
|
-
};
|
|
28
|
-
performance.getEntriesByName = () => [];
|
|
29
|
-
}
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
const scriptElm = index.BUILD.scriptDataOpts || index.BUILD.safari10 || index.BUILD.dynamicImportShim
|
|
32
|
-
? Array.from(index.doc.querySelectorAll('script')).find((s) => new RegExp(`\/${index.NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
|
33
|
-
s.getAttribute('data-stencil-namespace') === index.NAMESPACE)
|
|
34
|
-
: null;
|
|
35
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));
|
|
36
|
-
const opts =
|
|
37
|
-
if (
|
|
38
|
-
// Safari < v11 support: This IF is true if it's Safari below v11.
|
|
39
|
-
// This fn cannot use async/await since Safari didn't support it until v11,
|
|
40
|
-
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
|
41
|
-
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
|
42
|
-
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
|
43
|
-
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
|
44
|
-
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
|
45
|
-
return {
|
|
46
|
-
then() {
|
|
47
|
-
/* promise noop */
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
if (!index.BUILD.safari10 && importMeta !== '') {
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== '') {
|
|
52
12
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
53
13
|
}
|
|
54
|
-
else if (index.BUILD.dynamicImportShim || index.BUILD.safari10) {
|
|
55
|
-
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, index.win.location.href)).href;
|
|
56
|
-
if (index.BUILD.dynamicImportShim) {
|
|
57
|
-
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
|
58
|
-
}
|
|
59
|
-
if (index.BUILD.dynamicImportShim && !index.win.customElements) {
|
|
60
|
-
// module support, but no custom elements support (Old Edge)
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
return Promise.resolve().then(function () { return require(/* webpackChunkName: "polyfills-dom" */ './dom-95afd968.js'); }).then(() => opts);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
14
|
return index.promiseResolve(opts);
|
|
66
15
|
};
|
|
67
|
-
const patchDynamicImport = (base, orgScriptElm) => {
|
|
68
|
-
const importFunctionName = getDynamicImportFunction(index.NAMESPACE);
|
|
69
|
-
try {
|
|
70
|
-
// test if this browser supports dynamic imports
|
|
71
|
-
// There is a caching issue in V8, that breaks using import() in Function
|
|
72
|
-
// By generating a random string, we can workaround it
|
|
73
|
-
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
|
74
|
-
index.win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
|
75
|
-
}
|
|
76
|
-
catch (e) {
|
|
77
|
-
// this shim is specifically for browsers that do support "esm" imports
|
|
78
|
-
// however, they do NOT support "dynamic" imports
|
|
79
|
-
// basically this code is for old Edge, v18 and below
|
|
80
|
-
const moduleMap = new Map();
|
|
81
|
-
index.win[importFunctionName] = (src) => {
|
|
82
|
-
const url = new URL(src, base).href;
|
|
83
|
-
let mod = moduleMap.get(url);
|
|
84
|
-
if (!mod) {
|
|
85
|
-
const script = index.doc.createElement('script');
|
|
86
|
-
script.type = 'module';
|
|
87
|
-
script.crossOrigin = orgScriptElm.crossOrigin;
|
|
88
|
-
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
|
89
|
-
type: 'application/javascript',
|
|
90
|
-
}));
|
|
91
|
-
mod = new Promise((resolve) => {
|
|
92
|
-
script.onload = () => {
|
|
93
|
-
resolve(index.win[importFunctionName].m);
|
|
94
|
-
script.remove();
|
|
95
|
-
};
|
|
96
|
-
});
|
|
97
|
-
moduleMap.set(url, mod);
|
|
98
|
-
index.doc.head.appendChild(script);
|
|
99
|
-
}
|
|
100
|
-
return mod;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
105
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
106
|
-
HTMLElementPrototype.cloneNode = function (deep) {
|
|
107
|
-
if (this.nodeName === 'TEMPLATE') {
|
|
108
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
109
|
-
}
|
|
110
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
111
|
-
const srcChildNodes = this.childNodes;
|
|
112
|
-
if (deep) {
|
|
113
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
114
|
-
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
115
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
116
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
return clonedNode;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
16
|
|
|
124
17
|
patchBrowser().then(options => {
|
|
125
|
-
|
|
126
|
-
return index.bootstrapLazy([["smoothly-app-demo.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo.cjs",[[0,"smoothly-input-demo"]]],["smoothly-select-demo.cjs",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-display-demo.cjs",[[0,"smoothly-display-demo"]]],["smoothly-table-demo.cjs",[[2,"smoothly-table-demo"]]],["smoothly-app.cjs",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo.cjs",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo.cjs",[[2,"smoothly-icon-demo"]]],["smoothly-room.cjs",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range.cjs",[[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]]]],["smoothly-notifier.cjs",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker.cjs",[[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectionName":[1025,"selection-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]]]],["smoothly-dialog.cjs",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-backtotop.cjs",[[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}]]],["smoothly-checkbox.cjs",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit.cjs",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded.cjs",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion.cjs",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item.cjs",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount.cjs",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame.cjs",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup.cjs",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-quiet.cjs",[[6,"smoothly-quiet",{"color":[1]}]]],["smoothly-radio.cjs",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select.cjs",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-skeleton.cjs",[[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}]]],["smoothly-svg.cjs",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-tab.cjs",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch.cjs",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table.cjs",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell.cjs",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell.cjs",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row.cjs",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header.cjs",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row.cjs",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon.cjs",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-input-date.cjs",[[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]]]],["smoothly-notification.cjs",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-menu-options.cjs",[[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]]]],["smoothly-display.cjs",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time.cjs",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-tuple.cjs",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-option.cjs",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540]}]]],["smoothly-spinner.cjs",[[2,"smoothly-spinner",{"active":[516],"size":[513]}]]],["smoothly-selector.cjs",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-item.cjs",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-calendar.cjs",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}]]],["smoothly-input.cjs",[[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}]]],["smoothly-input-month.cjs",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-trigger.cjs",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["smoothly-google-font.cjs",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group.cjs",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder.cjs",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink.cjs",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source.cjs",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51.cjs",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}],[0,"smoothly-input-demo"],[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]],[0,"smoothly-display-demo"],[2,"smoothly-table-demo"],[4,"smoothly-app",{"color":[1]}],[0,"smoothly-dialog-demo"],[2,"smoothly-icon-demo"],[6,"smoothly-button",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"link":[1],"download":[4]}],[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}],[2,"smoothly-input-date-range",{"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"open":[1028],"showLabel":[516,"show-label"]},[[0,"startChanged","onStartChanged"],[0,"endChanged","onEndChanged"],[0,"dateRangeSet","onDateRangeSet"]]],[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]],[1,"smoothly-picker",{"maxMenuHeight":[1,"max-menu-height"],"maxHeight":[1,"max-height"],"emptyMenuLabel":[1025,"empty-menu-label"],"multiple":[516],"optionStyle":[8,"option-style"],"options":[16],"labelSetting":[513,"label-setting"],"label":[513],"selections":[1040],"selectNoneName":[1025,"select-none-name"],"selectionName":[1025,"selection-name"],"isOpen":[32]},[[0,"optionSelect","optionSelectHander"]]],[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]],[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}],[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}],[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]],[0,"smoothly-urlencoded",{"data":[1]}],[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]],[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}],[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}],[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}],[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}],[6,"smoothly-quiet",{"color":[1]}],[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}],[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}],[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}],[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}],[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]],[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]],[6,"smoothly-table",null,[[0,"sort","onSort"]]],[6,"smoothly-table-cell"],[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]],[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]],[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]],[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]],[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]],[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]],[1,"smoothly-menu-options",{"emptyMenuLabel":[1025,"empty-menu-label"],"maxMenuHeight":[1,"max-menu-height"],"order":[4],"optionStyle":[8,"option-style"],"options":[1040],"resetHighlightOnOptionsChange":[1028,"reset-highlight-on-options-change"],"filteredOptions":[32],"highlightIndex":[32],"moveHighlight":[64],"setHighlight":[64],"getHighlighted":[64],"filterOptions":[64]},[[0,"optionHover","optionHoverHandler"]]],[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}],[2,"smoothly-display-date-time",{"datetime":[1]}],[0,"smoothly-tuple",{"tuple":[16]}],[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540]}],[2,"smoothly-spinner",{"active":[516],"size":[513]}],[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}],[6,"smoothly-input",{"name":[513],"value":[1032],"type":[513],"required":[1540],"minLength":[1026,"min-length"],"showLabel":[516,"show-label"],"maxLength":[1026,"max-length"],"autocomplete":[1028],"pattern":[1040],"placeholder":[1025],"disabled":[1028],"currency":[513],"getFormData":[64],"setKeepFocusOnReRender":[64],"setSelectionRange":[64]}],[2,"smoothly-input-month",{"value":[1025]}],[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]],[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]],[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]],[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]]], options);
|
|
127
19
|
});
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"./components/app/index.js",
|
|
6
6
|
"./components/app-demo/index.js",
|
|
7
7
|
"./components/backtotop/index.js",
|
|
8
|
+
"./components/button/index.js",
|
|
8
9
|
"./components/calendar/index.js",
|
|
9
10
|
"./components/checkbox/index.js",
|
|
10
11
|
"./components/dialog/index.js",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
],
|
|
59
60
|
"compiler": {
|
|
60
61
|
"name": "@stencil/core",
|
|
61
|
-
"version": "2.
|
|
62
|
-
"typescriptVersion": "4.
|
|
62
|
+
"version": "2.15.2",
|
|
63
|
+
"typescriptVersion": "4.5.4"
|
|
63
64
|
},
|
|
64
65
|
"collections": [],
|
|
65
66
|
"bundles": []
|
|
@@ -43,13 +43,12 @@ smoothly-app>smoothly-notifier>header {
|
|
|
43
43
|
left: 0;
|
|
44
44
|
width: 100%;
|
|
45
45
|
z-index: 5;
|
|
46
|
-
height:
|
|
46
|
+
height: 5rem;
|
|
47
47
|
background-color: rgb(var(--smoothly-app-background));
|
|
48
48
|
color: rgba(var(--smoothly-medium-color));
|
|
49
49
|
fill: rgb(var(--smoothly-medium-color));
|
|
50
50
|
stroke: rgb(var(--smoothly-medium-color));
|
|
51
51
|
display: flex;
|
|
52
|
-
font-size: 18px;
|
|
53
52
|
justify-content: space-between;
|
|
54
53
|
align-items: center;
|
|
55
54
|
box-shadow: 0 2px 5px 0 rgba(var(--smoothly-app-shadow));
|
|
@@ -73,7 +72,7 @@ smoothly-app>smoothly-notifier>header>nav>ul>li>*:not(a) {
|
|
|
73
72
|
margin: 0;
|
|
74
73
|
}
|
|
75
74
|
smoothly-app>smoothly-notifier>header>h1 {
|
|
76
|
-
margin-left:
|
|
75
|
+
margin-left: 3.8rem;
|
|
77
76
|
}
|
|
78
77
|
smoothly-app>smoothly-notifier>header>h1>a {
|
|
79
78
|
overflow: hidden;
|
|
@@ -92,7 +91,7 @@ smoothly-app>smoothly-notifier>header>nav>ul {
|
|
|
92
91
|
}
|
|
93
92
|
smoothly-app>smoothly-notifier>header>[slot=header] {
|
|
94
93
|
display: flex;
|
|
95
|
-
margin-right:
|
|
94
|
+
margin-right: 2.1rem;
|
|
96
95
|
justify-content: flex-end;
|
|
97
96
|
border: 0;
|
|
98
97
|
}
|
|
@@ -101,7 +100,7 @@ smoothly-app>smoothly-notifier>header>[slot=header]>a {
|
|
|
101
100
|
align-self: center;
|
|
102
101
|
border-width: 0;
|
|
103
102
|
align-items: center;
|
|
104
|
-
margin-right:
|
|
103
|
+
margin-right: 3.9rem;
|
|
105
104
|
}
|
|
106
105
|
smoothly-app>smoothly-notifier>header>[slot=header]>a>smoothly-icon {
|
|
107
106
|
fill: rgb(var(--smoothly-primary-shade));
|
|
@@ -110,7 +109,7 @@ smoothly-app>smoothly-notifier>header>[slot=header]>a>smoothly-icon {
|
|
|
110
109
|
}
|
|
111
110
|
smoothly-app>smoothly-notifier>header>nav>ul>li a {
|
|
112
111
|
display: flex;
|
|
113
|
-
height:
|
|
112
|
+
height: 2.3rem;
|
|
114
113
|
margin: 0 0.4cm;
|
|
115
114
|
text-decoration: none;
|
|
116
115
|
}
|
|
@@ -149,5 +148,5 @@ smoothly-app>smoothly-notifier>header>nav>ul>li a.active {
|
|
|
149
148
|
}
|
|
150
149
|
smoothly-app>smoothly-notifier>main {
|
|
151
150
|
position: relative;
|
|
152
|
-
top:
|
|
151
|
+
top: 5.6rem;
|
|
153
152
|
}
|
|
@@ -6,7 +6,12 @@ export class SmoothlyAppDemo {
|
|
|
6
6
|
h("a", { slot: "nav-start", href: "display" }, "Display"),
|
|
7
7
|
h("a", { slot: "nav-start", href: "https://google.com" }, "External"),
|
|
8
8
|
h("smoothly-room", { path: "" },
|
|
9
|
-
h("smoothly-input", { type: "text" }, "Default")
|
|
9
|
+
h("smoothly-input", { type: "text" }, "Default"),
|
|
10
|
+
h("div", { style: { padding: "1em", maxWidth: "12em" } },
|
|
11
|
+
h("smoothly-button", { fill: "solid", color: "danger", link: "https://google.com" }, "open"),
|
|
12
|
+
h("smoothly-button", { fill: "solid", color: "danger", link: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", download: true }, "download"),
|
|
13
|
+
h("smoothly-button", { fill: "solid", color: "danger", onClick: () => alert("clicked") }, "action"),
|
|
14
|
+
h("smoothly-button", { type: "link", fill: "clear", color: "danger", onClick: () => alert("clicked") }, "action link"))),
|
|
10
15
|
h("smoothly-room", { path: "input", label: "Input" },
|
|
11
16
|
h("smoothly-input-demo", null)),
|
|
12
17
|
h("smoothly-room", { path: "dialog", label: "Dialog" },
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Component, h, Prop } from "@stencil/core";
|
|
2
|
+
export class SmoothlyButton {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.disabled = false;
|
|
5
|
+
this.type = "button";
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
let result;
|
|
9
|
+
switch (this.type) {
|
|
10
|
+
case "link":
|
|
11
|
+
result = this.disabled ? (h("slot", null)) : (h("a", { href: this.link },
|
|
12
|
+
h("slot", null)));
|
|
13
|
+
break;
|
|
14
|
+
case "button":
|
|
15
|
+
result = this.link ? (h("a", { href: this.link, target: "_blank", download: this.download },
|
|
16
|
+
h("slot", null))) : (h("button", { disabled: this.disabled },
|
|
17
|
+
h("slot", null)));
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "smoothly-button"; }
|
|
23
|
+
static get encapsulation() { return "scoped"; }
|
|
24
|
+
static get originalStyleUrls() { return {
|
|
25
|
+
"$": ["style.css"]
|
|
26
|
+
}; }
|
|
27
|
+
static get styleUrls() { return {
|
|
28
|
+
"$": ["style.css"]
|
|
29
|
+
}; }
|
|
30
|
+
static get properties() { return {
|
|
31
|
+
"color": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "Color | undefined",
|
|
36
|
+
"resolved": "\"danger\" | \"dark\" | \"default\" | \"light\" | \"medium\" | \"primary\" | \"secondary\" | \"success\" | \"tertiary\" | \"warning\" | undefined",
|
|
37
|
+
"references": {
|
|
38
|
+
"Color": {
|
|
39
|
+
"location": "import",
|
|
40
|
+
"path": "../../model"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": false,
|
|
45
|
+
"optional": false,
|
|
46
|
+
"docs": {
|
|
47
|
+
"tags": [],
|
|
48
|
+
"text": ""
|
|
49
|
+
},
|
|
50
|
+
"attribute": "color",
|
|
51
|
+
"reflect": true
|
|
52
|
+
},
|
|
53
|
+
"expand": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"mutable": false,
|
|
56
|
+
"complexType": {
|
|
57
|
+
"original": "Expand",
|
|
58
|
+
"resolved": "\"block\" | \"full\"",
|
|
59
|
+
"references": {
|
|
60
|
+
"Expand": {
|
|
61
|
+
"location": "import",
|
|
62
|
+
"path": "../../model"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": false,
|
|
67
|
+
"optional": false,
|
|
68
|
+
"docs": {
|
|
69
|
+
"tags": [],
|
|
70
|
+
"text": ""
|
|
71
|
+
},
|
|
72
|
+
"attribute": "expand",
|
|
73
|
+
"reflect": true
|
|
74
|
+
},
|
|
75
|
+
"fill": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"mutable": false,
|
|
78
|
+
"complexType": {
|
|
79
|
+
"original": "Fill",
|
|
80
|
+
"resolved": "\"clear\" | \"default\" | \"outline\" | \"solid\"",
|
|
81
|
+
"references": {
|
|
82
|
+
"Fill": {
|
|
83
|
+
"location": "import",
|
|
84
|
+
"path": "../../model"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": false,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": ""
|
|
93
|
+
},
|
|
94
|
+
"attribute": "fill",
|
|
95
|
+
"reflect": true
|
|
96
|
+
},
|
|
97
|
+
"disabled": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "boolean",
|
|
102
|
+
"resolved": "boolean",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": ""
|
|
110
|
+
},
|
|
111
|
+
"attribute": "disabled",
|
|
112
|
+
"reflect": true,
|
|
113
|
+
"defaultValue": "false"
|
|
114
|
+
},
|
|
115
|
+
"type": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"mutable": false,
|
|
118
|
+
"complexType": {
|
|
119
|
+
"original": "\"link\" | \"button\"",
|
|
120
|
+
"resolved": "\"button\" | \"link\"",
|
|
121
|
+
"references": {}
|
|
122
|
+
},
|
|
123
|
+
"required": false,
|
|
124
|
+
"optional": false,
|
|
125
|
+
"docs": {
|
|
126
|
+
"tags": [],
|
|
127
|
+
"text": ""
|
|
128
|
+
},
|
|
129
|
+
"attribute": "type",
|
|
130
|
+
"reflect": true,
|
|
131
|
+
"defaultValue": "\"button\""
|
|
132
|
+
},
|
|
133
|
+
"link": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"mutable": false,
|
|
136
|
+
"complexType": {
|
|
137
|
+
"original": "string",
|
|
138
|
+
"resolved": "string | undefined",
|
|
139
|
+
"references": {}
|
|
140
|
+
},
|
|
141
|
+
"required": false,
|
|
142
|
+
"optional": true,
|
|
143
|
+
"docs": {
|
|
144
|
+
"tags": [],
|
|
145
|
+
"text": ""
|
|
146
|
+
},
|
|
147
|
+
"attribute": "link",
|
|
148
|
+
"reflect": false
|
|
149
|
+
},
|
|
150
|
+
"download": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "boolean",
|
|
155
|
+
"resolved": "boolean | undefined",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": ""
|
|
163
|
+
},
|
|
164
|
+
"attribute": "download",
|
|
165
|
+
"reflect": false
|
|
166
|
+
}
|
|
167
|
+
}; }
|
|
168
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
:host[type=link] {
|
|
2
|
+
display: inline;
|
|
3
|
+
}
|
|
4
|
+
:host:not([type=link]) {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
:host {
|
|
8
|
+
margin: 1em;
|
|
9
|
+
border-style: solid;
|
|
10
|
+
border-width: 1px;
|
|
11
|
+
border-radius: 3px;
|
|
12
|
+
}
|
|
13
|
+
:host[hidden] {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
:host[disabled] {
|
|
17
|
+
opacity: 0.5;
|
|
18
|
+
}
|
|
19
|
+
a,
|
|
20
|
+
button {
|
|
21
|
+
border-color: transparent;
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
padding: 0.2em 0.3em;
|
|
24
|
+
font-size: 110%;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host:not([disabled]):hover,
|
|
29
|
+
:host:not([disabled]):focus,
|
|
30
|
+
:host:not([disabled]):active {
|
|
31
|
+
border-color: var(--smoothly-button-border);
|
|
32
|
+
}
|
|
33
|
+
:host[type=button] > a {
|
|
34
|
+
display: block;
|
|
35
|
+
text-align: center;
|
|
36
|
+
text-decoration: inherit;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host[type=button] > a {
|
|
40
|
+
width: calc(100% - 0.6em);
|
|
41
|
+
}
|
|
42
|
+
:host > button {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
:host[expand=fill] {
|
|
46
|
+
width: 100%;
|
|
47
|
+
border-left: none;
|
|
48
|
+
border-right: none;
|
|
49
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
max-height:
|
|
2
|
+
max-height: 18.75rem;
|
|
3
3
|
width: 85%;
|
|
4
4
|
max-height: var(--max-menu-height);
|
|
5
5
|
box-sizing: border-box;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
color: rgb(var(--smoothly-primary-color));
|
|
9
9
|
stroke: rgb(var(--smoothly-primary-color));
|
|
10
10
|
fill: rgb(var(--smoothly-primary-color));
|
|
11
|
-
box-shadow: 0px 2px
|
|
11
|
+
box-shadow: 0px 2px 1.5rem rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);
|
|
12
12
|
overflow-y: auto;
|
|
13
13
|
cursor: pointer;
|
|
14
14
|
}
|
|
@@ -119,12 +119,16 @@ export class SmoothlyPicker {
|
|
|
119
119
|
o.left = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
|
|
120
120
|
});
|
|
121
121
|
const options = [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
122
|
+
...(this.multiple
|
|
123
|
+
? [
|
|
124
|
+
{
|
|
125
|
+
value: "select-none",
|
|
126
|
+
name: this.selectNoneName,
|
|
127
|
+
left: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
|
|
128
|
+
divider: true,
|
|
129
|
+
},
|
|
130
|
+
]
|
|
131
|
+
: []),
|
|
128
132
|
...((_d = this.options) !== null && _d !== void 0 ? _d : []),
|
|
129
133
|
];
|
|
130
134
|
return (h(Host, { style: cssVariables, "has-selection": this.selections.length > 0, "is-open": this.isOpen ? "" : undefined, onMouseDown: (e) => e.preventDefault(), onClick: () => this.onClick() },
|