smoothly 0.1.112 → 0.1.115
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} +7694 -1487
- 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-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/input/style.css +2 -2
- package/dist/collection/components/picker/index.js +10 -6
- package/dist/collection/components/trigger/style.css +3 -3
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +7781 -2970
- 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} +7694 -1488
- 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-18a1063c.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-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-436cd558.entry.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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-a3737440.js';
|
|
2
2
|
import { G as GoogleFont } from './GoogleFont-8474516b.js';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
const SmoothlyGoogleFont = class {
|
|
5
5
|
constructor(hostRef) {
|
|
6
6
|
registerInstance(this, hostRef);
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-a3737440.js';
|
|
2
2
|
|
|
3
3
|
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}";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const SmoothlyToggleGroup = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
this.orientation = "horizontal";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
1
|
+
import { r as registerInstance, c as createEvent, a as getElement } from './index-a3737440.js';
|
|
2
2
|
|
|
3
3
|
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}";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const SmoothlyReorder = class {
|
|
6
6
|
constructor(hostRef) {
|
|
7
7
|
registerInstance(this, hostRef);
|
|
8
8
|
this.reorder = createEvent(this, "reorder", 7);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
2
|
-
import { T as Trigger, M as Message } from './
|
|
1
|
+
import { r as registerInstance, h } from './index-a3737440.js';
|
|
2
|
+
import { T as Trigger, M as Message } from './Trigger-365408f0.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
|
5
5
|
const styleCss = ".sc-smoothly-trigger-sink-h{display:block}[hidden].sc-smoothly-trigger-sink-h{display:none}";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const SmoothlyTriggerSink = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { M as Message, T as Trigger } from './
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-a3737440.js';
|
|
2
|
+
import { M as Message, T as Trigger } from './Trigger-365408f0.js';
|
|
3
3
|
import './GoogleFont-8474516b.js';
|
|
4
4
|
|
|
5
5
|
const styleCss = ".sc-smoothly-trigger-source-h{display:block}[hidden].sc-smoothly-trigger-source-h{display:none}";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const SmoothlyTriggerSource = class {
|
|
8
8
|
constructor(hostRef) {
|
|
9
9
|
registerInstance(this, hostRef);
|
|
10
10
|
this.trigger = createEvent(this, "trigger", 7);
|
package/dist/esm/smoothly.js
CHANGED
|
@@ -1,125 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-a3737440.js';
|
|
3
2
|
|
|
4
3
|
/*
|
|
5
|
-
Stencil Client Patch Browser v2.
|
|
4
|
+
Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
|
|
6
5
|
*/
|
|
7
|
-
const getDynamicImportFunction = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
8
6
|
const patchBrowser = () => {
|
|
9
|
-
// NOTE!! This fn cannot use async/await!
|
|
10
|
-
if (BUILD.isDev && !BUILD.isTesting) {
|
|
11
|
-
consoleDevInfo('Running in development mode.');
|
|
12
|
-
}
|
|
13
|
-
if (BUILD.cssVarShim) {
|
|
14
|
-
// shim css vars
|
|
15
|
-
plt.$cssShim$ = win.__cssshim;
|
|
16
|
-
}
|
|
17
|
-
if (BUILD.cloneNodeFix) {
|
|
18
|
-
// opted-in to polyfill cloneNode() for slot polyfilled components
|
|
19
|
-
patchCloneNodeFix(H.prototype);
|
|
20
|
-
}
|
|
21
|
-
if (BUILD.profile && !performance.mark) {
|
|
22
|
-
// not all browsers support performance.mark/measure (Safari 10)
|
|
23
|
-
performance.mark = performance.measure = () => {
|
|
24
|
-
/*noop*/
|
|
25
|
-
};
|
|
26
|
-
performance.getEntriesByName = () => [];
|
|
27
|
-
}
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
const scriptElm = BUILD.scriptDataOpts || BUILD.safari10 || BUILD.dynamicImportShim
|
|
30
|
-
? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) ||
|
|
31
|
-
s.getAttribute('data-stencil-namespace') === NAMESPACE)
|
|
32
|
-
: null;
|
|
33
7
|
const importMeta = import.meta.url;
|
|
34
|
-
const opts =
|
|
35
|
-
if (
|
|
36
|
-
// Safari < v11 support: This IF is true if it's Safari below v11.
|
|
37
|
-
// This fn cannot use async/await since Safari didn't support it until v11,
|
|
38
|
-
// however, Safari 10 did support modules. Safari 10 also didn't support "nomodule",
|
|
39
|
-
// so both the ESM file and nomodule file would get downloaded. Only Safari
|
|
40
|
-
// has 'onbeforeload' in the script, and "history.scrollRestoration" was added
|
|
41
|
-
// to Safari in v11. Return a noop then() so the async/await ESM code doesn't continue.
|
|
42
|
-
// IS_ESM_BUILD is replaced at build time so this check doesn't happen in systemjs builds.
|
|
43
|
-
return {
|
|
44
|
-
then() {
|
|
45
|
-
/* promise noop */
|
|
46
|
-
},
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
if (!BUILD.safari10 && importMeta !== '') {
|
|
8
|
+
const opts = {};
|
|
9
|
+
if (importMeta !== '') {
|
|
50
10
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
51
11
|
}
|
|
52
|
-
else if (BUILD.dynamicImportShim || BUILD.safari10) {
|
|
53
|
-
opts.resourcesUrl = new URL('.', new URL(scriptElm.getAttribute('data-resources-url') || scriptElm.src, win.location.href)).href;
|
|
54
|
-
if (BUILD.dynamicImportShim) {
|
|
55
|
-
patchDynamicImport(opts.resourcesUrl, scriptElm);
|
|
56
|
-
}
|
|
57
|
-
if (BUILD.dynamicImportShim && !win.customElements) {
|
|
58
|
-
// module support, but no custom elements support (Old Edge)
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
return import(/* webpackChunkName: "polyfills-dom" */ './dom-a712b575.js').then(() => opts);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
12
|
return promiseResolve(opts);
|
|
64
13
|
};
|
|
65
|
-
const patchDynamicImport = (base, orgScriptElm) => {
|
|
66
|
-
const importFunctionName = getDynamicImportFunction(NAMESPACE);
|
|
67
|
-
try {
|
|
68
|
-
// test if this browser supports dynamic imports
|
|
69
|
-
// There is a caching issue in V8, that breaks using import() in Function
|
|
70
|
-
// By generating a random string, we can workaround it
|
|
71
|
-
// Check https://bugs.chromium.org/p/chromium/issues/detail?id=990810 for more info
|
|
72
|
-
win[importFunctionName] = new Function('w', `return import(w);//${Math.random()}`);
|
|
73
|
-
}
|
|
74
|
-
catch (e) {
|
|
75
|
-
// this shim is specifically for browsers that do support "esm" imports
|
|
76
|
-
// however, they do NOT support "dynamic" imports
|
|
77
|
-
// basically this code is for old Edge, v18 and below
|
|
78
|
-
const moduleMap = new Map();
|
|
79
|
-
win[importFunctionName] = (src) => {
|
|
80
|
-
const url = new URL(src, base).href;
|
|
81
|
-
let mod = moduleMap.get(url);
|
|
82
|
-
if (!mod) {
|
|
83
|
-
const script = doc.createElement('script');
|
|
84
|
-
script.type = 'module';
|
|
85
|
-
script.crossOrigin = orgScriptElm.crossOrigin;
|
|
86
|
-
script.src = URL.createObjectURL(new Blob([`import * as m from '${url}'; window.${importFunctionName}.m = m;`], {
|
|
87
|
-
type: 'application/javascript',
|
|
88
|
-
}));
|
|
89
|
-
mod = new Promise((resolve) => {
|
|
90
|
-
script.onload = () => {
|
|
91
|
-
resolve(win[importFunctionName].m);
|
|
92
|
-
script.remove();
|
|
93
|
-
};
|
|
94
|
-
});
|
|
95
|
-
moduleMap.set(url, mod);
|
|
96
|
-
doc.head.appendChild(script);
|
|
97
|
-
}
|
|
98
|
-
return mod;
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
103
|
-
const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;
|
|
104
|
-
HTMLElementPrototype.cloneNode = function (deep) {
|
|
105
|
-
if (this.nodeName === 'TEMPLATE') {
|
|
106
|
-
return nativeCloneNodeFn.call(this, deep);
|
|
107
|
-
}
|
|
108
|
-
const clonedNode = nativeCloneNodeFn.call(this, false);
|
|
109
|
-
const srcChildNodes = this.childNodes;
|
|
110
|
-
if (deep) {
|
|
111
|
-
for (let i = 0; i < srcChildNodes.length; i++) {
|
|
112
|
-
// Node.ATTRIBUTE_NODE === 2, and checking because IE11
|
|
113
|
-
if (srcChildNodes[i].nodeType !== 2) {
|
|
114
|
-
clonedNode.appendChild(srcChildNodes[i].cloneNode(true));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return clonedNode;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
14
|
|
|
122
15
|
patchBrowser().then(options => {
|
|
123
|
-
|
|
124
|
-
return bootstrapLazy([["smoothly-app-demo",[[0,"smoothly-app-demo",{"baseUrl":[1,"base-url"]}]]],["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-input-demo",[[0,"smoothly-input-demo"]]],["smoothly-select-demo",[[2,"smoothly-select-demo",null,[[0,"selectionChanged","handleSelectionChanged"]]]]],["smoothly-display-demo",[[0,"smoothly-display-demo"]]],["smoothly-table-demo",[[2,"smoothly-table-demo"]]],["smoothly-app",[[4,"smoothly-app",{"color":[1]}]]],["smoothly-dialog-demo",[[0,"smoothly-dialog-demo"]]],["smoothly-icon-demo",[[2,"smoothly-icon-demo"]]],["smoothly-room",[[4,"smoothly-room",{"label":[1],"icon":[1],"path":[1],"to":[1]}]]],["smoothly-input-date-range",[[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",[[6,"smoothly-notifier",{"notices":[32]},[[0,"notice","onNotice"],[0,"remove","onRemove"]]]]],["smoothly-picker",[[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",[[6,"smoothly-dialog",{"color":[513],"open":[1540],"closable":[516],"header":[513]},[[0,"trigger","TriggerListener"]]]]],["smoothly-backtotop",[[2,"smoothly-backtotop",{"opacity":[1],"bottom":[1],"right":[1],"visible":[32]}]]],["smoothly-checkbox",[[2,"smoothly-checkbox",{"selectAll":[4,"select-all"],"size":[1],"intermediate":[1540],"selected":[1540],"disabled":[1540],"t":[32]}]]],["smoothly-submit",[[6,"smoothly-submit",{"processing":[1540],"color":[513],"expand":[513],"fill":[513],"disabled":[516],"prevent":[4],"submit":[64]},[[0,"click","handleSubmit"]]]]],["smoothly-urlencoded",[[0,"smoothly-urlencoded",{"data":[1]}]]],["smoothly-accordion",[[6,"smoothly-accordion",{"value":[1025]},[[0,"smoothlyOpen","handleOpenClose"],[0,"smoothlyClose","handleOpenClose"],[0,"smoothlyAccordionItemDidLoad","onAccordionItemDidLoad"],[0,"smoothlyAccordionItemDidUnload","onAccordionItemDidUnload"]]]]],["smoothly-accordion-item",[[6,"smoothly-accordion-item",{"name":[1],"brand":[1],"open":[1540]}]]],["smoothly-display-amount",[[2,"smoothly-display-amount",{"amount":[8],"currency":[1]}]]],["smoothly-frame",[[2,"smoothly-frame",{"url":[1],"name":[1],"origin":[1],"send":[64]}]]],["smoothly-popup",[[6,"smoothly-popup",{"visible":[1540],"direction":[1537],"cssVariables":[32]}]]],["smoothly-quiet",[[6,"smoothly-quiet",{"color":[1]}]]],["smoothly-radio",[[6,"smoothly-radio",{"name":[1],"value":[1],"checked":[1540],"tabIndex":[2,"tab-index"]}]]],["smoothly-select",[[6,"smoothly-select",{"identifier":[1],"background":[513],"value":[1025]}]]],["smoothly-skeleton",[[2,"smoothly-skeleton",{"widths":[16],"width":[1],"color":[1],"period":[2],"distance":[1],"align":[513]}]]],["smoothly-svg",[[2,"smoothly-svg",{"url":[513],"size":[513],"color":[1]}]]],["smoothly-tab",[[6,"smoothly-tab",{"label":[1],"open":[1540]},[[0,"click","onClick"]]]]],["smoothly-tab-switch",[[6,"smoothly-tab-switch",{"selectedElement":[32]},[[0,"expansionOpen","openChanged"]]]]],["smoothly-table",[[6,"smoothly-table",null,[[0,"sort","onSort"]]]]],["smoothly-table-cell",[[6,"smoothly-table-cell"]]],["smoothly-table-expandable-cell",[[6,"smoothly-table-expandable-cell",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-table-expandable-row",[[6,"smoothly-table-expandable-row",null,[[0,"expansionLoaded","onExpansionLoaded"],[0,"expansionOpen","onDetailsLoaded"]]]]],["smoothly-table-header",[[6,"smoothly-table-header",{"name":[1],"sortDirection":[1025,"sort-direction"]},[[0,"click","onClick"]]]]],["smoothly-table-row",[[6,"smoothly-table-row",{"align":[1],"open":[1540],"beginOpen":[32]},[[0,"click","onClick"]]]]],["smoothly-icon",[[2,"smoothly-icon",{"color":[513],"fill":[513],"name":[1],"size":[513],"toolTip":[1,"tool-tip"],"document":[32]}]]],["smoothly-input-date",[[6,"smoothly-input-date",{"value":[1025],"open":[1028],"max":[1025],"min":[1025],"disabled":[1028]},[[0,"dateSet","dateSetHandler"]]]]],["smoothly-notification",[[2,"smoothly-notification",{"notice":[16],"tick":[32]},[[0,"trigger","onTrigger"]]]]],["smoothly-menu-options",[[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",[[2,"smoothly-display",{"type":[1],"value":[8],"currency":[1],"country":[1]}]]],["smoothly-display-date-time",[[2,"smoothly-display-date-time",{"datetime":[1]}]]],["smoothly-tuple",[[0,"smoothly-tuple",{"tuple":[16]}]]],["smoothly-option",[[1,"smoothly-option",{"aliases":[513],"dataHighlight":[1540,"data-highlight"],"name":[1537],"value":[1537],"divider":[1540]}]]],["smoothly-spinner",[[2,"smoothly-spinner",{"active":[516],"size":[513]}]]],["smoothly-selector",[[6,"smoothly-selector",{"opened":[32],"selectedElement":[32],"missing":[32],"filter":[32]},[[0,"click","onClick"],[0,"itemSelected","onItemSelected"],[0,"keydown","onKeyDown"]]]]],["smoothly-item",[[6,"smoothly-item",{"value":[8],"selected":[1540],"filter":[64]},[[0,"click","onClick"]]]]],["smoothly-calendar",[[2,"smoothly-calendar",{"month":[1025],"value":[1025],"start":[1025],"end":[1025],"max":[1025],"min":[1025],"doubleInput":[516,"double-input"],"firstSelected":[32]}]]],["smoothly-input",[[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",[[2,"smoothly-input-month",{"value":[1025]}]]],["smoothly-trigger",[[6,"smoothly-trigger",{"color":[513],"expand":[513],"fill":[513],"disabled":[516],"type":[513],"name":[1],"value":[8]},[[0,"click","onClick"]]]]]], options);
|
|
16
|
+
return bootstrapLazy([["smoothly-google-font",[[2,"smoothly-google-font",{"value":[1]}]]],["smoothly-radio-group",[[4,"smoothly-radio-group",{"orientation":[513]}]]],["smoothly-reorder",[[0,"smoothly-reorder"]]],["smoothly-trigger-sink",[[6,"smoothly-trigger-sink",{"context":[16],"destination":[1],"filter":[1]},[[0,"trigger","TriggerListener"]]]]],["smoothly-trigger-source",[[6,"smoothly-trigger-source",{"listen":[1]}]]],["smoothly-accordion_51",[[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);
|
|
125
17
|
});
|
|
@@ -1,376 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { C as ClientIdentifier, M as Message, N as Notice, T as Trigger } from './index-c8b5d468.js';
|
|
3
|
-
export { G as GoogleFont } from './GoogleFont-8474516b.js';
|
|
4
|
-
import './index-02a70ac1.js';
|
|
5
|
-
|
|
6
|
-
var Hex;
|
|
7
|
-
(function (Hex) {
|
|
8
|
-
function is(value) {
|
|
9
|
-
const matchArray = (typeof value == "string" && value.match(/[0-9a-fA-F]/g)) || undefined;
|
|
10
|
-
return (typeof value == "string" &&
|
|
11
|
-
value.length > 3 &&
|
|
12
|
-
value[0] == "#" &&
|
|
13
|
-
((matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 3 || (matchArray === null || matchArray === void 0 ? void 0 : matchArray.length) == 6));
|
|
14
|
-
}
|
|
15
|
-
Hex.is = is;
|
|
16
|
-
})(Hex || (Hex = {}));
|
|
17
|
-
|
|
18
|
-
var Hsl;
|
|
19
|
-
(function (Hsl) {
|
|
20
|
-
function is(value) {
|
|
21
|
-
const values = typeof value == "string" && value.length > 11 ? value.substring(4, value.length - 1).split(",") : [];
|
|
22
|
-
return (typeof value == "string" &&
|
|
23
|
-
value.length > 11 &&
|
|
24
|
-
value.substr(0, 4) == "hsl(" &&
|
|
25
|
-
value.substr(value.length - 1, 1) == ")" &&
|
|
26
|
-
values.length == 3 &&
|
|
27
|
-
values.every((single, index) => {
|
|
28
|
-
var _a, _b;
|
|
29
|
-
let result = false;
|
|
30
|
-
if (index == 0)
|
|
31
|
-
result =
|
|
32
|
-
!Number.isNaN(single) &&
|
|
33
|
-
((_a = single.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == single.length &&
|
|
34
|
-
Number(single) >= 0 &&
|
|
35
|
-
Number(single) <= 360;
|
|
36
|
-
else {
|
|
37
|
-
const number = single.substr(0, single.length - 1);
|
|
38
|
-
result =
|
|
39
|
-
single[single.length - 1] == "%" &&
|
|
40
|
-
!Number.isNaN(number) &&
|
|
41
|
-
((_b = number.match(/[0-9]/g)) === null || _b === void 0 ? void 0 : _b.length) == number.length &&
|
|
42
|
-
Number(number) >= 0 &&
|
|
43
|
-
Number(number) <= 100;
|
|
44
|
-
}
|
|
45
|
-
return result;
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
Hsl.is = is;
|
|
49
|
-
})(Hsl || (Hsl = {}));
|
|
50
|
-
|
|
51
|
-
const Names = {
|
|
52
|
-
aliceblue: "#f0f8ff",
|
|
53
|
-
antiquewhite: "#faebd7",
|
|
54
|
-
aqua: "#00ffff",
|
|
55
|
-
aquamarine: "#7fffd4",
|
|
56
|
-
azure: "#f0ffff",
|
|
57
|
-
beige: "#f5f5dc",
|
|
58
|
-
bisque: "#ffe4c4",
|
|
59
|
-
black: "#000000",
|
|
60
|
-
blanchedalmond: "#ffebcd",
|
|
61
|
-
blue: "#0000ff",
|
|
62
|
-
blueviolet: "#8a2be2",
|
|
63
|
-
brown: "#a52a2a",
|
|
64
|
-
burlywood: "#deb887",
|
|
65
|
-
cadetblue: "#5f9ea0",
|
|
66
|
-
chartreuse: "#7fff00",
|
|
67
|
-
chocolate: "#d2691e",
|
|
68
|
-
coral: "#ff7f50",
|
|
69
|
-
cornflowerblue: "#6495ed",
|
|
70
|
-
cornsilk: "#fff8dc",
|
|
71
|
-
crimson: "#dc143c",
|
|
72
|
-
cyan: "#00ffff",
|
|
73
|
-
darkblue: "#00008b",
|
|
74
|
-
darkcyan: "#008b8b",
|
|
75
|
-
darkgoldenrod: "#b8860b",
|
|
76
|
-
darkgray: "#a9a9a9",
|
|
77
|
-
darkgreen: "#006400",
|
|
78
|
-
darkgrey: "#a9a9a9",
|
|
79
|
-
darkkhaki: "#bdb76b",
|
|
80
|
-
darkmagenta: "#8b008b",
|
|
81
|
-
darkolivegreen: "#556b2f",
|
|
82
|
-
darkorange: "#ff8c00",
|
|
83
|
-
darkorchid: "#9932cc",
|
|
84
|
-
darkred: "#8b0000",
|
|
85
|
-
darksalmon: "#e9967a",
|
|
86
|
-
darkseagreen: "#8fbc8f",
|
|
87
|
-
darkslateblue: "#483d8b",
|
|
88
|
-
darkslategray: "#2f4f4f",
|
|
89
|
-
darkslategrey: "#2f4f4f",
|
|
90
|
-
darkturquoise: "#00ced1",
|
|
91
|
-
darkviolet: "#9400d3",
|
|
92
|
-
deeppink: "#ff1493",
|
|
93
|
-
deepskyblue: "#00bfff",
|
|
94
|
-
dimgray: "#696969",
|
|
95
|
-
dimgrey: "#696969",
|
|
96
|
-
dodgerblue: "#1e90ff",
|
|
97
|
-
firebrick: "#b22222",
|
|
98
|
-
floralwhite: "#fffaf0",
|
|
99
|
-
forestgreen: "#228b22",
|
|
100
|
-
fuchsia: "#ff00ff",
|
|
101
|
-
gainsboro: "#dcdcdc",
|
|
102
|
-
ghostwhite: "#f8f8ff",
|
|
103
|
-
goldenrod: "#daa520",
|
|
104
|
-
gold: "#ffd700",
|
|
105
|
-
gray: "#808080",
|
|
106
|
-
green: "#008000",
|
|
107
|
-
greenyellow: "#adff2f",
|
|
108
|
-
grey: "#808080",
|
|
109
|
-
honeydew: "#f0fff0",
|
|
110
|
-
hotpink: "#ff69b4",
|
|
111
|
-
indianred: "#cd5c5c",
|
|
112
|
-
indigo: "#4b0082",
|
|
113
|
-
ivory: "#fffff0",
|
|
114
|
-
khaki: "#f0e68c",
|
|
115
|
-
lavenderblush: "#fff0f5",
|
|
116
|
-
lavender: "#e6e6fa",
|
|
117
|
-
lawngreen: "#7cfc00",
|
|
118
|
-
lemonchiffon: "#fffacd",
|
|
119
|
-
lightblue: "#add8e6",
|
|
120
|
-
lightcoral: "#f08080",
|
|
121
|
-
lightcyan: "#e0ffff",
|
|
122
|
-
lightgoldenrodyellow: "#fafad2",
|
|
123
|
-
lightgray: "#d3d3d3",
|
|
124
|
-
lightgreen: "#90ee90",
|
|
125
|
-
lightgrey: "#d3d3d3",
|
|
126
|
-
lightpink: "#ffb6c1",
|
|
127
|
-
lightsalmon: "#ffa07a",
|
|
128
|
-
lightseagreen: "#20b2aa",
|
|
129
|
-
lightskyblue: "#87cefa",
|
|
130
|
-
lightslategray: "#778899",
|
|
131
|
-
lightslategrey: "#778899",
|
|
132
|
-
lightsteelblue: "#b0c4de",
|
|
133
|
-
lightyellow: "#ffffe0",
|
|
134
|
-
lime: "#00ff00",
|
|
135
|
-
limegreen: "#32cd32",
|
|
136
|
-
linen: "#faf0e6",
|
|
137
|
-
magenta: "#ff00ff",
|
|
138
|
-
maroon: "#800000",
|
|
139
|
-
mediumaquamarine: "#66cdaa",
|
|
140
|
-
mediumblue: "#0000cd",
|
|
141
|
-
mediumorchid: "#ba55d3",
|
|
142
|
-
mediumpurple: "#9370db",
|
|
143
|
-
mediumseagreen: "#3cb371",
|
|
144
|
-
mediumslateblue: "#7b68ee",
|
|
145
|
-
mediumspringgreen: "#00fa9a",
|
|
146
|
-
mediumturquoise: "#48d1cc",
|
|
147
|
-
mediumvioletred: "#c71585",
|
|
148
|
-
midnightblue: "#191970",
|
|
149
|
-
mintcream: "#f5fffa",
|
|
150
|
-
mistyrose: "#ffe4e1",
|
|
151
|
-
moccasin: "#ffe4b5",
|
|
152
|
-
navajowhite: "#ffdead",
|
|
153
|
-
navy: "#000080",
|
|
154
|
-
oldlace: "#fdf5e6",
|
|
155
|
-
olive: "#808000",
|
|
156
|
-
olivedrab: "#6b8e23",
|
|
157
|
-
orange: "#ffa500",
|
|
158
|
-
orangered: "#ff4500",
|
|
159
|
-
orchid: "#da70d6",
|
|
160
|
-
palegoldenrod: "#eee8aa",
|
|
161
|
-
palegreen: "#98fb98",
|
|
162
|
-
paleturquoise: "#afeeee",
|
|
163
|
-
palevioletred: "#db7093",
|
|
164
|
-
papayawhip: "#ffefd5",
|
|
165
|
-
peachpuff: "#ffdab9",
|
|
166
|
-
peru: "#cd853f",
|
|
167
|
-
pink: "#ffc0cb",
|
|
168
|
-
plum: "#dda0dd",
|
|
169
|
-
powderblue: "#b0e0e6",
|
|
170
|
-
purple: "#800080",
|
|
171
|
-
rebeccapurple: "#663399",
|
|
172
|
-
red: "#ff0000",
|
|
173
|
-
rosybrown: "#bc8f8f",
|
|
174
|
-
royalblue: "#4169e1",
|
|
175
|
-
saddlebrown: "#8b4513",
|
|
176
|
-
salmon: "#fa8072",
|
|
177
|
-
sandybrown: "#f4a460",
|
|
178
|
-
seagreen: "#2e8b57",
|
|
179
|
-
seashell: "#fff5ee",
|
|
180
|
-
sienna: "#a0522d",
|
|
181
|
-
silver: "#c0c0c0",
|
|
182
|
-
skyblue: "#87ceeb",
|
|
183
|
-
slateblue: "#6a5acd",
|
|
184
|
-
slategray: "#708090",
|
|
185
|
-
slategrey: "#708090",
|
|
186
|
-
snow: "#fffafa",
|
|
187
|
-
springgreen: "#00ff7f",
|
|
188
|
-
steelblue: "#4682b4",
|
|
189
|
-
tan: "#d2b48c",
|
|
190
|
-
teal: "#008080",
|
|
191
|
-
thistle: "#d8bfd8",
|
|
192
|
-
tomato: "#ff6347",
|
|
193
|
-
turquoise: "#40e0d0",
|
|
194
|
-
violet: "#ee82ee",
|
|
195
|
-
wheat: "#f5deb3",
|
|
196
|
-
white: "#ffffff",
|
|
197
|
-
whitesmoke: "#f5f5f5",
|
|
198
|
-
yellow: "#ffff00",
|
|
199
|
-
yellowgreen: "#9acd32",
|
|
200
|
-
};
|
|
201
|
-
var Name;
|
|
202
|
-
(function (Name) {
|
|
203
|
-
Name.types = () => Object.keys(Names);
|
|
204
|
-
function is(value) {
|
|
205
|
-
return typeof value == "string" && Name.types().includes(value.toLowerCase());
|
|
206
|
-
}
|
|
207
|
-
Name.is = is;
|
|
208
|
-
})(Name || (Name = {}));
|
|
209
|
-
|
|
210
|
-
var Rgb;
|
|
211
|
-
(function (Rgb) {
|
|
212
|
-
function is(value) {
|
|
213
|
-
const values = typeof value == "string" && value.length > 9 ? value.substring(4, value.length - 1).split(",") : [];
|
|
214
|
-
return (typeof value == "string" &&
|
|
215
|
-
value.length > 9 &&
|
|
216
|
-
value.substr(0, 4) == "rgb(" &&
|
|
217
|
-
value.substr(value.length - 1, 1) == ")" &&
|
|
218
|
-
values.length == 3 &&
|
|
219
|
-
values.every((value) => {
|
|
220
|
-
var _a;
|
|
221
|
-
return !Number.isNaN(value) &&
|
|
222
|
-
((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
|
|
223
|
-
Number(value) >= 0 &&
|
|
224
|
-
Number(value) <= 255;
|
|
225
|
-
}));
|
|
226
|
-
}
|
|
227
|
-
Rgb.is = is;
|
|
228
|
-
})(Rgb || (Rgb = {}));
|
|
229
|
-
|
|
230
|
-
var CommaRgb;
|
|
231
|
-
(function (CommaRgb) {
|
|
232
|
-
function is(value) {
|
|
233
|
-
const values = typeof value == "string" ? value.split(",") : [];
|
|
234
|
-
return (values.length == 3 &&
|
|
235
|
-
values.every((value) => {
|
|
236
|
-
var _a;
|
|
237
|
-
return !Number.isNaN(value) &&
|
|
238
|
-
((_a = value.match(/[0-9]/g)) === null || _a === void 0 ? void 0 : _a.length) == value.length &&
|
|
239
|
-
Number(value) >= 0 &&
|
|
240
|
-
Number(value) <= 255;
|
|
241
|
-
}));
|
|
242
|
-
}
|
|
243
|
-
CommaRgb.is = is;
|
|
244
|
-
function from(color) {
|
|
245
|
-
let result;
|
|
246
|
-
const colorWithoutSpace = typeof color == "string" ? color.replace(/ /g, "").toLowerCase() : undefined;
|
|
247
|
-
if (!colorWithoutSpace)
|
|
248
|
-
result = undefined;
|
|
249
|
-
else if (CommaRgb.is(colorWithoutSpace))
|
|
250
|
-
result = colorWithoutSpace;
|
|
251
|
-
else if (Hex.is(colorWithoutSpace))
|
|
252
|
-
result = fromHex(colorWithoutSpace);
|
|
253
|
-
else if (Rgb.is(colorWithoutSpace))
|
|
254
|
-
result = fromRgb(colorWithoutSpace);
|
|
255
|
-
else if (Name.is(colorWithoutSpace))
|
|
256
|
-
result = fromHex(Names[colorWithoutSpace]);
|
|
257
|
-
else if (Hsl.is(colorWithoutSpace))
|
|
258
|
-
result = fromHsl(colorWithoutSpace);
|
|
259
|
-
return result;
|
|
260
|
-
}
|
|
261
|
-
CommaRgb.from = from;
|
|
262
|
-
function fromHex(hex) {
|
|
263
|
-
let result = "0,0,0";
|
|
264
|
-
if (hex.length == 7)
|
|
265
|
-
result = `${parseInt(hex.substr(1, 2), 16)},${parseInt(hex.substr(3, 2), 16)},${parseInt(hex.substr(5, 2), 16)}`;
|
|
266
|
-
else if (hex.length == 4)
|
|
267
|
-
result = fromHex(`#${hex[1]}${hex[1]}${hex[2]}${hex[2]}${hex[3]}${hex[3]}`);
|
|
268
|
-
return result;
|
|
269
|
-
}
|
|
270
|
-
CommaRgb.fromHex = fromHex;
|
|
271
|
-
function fromRgb(rgb) {
|
|
272
|
-
return rgb.substring(4, rgb.length - 1);
|
|
273
|
-
}
|
|
274
|
-
CommaRgb.fromRgb = fromRgb;
|
|
275
|
-
function fromHsl(hsl) {
|
|
276
|
-
let result = "";
|
|
277
|
-
let h, s, l;
|
|
278
|
-
let r, g, b;
|
|
279
|
-
const HSL = hsl
|
|
280
|
-
.substring(4, hsl.length - 1)
|
|
281
|
-
.split(",")
|
|
282
|
-
.map((value, index) => Number(index == 0 ? value : value.substr(0, value.length - 1)));
|
|
283
|
-
if (HSL.length == 3) {
|
|
284
|
-
h = HSL[0] / 360;
|
|
285
|
-
s = HSL[1] / 100;
|
|
286
|
-
l = HSL[2] / 100;
|
|
287
|
-
if (s == 0)
|
|
288
|
-
r = g = b = l;
|
|
289
|
-
else {
|
|
290
|
-
const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
|
291
|
-
const p = 2 * l - q;
|
|
292
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
293
|
-
g = hue2rgb(p, q, h);
|
|
294
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
295
|
-
}
|
|
296
|
-
result = `${Math.round(255 * r)},${Math.round(255 * g)},${Math.round(255 * b)}`;
|
|
297
|
-
}
|
|
298
|
-
return result;
|
|
299
|
-
}
|
|
300
|
-
CommaRgb.fromHsl = fromHsl;
|
|
301
|
-
function hue2rgb(p, q, t) {
|
|
302
|
-
let result = p;
|
|
303
|
-
if (t < 0)
|
|
304
|
-
t += 1;
|
|
305
|
-
if (t > 1)
|
|
306
|
-
t -= 1;
|
|
307
|
-
if (t < 1 / 6)
|
|
308
|
-
result = p + (q - p) * 6 * t;
|
|
309
|
-
else if (t < 1 / 2)
|
|
310
|
-
result = q;
|
|
311
|
-
else if (t < 2 / 3)
|
|
312
|
-
result = p + (q - p) * (2 / 3 - t) * 6;
|
|
313
|
-
return result;
|
|
314
|
-
}
|
|
315
|
-
})(CommaRgb || (CommaRgb = {}));
|
|
316
|
-
|
|
317
|
-
var Color;
|
|
318
|
-
(function (Color) {
|
|
319
|
-
function is(value) {
|
|
320
|
-
return (typeof value == "string" &&
|
|
321
|
-
(CommaRgb.is(value) || Hex.is(value) || Hsl.is(value) || Name.is(value) || Rgb.is(value)));
|
|
322
|
-
}
|
|
323
|
-
Color.is = is;
|
|
324
|
-
function from(value) {
|
|
325
|
-
return is(value) ? value : undefined;
|
|
326
|
-
}
|
|
327
|
-
Color.from = from;
|
|
328
|
-
Color.Names = Names;
|
|
329
|
-
Color.Name = Name;
|
|
330
|
-
Color.CommaRgb = CommaRgb;
|
|
331
|
-
Color.Rgb = Rgb;
|
|
332
|
-
Color.Hex = Hex;
|
|
333
|
-
Color.Hsl = Hsl;
|
|
334
|
-
})(Color || (Color = {}));
|
|
335
|
-
|
|
336
|
-
function reduce(types, value) {
|
|
337
|
-
return types.reduce((r, c) => typeof value == "object" && value != null && typeof value[c] == "string"
|
|
338
|
-
? Object.assign(Object.assign({}, r), { [c]: value[c] }) : r, {});
|
|
339
|
-
}
|
|
340
|
-
var Cosmetic;
|
|
341
|
-
(function (Cosmetic) {
|
|
342
|
-
Cosmetic.types = Cosmetic;
|
|
343
|
-
function from(value) {
|
|
344
|
-
let result = {};
|
|
345
|
-
if (typeof value == "object" && value) {
|
|
346
|
-
result = {
|
|
347
|
-
text: reduce(["background", "color"], value.text),
|
|
348
|
-
border: reduce(["background", "color", "style", "radius", "width"], value.border),
|
|
349
|
-
gap: typeof value.gap == "string" ? value.gap : undefined,
|
|
350
|
-
dangerColor: typeof value.dangerColor == "string"
|
|
351
|
-
? value.dangerColor
|
|
352
|
-
: typeof value.danger_color == "string"
|
|
353
|
-
? value.danger_color
|
|
354
|
-
: undefined,
|
|
355
|
-
fontFamily: typeof value.fontFamily == "string"
|
|
356
|
-
? value.fontFamily
|
|
357
|
-
: typeof value.font_family == "string"
|
|
358
|
-
? value.font_family
|
|
359
|
-
: undefined,
|
|
360
|
-
background: typeof value.background == "string" ? value.background : undefined,
|
|
361
|
-
};
|
|
362
|
-
Object.keys(result).forEach((key) => {
|
|
363
|
-
var _a;
|
|
364
|
-
if (result[key] == undefined ||
|
|
365
|
-
(typeof result[key] == "object" && result[key] && Object.keys((_a = result[key]) !== null && _a !== void 0 ? _a : {}).length == 0)) {
|
|
366
|
-
delete result[key];
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
return result;
|
|
371
|
-
}
|
|
372
|
-
Cosmetic.from = from;
|
|
373
|
-
Cosmetic.Color = Color;
|
|
374
|
-
})(Cosmetic || (Cosmetic = {}));
|
|
375
|
-
|
|
376
|
-
export { Cosmetic };
|
|
1
|
+
export{A as App,N as Notice}from"./p-6ca0d36c.js";import{I as e}from"./p-7a30d9b8.js";export{M as Message,T as Trigger}from"./p-7a30d9b8.js";export{G as GoogleFont}from"./p-bd478a53.js";import"./p-0cba3e3d.js";class f{constructor(){}static get value(){return f.valueCache=localStorage.getItem("clientIdentifier")||void 0,f.valueCache||(f.valueCache=e.generate(12),localStorage.setItem("clientIdentifier",f.valueCache)),f.valueCache}}var r,a;!function(e){e.is=function(e){const f="string"==typeof e&&e.match(/[0-9a-fA-F]/g)||void 0;return"string"==typeof e&&e.length>3&&"#"==e[0]&&(3==(null==f?void 0:f.length)||6==(null==f?void 0:f.length))}}(r||(r={})),function(e){e.is=function(e){const f="string"==typeof e&&e.length>11?e.substring(4,e.length-1).split(","):[];return"string"==typeof e&&e.length>11&&"hsl("==e.substr(0,4)&&")"==e.substr(e.length-1,1)&&3==f.length&&f.every(((e,f)=>{var r,a;let t=!1;if(0==f)t=!Number.isNaN(e)&&(null===(r=e.match(/[0-9]/g))||void 0===r?void 0:r.length)==e.length&&Number(e)>=0&&Number(e)<=360;else{const f=e.substr(0,e.length-1);t="%"==e[e.length-1]&&!Number.isNaN(f)&&(null===(a=f.match(/[0-9]/g))||void 0===a?void 0:a.length)==f.length&&Number(f)>=0&&Number(f)<=100}return t}))}}(a||(a={}));const t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};var n,o,d,i,l;function c(e,f){return e.reduce(((e,r)=>"object"==typeof f&&null!=f&&"string"==typeof f[r]?Object.assign(Object.assign({},e),{[r]:f[r]}):e),{})}!function(e){e.types=()=>Object.keys(t),e.is=function(f){return"string"==typeof f&&e.types().includes(f.toLowerCase())}}(n||(n={})),function(e){e.is=function(e){const f="string"==typeof e&&e.length>9?e.substring(4,e.length-1).split(","):[];return"string"==typeof e&&e.length>9&&"rgb("==e.substr(0,4)&&")"==e.substr(e.length-1,1)&&3==f.length&&f.every((e=>{var f;return!Number.isNaN(e)&&(null===(f=e.match(/[0-9]/g))||void 0===f?void 0:f.length)==e.length&&Number(e)>=0&&Number(e)<=255}))}}(o||(o={})),function(e){function f(e){let r="0,0,0";return 7==e.length?r=`${parseInt(e.substr(1,2),16)},${parseInt(e.substr(3,2),16)},${parseInt(e.substr(5,2),16)}`:4==e.length&&(r=f(`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`)),r}function d(e){return e.substring(4,e.length-1)}function i(e){let f,r,a,t,n,o,d="";const i=e.substring(4,e.length-1).split(",").map(((e,f)=>Number(0==f?e:e.substr(0,e.length-1))));if(3==i.length){if(f=i[0]/360,r=i[1]/100,a=i[2]/100,0==r)t=n=o=a;else{const e=a<.5?a*(1+r):a+r-a*r,d=2*a-e;t=l(d,e,f+1/3),n=l(d,e,f),o=l(d,e,f-1/3)}d=`${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*o)}`}return d}function l(e,f,r){let a=e;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?a=e+6*(f-e)*r:r<.5?a=f:r<2/3&&(a=e+(f-e)*(2/3-r)*6),a}e.is=function(e){const f="string"==typeof e?e.split(","):[];return 3==f.length&&f.every((e=>{var f;return!Number.isNaN(e)&&(null===(f=e.match(/[0-9]/g))||void 0===f?void 0:f.length)==e.length&&Number(e)>=0&&Number(e)<=255}))},e.from=function(l){let c;const u="string"==typeof l?l.replace(/ /g,"").toLowerCase():void 0;return u?e.is(u)?c=u:r.is(u)?c=f(u):o.is(u)?c=d(u):n.is(u)?c=f(t[u]):a.is(u)&&(c=i(u)):c=void 0,c},e.fromHex=f,e.fromRgb=d,e.fromHsl=i}(d||(d={})),function(e){function f(e){return"string"==typeof e&&(d.is(e)||r.is(e)||a.is(e)||n.is(e)||o.is(e))}e.is=f,e.from=function(e){return f(e)?e:void 0},e.Names=t,e.Name=n,e.CommaRgb=d,e.Rgb=o,e.Hex=r,e.Hsl=a}(i||(i={})),function(e){e.types=e,e.from=function(e){let f={};return"object"==typeof e&&e&&(f={text:c(["background","color"],e.text),border:c(["background","color","style","radius","width"],e.border),gap:"string"==typeof e.gap?e.gap:void 0,dangerColor:"string"==typeof e.dangerColor?e.dangerColor:"string"==typeof e.danger_color?e.danger_color:void 0,fontFamily:"string"==typeof e.fontFamily?e.fontFamily:"string"==typeof e.font_family?e.font_family:void 0,background:"string"==typeof e.background?e.background:void 0},Object.keys(f).forEach((e=>{var r;(null==f[e]||"object"==typeof f[e]&&f[e]&&0==Object.keys(null!==(r=f[e])&&void 0!==r?r:{}).length)&&delete f[e]}))),f},e.Color=i}(l||(l={}));export{f as ClientIdentifier,l as Cosmetic}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,a as i}from"./p-0cba3e3d.js";const h=class{constructor(i){t(this,i),this.reorder=s(this,"reorder",7)}get children(){let t=[];if(this.childrenCache)t=this.childrenCache;else{for(let s=0;s<this.element.children.length;s++){const i=this.element.children[s];if(i instanceof HTMLElement){const s=i.getBoundingClientRect();t.push({top:s.top,middle:s.top+s.height/2,bottom:s.bottom,element:i})}}this.childrenCache=t}return t}onMouseDown(t){if(!this.move&&this.element.children.length>1){this.bounds=this.element.getBoundingClientRect(),this.childrenCache=void 0;const s=this.getCurrentIndex(t.clientY);this.dragged=Object.assign(Object.assign({},this.children[s]),{startY:t.clientY,offsetY:t.clientY-this.children[s].middle,index:s,height:s<this.children.length-1?this.children[s+1].top-this.children[s].top:this.children[s].bottom-this.children[s-1].bottom}),this.dragged.element.className+=" dragging"}}onMouseMove(t){if(this.dragged&&this.bounds&&t.clientY>=this.bounds.top&&t.clientY<=this.bounds.bottom){const s=this.getCurrentIndex(t.clientY-this.dragged.offsetY);this.translate(this.dragged.index,s,t.clientY-this.dragged.startY)}}onMouseUp(t){if(this.dragged){this.dragged.element.className=this.dragged.element.className.replace(" dragging","");const s=this.getCurrentIndex(t.clientY-this.dragged.offsetY);this.translate(this.dragged.index,s,this.children[s].top-this.dragged.top),this.move={from:this.dragged.index,to:s},this.dragged=void 0,window.setTimeout((()=>{if(this.move){const t=[...this.children.map((t=>t.element))],s=t.splice(this.move.from,1);t.splice(this.move.to,0,...s),t.forEach((t=>this.element.removeChild(t))),t.forEach((t=>{t.style.transform="",this.element.appendChild(t)})),this.reorder.emit([this.move.from,this.move.to]),this.move=void 0}}),500)}}translate(t,s,i){for(let h=0;h<this.children.length;h++){let o;this.dragged&&(o=t<s&&h>t&&h<=s?-this.dragged.height:t>s&&h<t&&h>=s?this.dragged.height:h==t?i:0,this.children[h].element.style.transform=`translateY(${o}px)`)}}getCurrentIndex(t){return this.children.findIndex((s=>t<s.bottom))}componentDidLoad(){this.element.childNodes.forEach((t=>{t.addEventListener("mousedown",(t=>this.onMouseDown(t))),t.addEventListener("mousemove",(t=>this.onMouseMove(t))),t.addEventListener("mouseup",(t=>this.onMouseUp(t)))}))}get element(){return i(this)}};h.style="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}";export{h as smoothly_reorder}
|