@esri/solutions-components 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/t9n/solution-config-modal/resources.json +22 -0
- package/dist/assets/t9n/solution-config-modal/resources_en.json +22 -0
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js +18 -401
- package/dist/cjs/calcite-action-menu_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-action_2.cjs.entry.js +423 -71
- package/dist/cjs/calcite-action_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calcite-loader.cjs.entry.js +97 -0
- package/dist/cjs/calcite-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-configuration.cjs.entry.js → calcite-modal_2.cjs.entry.js} +451 -13
- package/dist/cjs/calcite-modal_2.cjs.entry.js.map +1 -0
- package/dist/cjs/{calcite-shell-panel_14.cjs.entry.js → calcite-panel_12.cjs.entry.js} +455 -709
- package/dist/cjs/calcite-panel_12.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/solution-config-modal.cjs.entry.js +131 -0
- package/dist/cjs/solution-config-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-contents_3.cjs.entry.js → solution-contents_7.cjs.entry.js} +664 -5
- package/dist/cjs/solution-contents_7.cjs.entry.js.map +1 -0
- package/dist/cjs/{solution-store-893499a5.js → solution-store-09b3fc53.js} +4 -6
- package/dist/cjs/solution-store-09b3fc53.js.map +1 -0
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.css +91 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js +245 -0
- package/dist/collection/components/solution-config-modal/solution-config-modal.js.map +1 -0
- package/dist/collection/components/solution-configuration/solution-configuration.js +23 -17
- package/dist/collection/components/solution-configuration/solution-configuration.js.map +1 -1
- package/dist/collection/components/solution-item/solution-item.js +0 -2
- package/dist/collection/components/solution-item/solution-item.js.map +1 -1
- package/dist/collection/components/solution-item-details/solution-item-details.js +0 -13
- package/dist/collection/components/solution-item-details/solution-item-details.js.map +1 -1
- package/dist/collection/utils/solution-store.js +3 -5
- package/dist/collection/utils/solution-store.js.map +1 -1
- package/dist/collection/utils/solution-store.ts +3 -5
- package/dist/esm/buffer-tools_6.entry.js +2 -2
- package/dist/esm/calcite-action-bar_6.entry.js +2 -2
- package/dist/esm/calcite-action-menu_2.entry.js +20 -403
- package/dist/esm/calcite-action-menu_2.entry.js.map +1 -1
- package/dist/esm/calcite-action_2.entry.js +424 -72
- package/dist/esm/calcite-action_2.entry.js.map +1 -1
- package/dist/esm/calcite-combobox_3.entry.js +2 -2
- package/dist/esm/calcite-loader.entry.js +93 -0
- package/dist/esm/calcite-loader.entry.js.map +1 -0
- package/dist/esm/{solution-configuration.entry.js → calcite-modal_2.entry.js} +453 -16
- package/dist/esm/calcite-modal_2.entry.js.map +1 -0
- package/dist/esm/{calcite-shell-panel_14.entry.js → calcite-panel_12.entry.js} +454 -706
- package/dist/esm/calcite-panel_12.entry.js.map +1 -0
- package/dist/esm/config-layer-picker.entry.js +2 -2
- package/dist/esm/{interfaces-e2a2064d.js → interfaces-1bdfc3a8.js} +2 -2
- package/dist/esm/{interfaces-e2a2064d.js.map → interfaces-1bdfc3a8.js.map} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{mapViewUtils-09f1e7bd.js → mapViewUtils-809947c8.js} +2 -2
- package/dist/esm/{mapViewUtils-09f1e7bd.js.map → mapViewUtils-809947c8.js.map} +1 -1
- package/dist/esm/public-notification.entry.js +2 -2
- package/dist/esm/solution-config-modal.entry.js +127 -0
- package/dist/esm/solution-config-modal.entry.js.map +1 -0
- package/dist/esm/{solution-contents_3.entry.js → solution-contents_7.entry.js} +661 -6
- package/dist/esm/solution-contents_7.entry.js.map +1 -0
- package/dist/esm/{solution-store-0c58c852.js → solution-store-d8519c64.js} +5 -7
- package/dist/esm/solution-store-d8519c64.js.map +1 -0
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/{p-be1ed982.entry.js → p-11068040.entry.js} +3 -3
- package/dist/solutions-components/{p-be1ed982.entry.js.map → p-11068040.entry.js.map} +0 -0
- package/dist/solutions-components/{p-659edb14.js → p-2910dd9e.js} +5 -7
- package/dist/{cjs/solution-store-893499a5.js.map → solutions-components/p-2910dd9e.js.map} +1 -1
- package/dist/solutions-components/{p-291fd295.entry.js → p-30810b45.entry.js} +3 -3
- package/dist/solutions-components/{p-291fd295.entry.js.map → p-30810b45.entry.js.map} +0 -0
- package/dist/solutions-components/p-38ddadf2.entry.js +342 -0
- package/dist/solutions-components/p-38ddadf2.entry.js.map +1 -0
- package/dist/solutions-components/{p-77c75f3a.entry.js → p-5b20090f.entry.js} +661 -6
- package/dist/solutions-components/p-5b20090f.entry.js.map +1 -0
- package/dist/solutions-components/{p-9393631c.entry.js → p-9ef1328a.entry.js} +3 -3
- package/dist/solutions-components/{p-9393631c.entry.js.map → p-9ef1328a.entry.js.map} +0 -0
- package/dist/solutions-components/{p-984cb687.entry.js → p-a1786d11.entry.js} +454 -706
- package/dist/solutions-components/p-a1786d11.entry.js.map +1 -0
- package/dist/solutions-components/{p-fe0fdd8b.js → p-c20bd963.js} +2 -2
- package/dist/solutions-components/{p-fe0fdd8b.js.map → p-c20bd963.js.map} +1 -1
- package/dist/solutions-components/p-c5721b0f.entry.js +127 -0
- package/dist/solutions-components/p-c5721b0f.entry.js.map +1 -0
- package/dist/solutions-components/{p-24d75151.entry.js → p-c818e661.entry.js} +3 -3
- package/dist/solutions-components/{p-24d75151.entry.js.map → p-c818e661.entry.js.map} +0 -0
- package/dist/solutions-components/{p-90629c1d.entry.js → p-cf59eb16.entry.js} +453 -16
- package/dist/solutions-components/p-cf59eb16.entry.js.map +1 -0
- package/dist/solutions-components/p-e405ebe8.entry.js +93 -0
- package/dist/solutions-components/p-e405ebe8.entry.js.map +1 -0
- package/dist/solutions-components/{p-77e6b03c.entry.js → p-e6fb9cde.entry.js} +3 -3
- package/dist/solutions-components/{p-77e6b03c.entry.js.map → p-e6fb9cde.entry.js.map} +0 -0
- package/dist/solutions-components/{p-97c4a268.entry.js → p-ef6f9e24.entry.js} +113 -229
- package/dist/solutions-components/p-ef6f9e24.entry.js.map +1 -0
- package/dist/solutions-components/{p-6b9dc092.js → p-f04fdb9a.js} +2 -2
- package/dist/solutions-components/{p-6b9dc092.js.map → p-f04fdb9a.js.map} +1 -1
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/solution-store.ts +3 -5
- package/dist/solutions-components_commit.txt +8 -8
- package/dist/types/components/solution-config-modal/solution-config-modal.d.ts +69 -0
- package/dist/types/components/solution-configuration/solution-configuration.d.ts +4 -2
- package/dist/types/components/solution-item-details/solution-item-details.d.ts +0 -1
- package/dist/types/components.d.ts +43 -5
- package/dist/types/preact.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/calcite-modal.cjs.entry.js +0 -449
- package/dist/cjs/calcite-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-panel_2.cjs.entry.js +0 -439
- package/dist/cjs/calcite-panel_2.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-scrim.cjs.entry.js +0 -64
- package/dist/cjs/calcite-scrim.cjs.entry.js.map +0 -1
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-configuration.cjs.entry.js.map +0 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js.map +0 -1
- package/dist/esm/calcite-modal.entry.js +0 -445
- package/dist/esm/calcite-modal.entry.js.map +0 -1
- package/dist/esm/calcite-panel_2.entry.js +0 -434
- package/dist/esm/calcite-panel_2.entry.js.map +0 -1
- package/dist/esm/calcite-scrim.entry.js +0 -60
- package/dist/esm/calcite-scrim.entry.js.map +0 -1
- package/dist/esm/calcite-shell-panel_14.entry.js.map +0 -1
- package/dist/esm/solution-configuration.entry.js.map +0 -1
- package/dist/esm/solution-contents_3.entry.js.map +0 -1
- package/dist/esm/solution-store-0c58c852.js.map +0 -1
- package/dist/solutions-components/p-0fda7d9e.entry.js +0 -434
- package/dist/solutions-components/p-0fda7d9e.entry.js.map +0 -1
- package/dist/solutions-components/p-2ff754ce.entry.js +0 -257
- package/dist/solutions-components/p-2ff754ce.entry.js.map +0 -1
- package/dist/solutions-components/p-30a6199a.entry.js +0 -445
- package/dist/solutions-components/p-30a6199a.entry.js.map +0 -1
- package/dist/solutions-components/p-659edb14.js.map +0 -1
- package/dist/solutions-components/p-77c75f3a.entry.js.map +0 -1
- package/dist/solutions-components/p-90629c1d.entry.js.map +0 -1
- package/dist/solutions-components/p-97c4a268.entry.js.map +0 -1
- package/dist/solutions-components/p-984cb687.entry.js.map +0 -1
- package/dist/solutions-components/p-f5268b4f.entry.js +0 -60
- package/dist/solutions-components/p-f5268b4f.entry.js.map +0 -1
@@ -1,257 +0,0 @@
|
|
1
|
-
/*!
|
2
|
-
* Copyright 2022 Esri
|
3
|
-
* Licensed under the Apache License, Version 2.0
|
4
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
-
*/
|
6
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, f as forceUpdate } from './p-58c69df2.js';
|
7
|
-
import { c as createObserver } from './p-9a9955db.js';
|
8
|
-
import { u as updateHostInteraction } from './p-7daea1df.js';
|
9
|
-
import { t as toAriaBoolean } from './p-32a67cb2.js';
|
10
|
-
import { g as guid } from './p-a80b3880.js';
|
11
|
-
import './p-729708a3.js';
|
12
|
-
|
13
|
-
/*!
|
14
|
-
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
15
|
-
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
16
|
-
* v1.0.0-beta.97
|
17
|
-
*/
|
18
|
-
const CSS = {
|
19
|
-
button: "button",
|
20
|
-
buttonTextVisible: "button--text-visible",
|
21
|
-
buttonCompact: "button--compact",
|
22
|
-
iconContainer: "icon-container",
|
23
|
-
slotContainer: "slot-container",
|
24
|
-
slotContainerHidden: "slot-container--hidden",
|
25
|
-
textContainer: "text-container",
|
26
|
-
textContainerVisible: "text-container--visible"
|
27
|
-
};
|
28
|
-
const TEXT = {
|
29
|
-
loading: "Loading"
|
30
|
-
};
|
31
|
-
const SLOTS = {
|
32
|
-
tooltip: "tooltip"
|
33
|
-
};
|
34
|
-
|
35
|
-
const actionCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}.button:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}.button:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}.button:active{background-color:var(--calcite-ui-foreground-3)}.button .icon-container{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}.button .text-container{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}.button .text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{-webkit-margin-end:0.5rem;margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{-webkit-margin-end:0.75rem;margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus,:host([active][loading]) .button{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([active]) .button:active{background-color:var(--calcite-ui-foreground-1)}:host([appearance=clear]) .button,:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host([appearance=clear]) .button:hover,:host([appearance=clear]) .button:focus,:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}:host([active][appearance=clear]) .button,:host([active][appearance=clear]) .button:hover,:host([active][appearance=clear]) .button:focus,:host([active][appearance=transparent]) .button,:host([active][appearance=transparent]) .button:hover,:host([active][appearance=transparent]) .button:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}:host([appearance=clear][loading]) .button,:host([appearance=clear][disabled]) .button,:host([appearance=transparent][loading]) .button,:host([appearance=transparent][disabled]) .button{background-color:transparent}:host([loading]) .button,:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-ui-foreground-1)}:host([loading]) .button .text-container,:host([loading]) .button:hover .text-container,:host([loading]) .button:focus .text-container{opacity:var(--calcite-ui-opacity-disabled)}:host([loading]) calcite-loader[inline]{color:var(--calcite-ui-text-3);-webkit-margin-end:0px;margin-inline-end:0px}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}:host([disabled][active]) .button,:host([disabled][active]) .button:hover,:host([disabled][active]) .button:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}:host([indicator]) .button::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}:host([indicator]) .button--text-visible::after{inset-block-end:auto}:host([indicator]) .button--text-visible .text-container--visible{-webkit-margin-end:1rem;margin-inline-end:1rem}:host([indicator]) .button:hover::after,:host([indicator]) .button:focus::after{border-color:var(--calcite-ui-foreground-1)}:host([indicator][scale=s]) .button::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}:host([indicator][scale=s]) .button--text-visible::after{inset-block-end:auto;inset-inline-end:0.5rem}:host([indicator][active]) .button::after{border-color:var(--calcite-ui-foreground-3)}";
|
36
|
-
|
37
|
-
const Action = class {
|
38
|
-
constructor(hostRef) {
|
39
|
-
registerInstance(this, hostRef);
|
40
|
-
this.calciteActionClick = createEvent(this, "calciteActionClick", 6);
|
41
|
-
// --------------------------------------------------------------------------
|
42
|
-
//
|
43
|
-
// Properties
|
44
|
-
//
|
45
|
-
// --------------------------------------------------------------------------
|
46
|
-
/**
|
47
|
-
* When `true`, the component is highlighted.
|
48
|
-
*/
|
49
|
-
this.active = false;
|
50
|
-
/** Specifies the appearance of the component. */
|
51
|
-
this.appearance = "solid";
|
52
|
-
/**
|
53
|
-
* When `true`, the side padding of the component is reduced. Compact mode is used internally by components, e.g. `calcite-block-section`.
|
54
|
-
*/
|
55
|
-
this.compact = false;
|
56
|
-
/**
|
57
|
-
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
58
|
-
*/
|
59
|
-
this.disabled = false;
|
60
|
-
/**
|
61
|
-
* When `true`, indicates unread changes.
|
62
|
-
*/
|
63
|
-
this.indicator = false;
|
64
|
-
/**
|
65
|
-
* Specifies the text label to display while loading.
|
66
|
-
*
|
67
|
-
* @default "Loading"
|
68
|
-
*/
|
69
|
-
this.intlLoading = TEXT.loading;
|
70
|
-
/**
|
71
|
-
* When `true`, a busy indicator is displayed.
|
72
|
-
*/
|
73
|
-
this.loading = false;
|
74
|
-
/**
|
75
|
-
* Specifies the size of the component.
|
76
|
-
*/
|
77
|
-
this.scale = "m";
|
78
|
-
/**
|
79
|
-
* Indicates whether the text is displayed.
|
80
|
-
*/
|
81
|
-
this.textEnabled = false;
|
82
|
-
this.mutationObserver = createObserver("mutation", () => forceUpdate(this));
|
83
|
-
// --------------------------------------------------------------------------
|
84
|
-
//
|
85
|
-
// Private Methods
|
86
|
-
//
|
87
|
-
// --------------------------------------------------------------------------
|
88
|
-
this.handleTooltipSlotChange = (event) => {
|
89
|
-
const tooltips = event.target
|
90
|
-
.assignedElements({
|
91
|
-
flatten: true
|
92
|
-
})
|
93
|
-
.filter((el) => el === null || el === void 0 ? void 0 : el.matches("calcite-tooltip"));
|
94
|
-
const tooltip = tooltips[0];
|
95
|
-
if (tooltip) {
|
96
|
-
tooltip.referenceElement = this.buttonEl;
|
97
|
-
}
|
98
|
-
};
|
99
|
-
this.calciteActionClickHandler = () => {
|
100
|
-
if (!this.disabled) {
|
101
|
-
this.calciteActionClick.emit();
|
102
|
-
}
|
103
|
-
};
|
104
|
-
}
|
105
|
-
// --------------------------------------------------------------------------
|
106
|
-
//
|
107
|
-
// Lifecycle
|
108
|
-
//
|
109
|
-
// --------------------------------------------------------------------------
|
110
|
-
connectedCallback() {
|
111
|
-
var _a;
|
112
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
113
|
-
}
|
114
|
-
disconnectedCallback() {
|
115
|
-
var _a;
|
116
|
-
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
117
|
-
}
|
118
|
-
componentDidRender() {
|
119
|
-
updateHostInteraction(this);
|
120
|
-
}
|
121
|
-
// --------------------------------------------------------------------------
|
122
|
-
//
|
123
|
-
// Methods
|
124
|
-
//
|
125
|
-
// --------------------------------------------------------------------------
|
126
|
-
/** Sets focus on the component. */
|
127
|
-
async setFocus() {
|
128
|
-
var _a;
|
129
|
-
(_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();
|
130
|
-
}
|
131
|
-
// --------------------------------------------------------------------------
|
132
|
-
//
|
133
|
-
// Render Methods
|
134
|
-
//
|
135
|
-
// --------------------------------------------------------------------------
|
136
|
-
renderTextContainer() {
|
137
|
-
const { text, textEnabled } = this;
|
138
|
-
const textContainerClasses = {
|
139
|
-
[CSS.textContainer]: true,
|
140
|
-
[CSS.textContainerVisible]: textEnabled
|
141
|
-
};
|
142
|
-
return text ? (h("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
143
|
-
}
|
144
|
-
renderIconContainer() {
|
145
|
-
var _a;
|
146
|
-
const { loading, icon, scale, el, intlLoading } = this;
|
147
|
-
const iconScale = scale === "l" ? "m" : "s";
|
148
|
-
const loaderScale = scale === "l" ? "l" : "m";
|
149
|
-
const calciteLoaderNode = loading ? (h("calcite-loader", { active: true, inline: true, label: intlLoading, scale: loaderScale })) : null;
|
150
|
-
const calciteIconNode = icon ? h("calcite-icon", { icon: icon, scale: iconScale }) : null;
|
151
|
-
const iconNode = calciteLoaderNode || calciteIconNode;
|
152
|
-
const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);
|
153
|
-
const slotContainerNode = (h("div", { class: {
|
154
|
-
[CSS.slotContainer]: true,
|
155
|
-
[CSS.slotContainerHidden]: loading
|
156
|
-
} }, h("slot", null)));
|
157
|
-
return hasIconToDisplay ? (h("div", { "aria-hidden": "true", class: CSS.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
158
|
-
}
|
159
|
-
render() {
|
160
|
-
const { compact, disabled, loading, textEnabled, label, text } = this;
|
161
|
-
const ariaLabel = label || text;
|
162
|
-
const buttonClasses = {
|
163
|
-
[CSS.button]: true,
|
164
|
-
[CSS.buttonTextVisible]: textEnabled,
|
165
|
-
[CSS.buttonCompact]: compact
|
166
|
-
};
|
167
|
-
return (h(Host, { onClick: this.calciteActionClickHandler }, h("button", { "aria-busy": toAriaBoolean(loading), "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), h("slot", { name: SLOTS.tooltip, onSlotchange: this.handleTooltipSlotChange })));
|
168
|
-
}
|
169
|
-
get el() { return getElement(this); }
|
170
|
-
};
|
171
|
-
Action.style = actionCss;
|
172
|
-
|
173
|
-
const loaderCss = "@charset \"UTF-8\";@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:none}:host([active]){display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);-webkit-margin-before:calc(var(--calcite-loader-size) + 1.5rem);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;-webkit-margin-start:calc(var(--calcite-loader-size) / 2 * -1);margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;-webkit-margin-start:calc(var(--calcite-loader-size) / 2 * -1);margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);transform:scale(1, 1)}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear;animation-name:loader-clockwise}@supports (display: grid){.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}}:host([type=determinate]){animation:none;stroke:var(--calcite-ui-border-3)}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);-webkit-margin-end:calc(var(--calcite-loader-size-inline) * 0.5);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([active][inline]){display:inline-block}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 2.4)}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-83.7757333333%}100%{stroke-dasharray:27.9252444444% 251.3272%;stroke-dashoffset:-279.2524444444%}}.loader__svg--2{stroke-dasharray:55.8504888889% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.2)}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-97.7383555556%}100%{stroke-dasharray:55.8504888889% 223.4019555556%;stroke-dashoffset:-279.2524444444%}}.loader__svg--3{stroke-dasharray:13.9626222222% 139.6262222222%;animation-duration:calc(var(--calcite-internal-animation-timing-slow) * 3.867)}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222% 139.6262222222%;stroke-dashoffset:-76.7944222222%}100%{stroke-dasharray:13.9626222222% 265.2898222222%;stroke-dashoffset:-279.2524444444%}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
174
|
-
|
175
|
-
const Loader = class {
|
176
|
-
constructor(hostRef) {
|
177
|
-
registerInstance(this, hostRef);
|
178
|
-
//--------------------------------------------------------------------------
|
179
|
-
//
|
180
|
-
// Properties
|
181
|
-
//
|
182
|
-
//--------------------------------------------------------------------------
|
183
|
-
/** When `true`, the component is active. */
|
184
|
-
this.active = false;
|
185
|
-
/** When `true`, displays smaller and appears to the left of the text. */
|
186
|
-
this.inline = false;
|
187
|
-
/** Specifies the size of the component. */
|
188
|
-
this.scale = "m";
|
189
|
-
/** The component's value. Valid only for `"determinate"` indicators. Percent complete of 100. */
|
190
|
-
this.value = 0;
|
191
|
-
/** Text that displays under the component's indicator. */
|
192
|
-
this.text = "";
|
193
|
-
/**
|
194
|
-
* Disables spacing around the component.
|
195
|
-
*
|
196
|
-
* @deprecated Use `--calcite-loader-padding` CSS variable instead.
|
197
|
-
*/
|
198
|
-
this.noPadding = false;
|
199
|
-
}
|
200
|
-
//--------------------------------------------------------------------------
|
201
|
-
//
|
202
|
-
// Lifecycle
|
203
|
-
//
|
204
|
-
//--------------------------------------------------------------------------
|
205
|
-
render() {
|
206
|
-
const { el, inline, label, scale, text, type, value } = this;
|
207
|
-
const id = el.id || guid();
|
208
|
-
const radiusRatio = 0.45;
|
209
|
-
const size = inline ? this.getInlineSize(scale) : this.getSize(scale);
|
210
|
-
const radius = size * radiusRatio;
|
211
|
-
const viewbox = `0 0 ${size} ${size}`;
|
212
|
-
const isDeterminate = type === "determinate";
|
213
|
-
const circumference = 2 * radius * Math.PI;
|
214
|
-
const progress = (value / 100) * circumference;
|
215
|
-
const remaining = circumference - progress;
|
216
|
-
const valueNow = Math.floor(value);
|
217
|
-
const hostAttributes = {
|
218
|
-
"aria-valuenow": valueNow,
|
219
|
-
"aria-valuemin": 0,
|
220
|
-
"aria-valuemax": 100,
|
221
|
-
complete: valueNow === 100
|
222
|
-
};
|
223
|
-
const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };
|
224
|
-
const determinateStyle = { "stroke-dasharray": `${progress} ${remaining}` };
|
225
|
-
return (h(Host, Object.assign({ "aria-label": label, id: id, role: "progressbar" }, (isDeterminate ? hostAttributes : {})), h("div", { class: "loader__svgs" }, h("svg", { class: "loader__svg loader__svg--1", viewBox: viewbox }, h("circle", Object.assign({}, svgAttributes))), h("svg", { class: "loader__svg loader__svg--2", viewBox: viewbox }, h("circle", Object.assign({}, svgAttributes))), h("svg", Object.assign({ class: "loader__svg loader__svg--3", viewBox: viewbox }, (isDeterminate ? { style: determinateStyle } : {})), h("circle", Object.assign({}, svgAttributes)))), text && h("div", { class: "loader__text" }, text), isDeterminate && h("div", { class: "loader__percentage" }, value)));
|
226
|
-
}
|
227
|
-
//--------------------------------------------------------------------------
|
228
|
-
//
|
229
|
-
// Private Methods
|
230
|
-
//
|
231
|
-
//--------------------------------------------------------------------------
|
232
|
-
/**
|
233
|
-
* Return the proper sizes based on the scale property
|
234
|
-
*
|
235
|
-
* @param scale
|
236
|
-
*/
|
237
|
-
getSize(scale) {
|
238
|
-
return {
|
239
|
-
s: 32,
|
240
|
-
m: 56,
|
241
|
-
l: 80
|
242
|
-
}[scale];
|
243
|
-
}
|
244
|
-
getInlineSize(scale) {
|
245
|
-
return {
|
246
|
-
s: 12,
|
247
|
-
m: 16,
|
248
|
-
l: 20
|
249
|
-
}[scale];
|
250
|
-
}
|
251
|
-
get el() { return getElement(this); }
|
252
|
-
};
|
253
|
-
Loader.style = loaderCss;
|
254
|
-
|
255
|
-
export { Action as calcite_action, Loader as calcite_loader };
|
256
|
-
|
257
|
-
//# sourceMappingURL=p-2ff754ce.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"calcite-action.calcite-loader.entry.esm.js","mappings":";;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAM,GAAG,GAAG;AACnB,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,iBAAiB,EAAE,sBAAsB;AAC3C,EAAE,aAAa,EAAE,iBAAiB;AAClC,EAAE,aAAa,EAAE,gBAAgB;AACjC,EAAE,aAAa,EAAE,gBAAgB;AACjC,EAAE,mBAAmB,EAAE,wBAAwB;AAC/C,EAAE,aAAa,EAAE,gBAAgB;AACjC,EAAE,oBAAoB,EAAE,yBAAyB;AACjD,CAAC,CAAC;AACK,MAAM,IAAI,GAAG;AACpB,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC,CAAC;AACK,MAAM,KAAK,GAAG;AACrB,EAAE,OAAO,EAAE,SAAS;AACpB,CAAC;;ACpBD,MAAM,SAAS,GAAG,g5OAAg5O;;MCar5O,MAAM;EACjB;;;;;;;;;;;IASE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;;IAEpB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;;;;IAI1B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;;;;IAIrB,IAAI,CAAC,QAAQ,GAA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EAAG,CAAC,EAAE,CAAC,CAAC,KAAK,kBAAI,KAAK,EAAE,4BAA4B,EAAE,OAAO,EAAE,OAAO,KAAM,aAAa,GAAG,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,IAAK,CAAC,CAAC,QAAQ,oBAAO,aAAa,EAAG,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE,IAAI,CAAC,EAAE,aAAa,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,EAAE,KAAK,CAAC,CAAC,EAAE;GAC5nB;;;;;;;;;;;EAWD,OAAO,CAAC,KAAK;IACX,OAAO;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;KACN,CAAC,KAAK,CAAC,CAAC;GACV;EACD,aAAa,CAAC,KAAK;IACjB,OAAO;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;MACL,CAAC,EAAE,EAAE;KACN,CAAC,KAAK,CAAC,CAAC;GACV;;;;;;;","names":[],"sources":["./node_modules/@esri/calcite-components/dist/collection/components/action/resources.js","./node_modules/@esri/calcite-components/dist/collection/components/action/action.css?tag=calcite-action&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/action/action.js","./node_modules/@esri/calcite-components/dist/collection/components/loader/loader.css?tag=calcite-loader&encapsulation=shadow","./node_modules/@esri/calcite-components/dist/collection/components/loader/loader.js"],"sourcesContent":["/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nexport const CSS = {\n button: \"button\",\n buttonTextVisible: \"button--text-visible\",\n buttonCompact: \"button--compact\",\n iconContainer: \"icon-container\",\n slotContainer: \"slot-container\",\n slotContainerHidden: \"slot-container--hidden\",\n textContainer: \"text-container\",\n textContainerVisible: \"text-container--visible\"\n};\nexport const TEXT = {\n loading: \"Loading\"\n};\nexport const SLOTS = {\n tooltip: \"tooltip\"\n};\n","/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:host {\n /* Base \":host\" styles for the component */\n box-sizing: border-box;\n background-color: var(--calcite-ui-foreground-1);\n color: var(--calcite-ui-text-2);\n font-size: var(--calcite-font-size--1);\n}\n:host * {\n box-sizing: border-box;\n}\n\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([disabled]) {\n pointer-events: none;\n cursor: default;\n -webkit-user-select: none;\n user-select: none;\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-action-indicator-color: Specifies the color of the component's indicator.\n*/\n:host {\n display: flex;\n background-color: transparent;\n --calcite-action-indicator-color: var(--calcite-ui-brand);\n}\n\n:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled] {\n /* prevent opacity stacking */\n opacity: 1;\n}\n\n.button {\n position: relative;\n margin: 0px;\n display: flex;\n inline-size: auto;\n cursor: pointer;\n align-items: center;\n justify-content: flex-start;\n border-style: none;\n background-color: var(--calcite-ui-foreground-1);\n fill: var(--calcite-ui-text-3);\n font-family: var(--calcite-sans-family);\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-3);\n outline-color: transparent;\n text-align: unset;\n flex: 1 0 auto;\n}\n.button:hover {\n background-color: var(--calcite-ui-foreground-2);\n fill: var(--calcite-ui-text-1);\n color: var(--calcite-ui-text-1);\n}\n.button:focus {\n background-color: var(--calcite-ui-foreground-2);\n fill: var(--calcite-ui-text-1);\n color: var(--calcite-ui-text-1);\n outline: 2px solid var(--calcite-ui-brand);\n outline-offset: -2px;\n}\n.button:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n.button .icon-container {\n pointer-events: none;\n margin: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n min-inline-size: 1rem;\n min-block-size: 1rem;\n}\n.button .text-container {\n margin: 0px;\n inline-size: 0px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1.5rem;\n opacity: 0;\n transition-property: opacity;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-property: margin;\n transition-property: inline-size;\n}\n.button .text-container--visible {\n inline-size: auto;\n flex: 1 1 auto;\n opacity: 1;\n}\n\n:host([scale=s]) .button {\n padding-inline: 0.5rem;\n padding-block: 0.25rem;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n font-weight: var(--calcite-font-weight-normal);\n}\n:host([scale=s]) .button--text-visible .icon-container {\n margin-inline-end: 0.5rem;\n}\n\n:host([scale=m]) .button {\n padding-inline: 1rem;\n padding-block: 0.75rem;\n font-size: var(--calcite-font-size--1);\n line-height: 1rem;\n font-weight: var(--calcite-font-weight-normal);\n}\n:host([scale=m]) .button--text-visible .icon-container {\n margin-inline-end: 0.75rem;\n}\n\n:host([scale=l]) .button {\n padding: 1.25rem;\n font-size: var(--calcite-font-size-0);\n line-height: 1.25rem;\n font-weight: var(--calcite-font-weight-normal);\n}\n:host([scale=l]) .button--text-visible .icon-container {\n margin-inline-end: 1rem;\n}\n\n:host([alignment=center]) .button {\n justify-content: center;\n}\n\n:host([alignment=end]) .button {\n justify-content: flex-end;\n}\n\n:host([alignment=center]) .button .text-container--visible, \n:host([alignment=end]) .button .text-container--visible {\n flex: 0 1 auto;\n}\n\n:host([scale=s][compact]) .button, \n:host([scale=m][compact]) .button, \n:host([scale=l][compact]) .button {\n padding-inline: 0px;\n}\n\n.slot-container {\n display: flex;\n}\n\n.slot-container--hidden {\n display: none;\n}\n\n.button--text-visible {\n inline-size: 100%;\n}\n\n:host([active]) .button, \n:host([active]) .button:hover, \n:host([active]) .button:focus, \n:host([active][loading]) .button {\n background-color: var(--calcite-ui-foreground-3);\n fill: var(--calcite-ui-text-1);\n color: var(--calcite-ui-text-1);\n}\n\n:host([active]) .button:active {\n background-color: var(--calcite-ui-foreground-1);\n}\n\n:host([appearance=clear]) .button, \n:host([appearance=transparent]) .button {\n background-color: transparent;\n transition-property: box-shadow;\n transition-duration: 150ms;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n:host([appearance=clear]) .button:hover, \n:host([appearance=clear]) .button:focus, \n:host([appearance=transparent]) .button:hover, \n:host([appearance=transparent]) .button:focus {\n background-color: transparent;\n box-shadow: 0 0 0 2px var(--calcite-ui-border-1) inset;\n}\n\n:host([active][appearance=clear]) .button, \n:host([active][appearance=clear]) .button:hover, \n:host([active][appearance=clear]) .button:focus, \n:host([active][appearance=transparent]) .button, \n:host([active][appearance=transparent]) .button:hover, \n:host([active][appearance=transparent]) .button:focus {\n background-color: var(--calcite-ui-foreground-3);\n fill: var(--calcite-ui-text-1);\n color: var(--calcite-ui-text-1);\n}\n\n:host([appearance=clear][loading]) .button, \n:host([appearance=clear][disabled]) .button, \n:host([appearance=transparent][loading]) .button, \n:host([appearance=transparent][disabled]) .button {\n background-color: transparent;\n}\n\n:host([loading]) .button, \n:host([loading]) .button:hover, \n:host([loading]) .button:focus {\n background-color: var(--calcite-ui-foreground-1);\n}\n:host([loading]) .button .text-container, \n:host([loading]) .button:hover .text-container, \n:host([loading]) .button:focus .text-container {\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host([loading]) calcite-loader[inline] {\n color: var(--calcite-ui-text-3);\n margin-inline-end: 0px;\n}\n\n:host([disabled]) .button, \n:host([disabled]) .button:hover, \n:host([disabled]) .button:focus {\n cursor: default;\n background-color: var(--calcite-ui-foreground-1);\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host([disabled][active]) .button, \n:host([disabled][active]) .button:hover, \n:host([disabled][active]) .button:focus {\n background-color: var(--calcite-ui-foreground-3);\n opacity: var(--calcite-ui-opacity-disabled);\n}\n\n:host([indicator]) .button::after {\n content: \"\";\n position: absolute;\n block-size: 0.5rem;\n inline-size: 0.5rem;\n border-radius: 9999px;\n border-width: 2px;\n background-color: var(--calcite-action-indicator-color);\n border-color: var(--calcite-ui-foreground-1);\n inset-block-end: 0.75rem;\n inset-inline-end: 0.75rem;\n}\n:host([indicator]) .button--text-visible::after {\n inset-block-end: auto;\n}\n:host([indicator]) .button--text-visible .text-container--visible {\n margin-inline-end: 1rem;\n}\n:host([indicator]) .button:hover::after,\n:host([indicator]) .button:focus::after {\n border-color: var(--calcite-ui-foreground-1);\n}\n\n:host([indicator][scale=s]) .button::after {\n inset-block-end: 0.25rem;\n inset-inline-end: 0.25rem;\n}\n:host([indicator][scale=s]) .button--text-visible::after {\n inset-block-end: auto;\n inset-inline-end: 0.5rem;\n}\n\n:host([indicator][active]) .button::after {\n border-color: var(--calcite-ui-foreground-3);\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { Host, h, forceUpdate } from \"@stencil/core\";\nimport { CSS, TEXT, SLOTS } from \"./resources\";\nimport { createObserver } from \"../../utils/observers\";\nimport { updateHostInteraction } from \"../../utils/interactive\";\nimport { toAriaBoolean } from \"../../utils/dom\";\n/**\n * @slot - A slot for adding a `calcite-icon`.\n */\nexport class Action {\n constructor() {\n // --------------------------------------------------------------------------\n //\n // Properties\n //\n // --------------------------------------------------------------------------\n /**\n * When `true`, the component is highlighted.\n */\n this.active = false;\n /** Specifies the appearance of the component. */\n this.appearance = \"solid\";\n /**\n * When `true`, the side padding of the component is reduced. Compact mode is used internally by components, e.g. `calcite-block-section`.\n */\n this.compact = false;\n /**\n * When `true`, interaction is prevented and the component is displayed with lower opacity.\n */\n this.disabled = false;\n /**\n * When `true`, indicates unread changes.\n */\n this.indicator = false;\n /**\n * Specifies the text label to display while loading.\n *\n * @default \"Loading\"\n */\n this.intlLoading = TEXT.loading;\n /**\n * When `true`, a busy indicator is displayed.\n */\n this.loading = false;\n /**\n * Specifies the size of the component.\n */\n this.scale = \"m\";\n /**\n * Indicates whether the text is displayed.\n */\n this.textEnabled = false;\n this.mutationObserver = createObserver(\"mutation\", () => forceUpdate(this));\n // --------------------------------------------------------------------------\n //\n // Private Methods\n //\n // --------------------------------------------------------------------------\n this.handleTooltipSlotChange = (event) => {\n const tooltips = event.target\n .assignedElements({\n flatten: true\n })\n .filter((el) => el === null || el === void 0 ? void 0 : el.matches(\"calcite-tooltip\"));\n const tooltip = tooltips[0];\n if (tooltip) {\n tooltip.referenceElement = this.buttonEl;\n }\n };\n this.calciteActionClickHandler = () => {\n if (!this.disabled) {\n this.calciteActionClick.emit();\n }\n };\n }\n // --------------------------------------------------------------------------\n //\n // Lifecycle\n //\n // --------------------------------------------------------------------------\n connectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });\n }\n disconnectedCallback() {\n var _a;\n (_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\n }\n componentDidRender() {\n updateHostInteraction(this);\n }\n // --------------------------------------------------------------------------\n //\n // Methods\n //\n // --------------------------------------------------------------------------\n /** Sets focus on the component. */\n async setFocus() {\n var _a;\n (_a = this.buttonEl) === null || _a === void 0 ? void 0 : _a.focus();\n }\n // --------------------------------------------------------------------------\n //\n // Render Methods\n //\n // --------------------------------------------------------------------------\n renderTextContainer() {\n const { text, textEnabled } = this;\n const textContainerClasses = {\n [CSS.textContainer]: true,\n [CSS.textContainerVisible]: textEnabled\n };\n return text ? (h(\"div\", { class: textContainerClasses, key: \"text-container\" }, text)) : null;\n }\n renderIconContainer() {\n var _a;\n const { loading, icon, scale, el, intlLoading } = this;\n const iconScale = scale === \"l\" ? \"m\" : \"s\";\n const loaderScale = scale === \"l\" ? \"l\" : \"m\";\n const calciteLoaderNode = loading ? (h(\"calcite-loader\", { active: true, inline: true, label: intlLoading, scale: loaderScale })) : null;\n const calciteIconNode = icon ? h(\"calcite-icon\", { icon: icon, scale: iconScale }) : null;\n const iconNode = calciteLoaderNode || calciteIconNode;\n const hasIconToDisplay = iconNode || ((_a = el.children) === null || _a === void 0 ? void 0 : _a.length);\n const slotContainerNode = (h(\"div\", { class: {\n [CSS.slotContainer]: true,\n [CSS.slotContainerHidden]: loading\n } }, h(\"slot\", null)));\n return hasIconToDisplay ? (h(\"div\", { \"aria-hidden\": \"true\", class: CSS.iconContainer, key: \"icon-container\" }, iconNode, slotContainerNode)) : null;\n }\n render() {\n const { compact, disabled, loading, textEnabled, label, text } = this;\n const ariaLabel = label || text;\n const buttonClasses = {\n [CSS.button]: true,\n [CSS.buttonTextVisible]: textEnabled,\n [CSS.buttonCompact]: compact\n };\n return (h(Host, { onClick: this.calciteActionClickHandler }, h(\"button\", { \"aria-busy\": toAriaBoolean(loading), \"aria-disabled\": toAriaBoolean(disabled), \"aria-label\": ariaLabel, class: buttonClasses, disabled: disabled, ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), h(\"slot\", { name: SLOTS.tooltip, onSlotchange: this.handleTooltipSlotChange })));\n }\n static get is() { return \"calcite-action\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"action.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"action.css\"]\n };\n }\n static get properties() {\n return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is highlighted.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"alignment\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Alignment\",\n \"resolved\": \"\\\"center\\\" | \\\"end\\\" | \\\"start\\\"\",\n \"references\": {\n \"Alignment\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the horizontal alignment of button elements with text content.\"\n },\n \"attribute\": \"alignment\",\n \"reflect\": true\n },\n \"appearance\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Extract<\\\"solid\\\" | \\\"clear\\\", Appearance>\",\n \"resolved\": \"\\\"clear\\\" | \\\"solid\\\"\",\n \"references\": {\n \"Extract\": {\n \"location\": \"global\"\n },\n \"Appearance\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the appearance of the component.\"\n },\n \"attribute\": \"appearance\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"solid\\\"\"\n },\n \"compact\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the side padding of the component is reduced. Compact mode is used internally by components, e.g. `calcite-block-section`.\"\n },\n \"attribute\": \"compact\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"disabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, interaction is prevented and the component is displayed with lower opacity.\"\n },\n \"attribute\": \"disabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"icon\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies an icon to display.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"indicator\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, indicates unread changes.\"\n },\n \"attribute\": \"indicator\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"intlLoading\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"default\",\n \"text\": \"\\\"Loading\\\"\"\n }],\n \"text\": \"Specifies the text label to display while loading.\"\n },\n \"attribute\": \"intl-loading\",\n \"reflect\": false,\n \"defaultValue\": \"TEXT.loading\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the label of the component. If no label is provided, the label inherits what's provided for the `text` prop.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"loading\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, a busy indicator is displayed.\"\n },\n \"attribute\": \"loading\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"text\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies text that accompanies the icon.\"\n },\n \"attribute\": \"text\",\n \"reflect\": false\n },\n \"textEnabled\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Indicates whether the text is displayed.\"\n },\n \"attribute\": \"text-enabled\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get events() {\n return [{\n \"method\": \"calciteActionClick\",\n \"name\": \"calciteActionClick\",\n \"bubbles\": true,\n \"cancelable\": false,\n \"composed\": true,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"use `onClick` instead.\"\n }],\n \"text\": \"Emits when the component has been clicked.\"\n },\n \"complexType\": {\n \"original\": \"void\",\n \"resolved\": \"void\",\n \"references\": {}\n }\n }];\n }\n static get methods() {\n return {\n \"setFocus\": {\n \"complexType\": {\n \"signature\": \"() => Promise<void>\",\n \"parameters\": [],\n \"references\": {\n \"Promise\": {\n \"location\": \"global\"\n }\n },\n \"return\": \"Promise<void>\"\n },\n \"docs\": {\n \"text\": \"Sets focus on the component.\",\n \"tags\": []\n }\n }\n };\n }\n static get elementRef() { return \"el\"; }\n}\n","@charset \"UTF-8\";\n/* mixins & extensions */\n@keyframes in {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes in-down {\n 0% {\n opacity: 0;\n transform: translate3D(0, -5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-up {\n 0% {\n opacity: 0;\n transform: translate3D(0, 5px, 0);\n }\n 100% {\n opacity: 1;\n transform: translate3D(0, 0, 0);\n }\n}\n@keyframes in-scale {\n 0% {\n opacity: 0;\n transform: scale3D(0.95, 0.95, 1);\n }\n 100% {\n opacity: 1;\n transform: scale3D(1, 1, 1);\n }\n}\n:root {\n --calcite-animation-timing: calc(150ms * var(--calcite-internal-duration-factor));\n --calcite-internal-duration-factor: var(--calcite-duration-factor, 1);\n --calcite-internal-animation-timing-fast: calc(100ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-medium: calc(200ms * var(--calcite-internal-duration-factor));\n --calcite-internal-animation-timing-slow: calc(300ms * var(--calcite-internal-duration-factor));\n}\n\n.calcite-animate {\n opacity: 0;\n animation-fill-mode: both;\n animation-duration: var(--calcite-animation-timing);\n}\n\n.calcite-animate__in {\n animation-name: in;\n}\n\n.calcite-animate__in-down {\n animation-name: in-down;\n}\n\n.calcite-animate__in-up {\n animation-name: in-up;\n}\n\n.calcite-animate__in-scale {\n animation-name: in-scale;\n}\n\n@media (prefers-reduced-motion: reduce) {\n :root {\n --calcite-internal-duration-factor: 0.01;\n }\n}\n/**\n* Currently only used in Checkbox.\n*/\n:root {\n --calcite-floating-ui-transition: var(--calcite-animation-timing);\n}\n\n:host([hidden]) {\n display: none;\n}\n\n/**\n* CSS Custom Properties\n*\n* These properties can be overridden using the component's tag as selector.\n*\n* @prop --calcite-loader-font-size: Specifies the font size of the loading percentage when type is `\"determinate\"`.\n* @prop --calcite-loader-size: The width and height of a non-inline loader.\n* @prop --calcite-loader-size-inline: The width and height of an inline loader.\n*/\n:host{\n position: relative;\n margin-inline: auto;\n display: none;\n align-items: center;\n justify-content: center;\n opacity: 1;\n min-block-size: var(--calcite-loader-size);\n font-size: var(--calcite-loader-font-size);\n stroke: var(--calcite-ui-brand);\n stroke-width: 3;\n fill: none;\n transform: scale(1, 1);\n animation: loader-color-shift calc(var(--calcite-internal-animation-timing-slow) * 2) alternate-reverse infinite linear;\n padding-block: var(--calcite-loader-padding, 4rem);\n}\n\n:host([scale=s]) {\n --calcite-loader-font-size: var(--calcite-font-size--2);\n --calcite-loader-size: 2rem;\n --calcite-loader-size-inline: 0.75rem;\n}\n\n:host([scale=m]) {\n --calcite-loader-font-size: var(--calcite-font-size-0);\n --calcite-loader-size: 4rem;\n --calcite-loader-size-inline: 1rem;\n}\n\n:host([scale=l]) {\n --calcite-loader-font-size: var(--calcite-font-size-2);\n --calcite-loader-size: 6rem;\n --calcite-loader-size-inline: 1.5rem;\n}\n\n:host([no-padding]){\n padding-block: 0px;\n}\n\n:host{\n display: none;\n}\n\n:host([active]){\n display: flex;\n}\n\n.loader__text{\n display: block;\n text-align: center;\n font-size: var(--calcite-font-size--2);\n line-height: 1rem;\n color: var(--calcite-ui-text-1);\n margin-block-start: calc(var(--calcite-loader-size) + 1.5rem);\n}\n\n.loader__percentage{\n position: absolute;\n display: block;\n text-align: center;\n color: var(--calcite-ui-text-1);\n font-size: var(--calcite-loader-font-size);\n inline-size: var(--calcite-loader-size);\n inset-inline-start: 50%;\n margin-inline-start: calc(var(--calcite-loader-size) / 2 * -1);\n line-height: 0.25;\n transform: scale(1, 1);\n}\n\n.loader__svgs{\n position: absolute;\n overflow: visible;\n opacity: 1;\n inline-size: var(--calcite-loader-size);\n block-size: var(--calcite-loader-size);\n inset-inline-start: 50%;\n margin-inline-start: calc(var(--calcite-loader-size) / 2 * -1);\n transform: scale(1, 1);\n}\n\n.loader__svg{\n position: absolute;\n inset-block-start: 0px;\n transform-origin: center;\n overflow: visible;\n inset-inline-start: 0;\n inline-size: var(--calcite-loader-size);\n block-size: var(--calcite-loader-size);\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n animation-name: loader-clockwise;\n}\n\n@supports (display: grid) {\n .loader__svg--1 {\n animation-name: loader-offset-1;\n }\n\n .loader__svg--2 {\n animation-name: loader-offset-2;\n }\n\n .loader__svg--3 {\n animation-name: loader-offset-3;\n }\n}\n:host([type=determinate]){\n animation: none;\n stroke: var(--calcite-ui-border-3);\n}\n:host([type=determinate]) .loader__svg--3{\n animation: none;\n stroke: var(--calcite-ui-brand);\n stroke-dasharray: 150.79632;\n transform: rotate(-90deg);\n transition: all var(--calcite-internal-animation-timing-fast) linear;\n}\n\n:host([inline]){\n position: relative;\n margin: 0px;\n animation: none;\n stroke: currentColor;\n stroke-width: 2;\n padding-block: 0px;\n block-size: var(--calcite-loader-size-inline);\n min-block-size: var(--calcite-loader-size-inline);\n inline-size: var(--calcite-loader-size-inline);\n margin-inline-end: calc(var(--calcite-loader-size-inline) * 0.5);\n vertical-align: calc(var(--calcite-loader-size-inline) * -1 * 0.2);\n}\n\n:host([active][inline]){\n display: inline-block;\n}\n\n:host([inline]) .loader__svgs{\n inset-block-start: 0px;\n margin: 0px;\n inset-inline-start: 0;\n inline-size: var(--calcite-loader-size-inline);\n block-size: var(--calcite-loader-size-inline);\n}\n\n:host([inline]) .loader__svg {\n inline-size: var(--calcite-loader-size-inline);\n block-size: var(--calcite-loader-size-inline);\n}\n\n:host([complete]){\n opacity: 0;\n transform: scale(0.75, 0.75);\n transform-origin: center;\n transition: opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms;\n}\n\n:host([complete]) .loader__svgs{\n opacity: 0;\n transform: scale(0.75, 0.75);\n transform-origin: center;\n transition: opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms;\n}\n\n:host([complete]) .loader__percentage {\n color: var(--calcite-ui-brand);\n transform: scale(1.05, 1.05);\n transform-origin: center;\n transition: color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear;\n}\n\n/**\n Segment variables\n - i index (1-3)\n - size length of the segment (0 - 100)\n - growth how much the segment grows during the animation\n (size + growth should not exceed 100)\n - duration how long the segment takes to rotate 360° (seconds)\n*/\n.loader__svg--1 {\n stroke-dasharray: 27.9252444444% 139.6262222222%;\n animation-duration: calc(var(--calcite-internal-animation-timing-slow) * 2.4);\n}\n\n@keyframes loader-offset-1 {\n 0% {\n stroke-dasharray: 27.9252444444% 251.3272%;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 139.6262222222% 139.6262222222%;\n stroke-dashoffset: -83.7757333333%;\n }\n 100% {\n stroke-dasharray: 27.9252444444% 251.3272%;\n stroke-dashoffset: -279.2524444444%;\n }\n}\n.loader__svg--2 {\n stroke-dasharray: 55.8504888889% 139.6262222222%;\n animation-duration: calc(var(--calcite-internal-animation-timing-slow) * 3.2);\n}\n\n@keyframes loader-offset-2 {\n 0% {\n stroke-dasharray: 55.8504888889% 223.4019555556%;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 139.6262222222% 139.6262222222%;\n stroke-dashoffset: -97.7383555556%;\n }\n 100% {\n stroke-dasharray: 55.8504888889% 223.4019555556%;\n stroke-dashoffset: -279.2524444444%;\n }\n}\n.loader__svg--3 {\n stroke-dasharray: 13.9626222222% 139.6262222222%;\n animation-duration: calc(var(--calcite-internal-animation-timing-slow) * 3.867);\n}\n\n@keyframes loader-offset-3 {\n 0% {\n stroke-dasharray: 13.9626222222% 265.2898222222%;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 139.6262222222% 139.6262222222%;\n stroke-dashoffset: -76.7944222222%;\n }\n 100% {\n stroke-dasharray: 13.9626222222% 265.2898222222%;\n stroke-dashoffset: -279.2524444444%;\n }\n}\n@keyframes loader-color-shift {\n 0% {\n stroke: var(--calcite-ui-brand);\n }\n 33% {\n stroke: var(--calcite-ui-brand-press);\n }\n 66% {\n stroke: var(--calcite-ui-brand-hover);\n }\n 100% {\n stroke: var(--calcite-ui-brand);\n }\n}\n@keyframes loader-clockwise {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}","/*!\n * All material copyright ESRI, All Rights Reserved, unless otherwise specified.\n * See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.\n * v1.0.0-beta.97\n */\nimport { h, Host } from \"@stencil/core\";\nimport { guid } from \"../../utils/guid\";\nexport class Loader {\n constructor() {\n //--------------------------------------------------------------------------\n //\n // Properties\n //\n //--------------------------------------------------------------------------\n /** When `true`, the component is active. */\n this.active = false;\n /** When `true`, displays smaller and appears to the left of the text. */\n this.inline = false;\n /** Specifies the size of the component. */\n this.scale = \"m\";\n /** The component's value. Valid only for `\"determinate\"` indicators. Percent complete of 100. */\n this.value = 0;\n /** Text that displays under the component's indicator. */\n this.text = \"\";\n /**\n * Disables spacing around the component.\n *\n * @deprecated Use `--calcite-loader-padding` CSS variable instead.\n */\n this.noPadding = false;\n }\n //--------------------------------------------------------------------------\n //\n // Lifecycle\n //\n //--------------------------------------------------------------------------\n render() {\n const { el, inline, label, scale, text, type, value } = this;\n const id = el.id || guid();\n const radiusRatio = 0.45;\n const size = inline ? this.getInlineSize(scale) : this.getSize(scale);\n const radius = size * radiusRatio;\n const viewbox = `0 0 ${size} ${size}`;\n const isDeterminate = type === \"determinate\";\n const circumference = 2 * radius * Math.PI;\n const progress = (value / 100) * circumference;\n const remaining = circumference - progress;\n const valueNow = Math.floor(value);\n const hostAttributes = {\n \"aria-valuenow\": valueNow,\n \"aria-valuemin\": 0,\n \"aria-valuemax\": 100,\n complete: valueNow === 100\n };\n const svgAttributes = { r: radius, cx: size / 2, cy: size / 2 };\n const determinateStyle = { \"stroke-dasharray\": `${progress} ${remaining}` };\n return (h(Host, { \"aria-label\": label, id: id, role: \"progressbar\", ...(isDeterminate ? hostAttributes : {}) }, h(\"div\", { class: \"loader__svgs\" }, h(\"svg\", { class: \"loader__svg loader__svg--1\", viewBox: viewbox }, h(\"circle\", { ...svgAttributes })), h(\"svg\", { class: \"loader__svg loader__svg--2\", viewBox: viewbox }, h(\"circle\", { ...svgAttributes })), h(\"svg\", { class: \"loader__svg loader__svg--3\", viewBox: viewbox, ...(isDeterminate ? { style: determinateStyle } : {}) }, h(\"circle\", { ...svgAttributes }))), text && h(\"div\", { class: \"loader__text\" }, text), isDeterminate && h(\"div\", { class: \"loader__percentage\" }, value)));\n }\n //--------------------------------------------------------------------------\n //\n // Private Methods\n //\n //--------------------------------------------------------------------------\n /**\n * Return the proper sizes based on the scale property\n *\n * @param scale\n */\n getSize(scale) {\n return {\n s: 32,\n m: 56,\n l: 80\n }[scale];\n }\n getInlineSize(scale) {\n return {\n s: 12,\n m: 16,\n l: 20\n }[scale];\n }\n static get is() { return \"calcite-loader\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"loader.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"loader.css\"]\n };\n }\n static get properties() {\n return {\n \"active\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, the component is active.\"\n },\n \"attribute\": \"active\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"inline\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"When `true`, displays smaller and appears to the left of the text.\"\n },\n \"attribute\": \"inline\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n },\n \"label\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": true,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Accessible name for the component.\"\n },\n \"attribute\": \"label\",\n \"reflect\": false\n },\n \"scale\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"Scale\",\n \"resolved\": \"\\\"l\\\" | \\\"m\\\" | \\\"s\\\"\",\n \"references\": {\n \"Scale\": {\n \"location\": \"import\",\n \"path\": \"../interfaces\"\n }\n }\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the size of the component.\"\n },\n \"attribute\": \"scale\",\n \"reflect\": true,\n \"defaultValue\": \"\\\"m\\\"\"\n },\n \"type\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"\\\"indeterminate\\\" | \\\"determinate\\\"\",\n \"resolved\": \"\\\"determinate\\\" | \\\"indeterminate\\\"\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Specifies the component type.\\n\\nUse `\\\"indeterminate\\\"` if finding actual progress value is impossible.\"\n },\n \"attribute\": \"type\",\n \"reflect\": true\n },\n \"value\": {\n \"type\": \"number\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"number\",\n \"resolved\": \"number\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The component's value. Valid only for `\\\"determinate\\\"` indicators. Percent complete of 100.\"\n },\n \"attribute\": \"value\",\n \"reflect\": false,\n \"defaultValue\": \"0\"\n },\n \"text\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"Text that displays under the component's indicator.\"\n },\n \"attribute\": \"text\",\n \"reflect\": false,\n \"defaultValue\": \"\\\"\\\"\"\n },\n \"noPadding\": {\n \"type\": \"boolean\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"boolean\",\n \"resolved\": \"boolean\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": false,\n \"docs\": {\n \"tags\": [{\n \"name\": \"deprecated\",\n \"text\": \"Use `--calcite-loader-padding` CSS variable instead.\"\n }],\n \"text\": \"Disables spacing around the component.\"\n },\n \"attribute\": \"no-padding\",\n \"reflect\": true,\n \"defaultValue\": \"false\"\n }\n };\n }\n static get elementRef() { return \"el\"; }\n}\n"],"version":3}
|