@esri/solutions-components 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/deduct-calculator.cjs.entry.js +1 -1
- package/dist/cjs/pci-calculator.cjs.entry.js +1 -1
- package/dist/cjs/{pciUtils-6a806ba4.js → pciUtils-423cfc68.js} +25 -7
- package/dist/collection/demos/deduct-calculator.html +2 -5
- package/dist/collection/demos/new-public-notification.html +6 -4
- package/dist/collection/utils/pciUtils.js +25 -7
- package/dist/collection/utils/pciUtils.ts +30 -7
- package/dist/components/ExpandToggle.js +110 -0
- package/dist/components/Heading.js +22 -0
- package/dist/components/_commonjsHelpers.js +22 -0
- package/dist/components/action-bar.js +276 -0
- package/dist/components/action-group.js +149 -0
- package/dist/components/action-menu.js +356 -0
- package/dist/components/action.js +214 -0
- package/dist/components/add-record-modal.d.ts +11 -0
- package/dist/components/add-record-modal.js +171 -0
- package/dist/components/array.js +15 -0
- package/dist/components/block.js +272 -0
- package/dist/components/buffer-tools.d.ts +11 -0
- package/dist/components/buffer-tools.js +11 -0
- package/dist/components/buffer-tools2.js +262 -0
- package/dist/components/button.js +263 -0
- package/dist/components/calcite-accordion-item.js +244 -0
- package/dist/components/calcite-accordion.js +180 -0
- package/dist/components/calcite-action-bar.js +11 -0
- package/dist/components/calcite-action-group.js +11 -0
- package/dist/components/calcite-action-menu.js +11 -0
- package/dist/components/calcite-action-pad.js +197 -0
- package/dist/components/calcite-action.js +11 -0
- package/dist/components/calcite-alert.js +297 -0
- package/dist/components/calcite-avatar.js +182 -0
- package/dist/components/calcite-block-section.js +155 -0
- package/dist/components/calcite-block.js +11 -0
- package/dist/components/calcite-button.js +11 -0
- package/dist/components/calcite-card.js +187 -0
- package/dist/components/calcite-checkbox.js +11 -0
- package/dist/components/calcite-chip.js +11 -0
- package/dist/components/calcite-color-picker-hex-input.js +11 -0
- package/dist/components/calcite-color-picker-swatch.js +11 -0
- package/dist/components/calcite-color-picker.js +1036 -0
- package/dist/components/calcite-combobox-item-group.js +75 -0
- package/dist/components/calcite-combobox-item.js +11 -0
- package/dist/components/calcite-combobox.js +11 -0
- package/dist/components/calcite-date-picker-day.js +11 -0
- package/dist/components/calcite-date-picker-month-header.js +11 -0
- package/dist/components/calcite-date-picker-month.js +11 -0
- package/dist/components/calcite-date-picker.js +11 -0
- package/dist/components/calcite-dropdown-group.js +11 -0
- package/dist/components/calcite-dropdown-item.js +11 -0
- package/dist/components/calcite-dropdown.js +11 -0
- package/dist/components/calcite-fab.js +144 -0
- package/dist/components/calcite-filter.js +195 -0
- package/dist/components/calcite-flow-item.js +243 -0
- package/dist/components/calcite-flow.js +147 -0
- package/dist/components/calcite-graph.js +11 -0
- package/dist/components/calcite-handle.js +11 -0
- package/dist/components/calcite-icon.js +11 -0
- package/dist/components/calcite-inline-editable.js +294 -0
- package/dist/components/calcite-input-date-picker.js +713 -0
- package/dist/components/calcite-input-message.js +11 -0
- package/dist/components/calcite-input-number.js +637 -0
- package/dist/components/calcite-input-text.js +400 -0
- package/dist/components/calcite-input-time-picker.js +434 -0
- package/dist/components/calcite-input.js +11 -0
- package/dist/components/calcite-label.js +11 -0
- package/dist/components/calcite-link.js +11 -0
- package/dist/components/calcite-list-item-group.js +65 -0
- package/dist/components/calcite-list-item.js +11 -0
- package/dist/components/calcite-list.js +11 -0
- package/dist/components/calcite-loader.js +11 -0
- package/dist/components/calcite-modal.js +11 -0
- package/dist/components/calcite-notice.js +11 -0
- package/dist/components/calcite-option-group.js +64 -0
- package/dist/components/calcite-option.js +11 -0
- package/dist/components/calcite-pagination.js +258 -0
- package/dist/components/calcite-panel.js +11 -0
- package/dist/components/calcite-pick-list-group.js +74 -0
- package/dist/components/calcite-pick-list-item.js +11 -0
- package/dist/components/calcite-pick-list.js +11 -0
- package/dist/components/calcite-popover-manager.js +94 -0
- package/dist/components/calcite-popover.js +11 -0
- package/dist/components/calcite-progress.js +11 -0
- package/dist/components/calcite-radio-button-group.js +132 -0
- package/dist/components/calcite-radio-button.js +310 -0
- package/dist/components/calcite-radio-group-item.js +11 -0
- package/dist/components/calcite-radio-group.js +11 -0
- package/dist/components/calcite-rating.js +201 -0
- package/dist/components/calcite-scrim.js +11 -0
- package/dist/components/calcite-select.js +11 -0
- package/dist/components/calcite-shell-center-row.js +100 -0
- package/dist/components/calcite-shell-panel.js +11 -0
- package/dist/components/calcite-shell.js +11 -0
- package/dist/components/calcite-slider.js +11 -0
- package/dist/components/calcite-sortable-list.js +202 -0
- package/dist/components/calcite-split-button.js +11 -0
- package/dist/components/calcite-stepper-item.js +271 -0
- package/dist/components/calcite-stepper.js +256 -0
- package/dist/components/calcite-switch.js +11 -0
- package/dist/components/calcite-tab-nav.js +11 -0
- package/dist/components/calcite-tab-title.js +11 -0
- package/dist/components/calcite-tab.js +11 -0
- package/dist/components/calcite-tabs.js +11 -0
- package/dist/components/calcite-tile-select-group.js +65 -0
- package/dist/components/calcite-tile-select.js +266 -0
- package/dist/components/calcite-tile.js +11 -0
- package/dist/components/calcite-time-picker.js +11 -0
- package/dist/components/calcite-tip-group.js +41 -0
- package/dist/components/calcite-tip-manager.js +223 -0
- package/dist/components/calcite-tip.js +162 -0
- package/dist/components/calcite-tooltip-manager.js +57 -0
- package/dist/components/calcite-tooltip.js +11 -0
- package/dist/components/calcite-tree-item.js +11 -0
- package/dist/components/calcite-tree.js +11 -0
- package/dist/components/calcite-value-list-item.js +11 -0
- package/dist/components/calcite-value-list.js +11 -0
- package/dist/components/card-manager.d.ts +11 -0
- package/dist/components/card-manager.js +143 -0
- package/dist/components/check-list.d.ts +11 -0
- package/dist/components/check-list.js +11 -0
- package/dist/components/check-list2.js +131 -0
- package/dist/components/checkbox.js +165 -0
- package/dist/components/chip.js +170 -0
- package/dist/components/color-picker-hex-input.js +363 -0
- package/dist/components/color-picker-swatch.js +2034 -0
- package/dist/components/combobox-item.js +182 -0
- package/dist/components/combobox.js +912 -0
- package/dist/components/comment-card.d.ts +11 -0
- package/dist/components/comment-card.js +90 -0
- package/dist/components/conditionalSlot.js +50 -0
- package/dist/components/config-buffer-tools.d.ts +11 -0
- package/dist/components/config-buffer-tools.js +187 -0
- package/dist/components/config-draw-tools.d.ts +11 -0
- package/dist/components/config-draw-tools.js +121 -0
- package/dist/components/config-layer-picker.d.ts +11 -0
- package/dist/components/config-layer-picker.js +163 -0
- package/dist/components/config-pdf-download.d.ts +11 -0
- package/dist/components/config-pdf-download.js +154 -0
- package/dist/components/crowdsource-manager.d.ts +11 -0
- package/dist/components/crowdsource-manager.js +90 -0
- package/dist/components/crowdsource-reporter.d.ts +11 -0
- package/dist/components/crowdsource-reporter.js +90 -0
- package/dist/components/csvUtils.js +74 -0
- package/dist/components/date-picker-day.js +111 -0
- package/dist/components/date-picker-month-header.js +224 -0
- package/dist/components/date-picker-month.js +344 -0
- package/dist/components/date-picker.js +575 -0
- package/dist/components/date.js +180 -0
- package/dist/components/debounce.js +487 -0
- package/dist/components/deduct-calculator.d.ts +11 -0
- package/dist/components/deduct-calculator.js +11 -0
- package/dist/components/deduct-calculator2.js +1002 -0
- package/dist/components/dom.js +231 -0
- package/dist/components/dropdown-group.js +96 -0
- package/dist/components/dropdown-item.js +232 -0
- package/dist/components/dropdown.js +505 -0
- package/dist/components/edit-record-modal.d.ts +11 -0
- package/dist/components/edit-record-modal.js +11 -0
- package/dist/components/edit-record-modal2.js +161 -0
- package/dist/components/filter.js +763 -0
- package/dist/components/floating-ui.js +1768 -0
- package/dist/components/form.js +228 -0
- package/dist/components/graph.js +254 -0
- package/dist/components/guid.js +24 -0
- package/dist/components/handle.js +119 -0
- package/dist/components/icon.js +202 -0
- package/dist/components/index.d.ts +61 -0
- package/dist/components/index.js +196 -0
- package/dist/components/index2.js +199 -0
- package/dist/components/info-card.d.ts +11 -0
- package/dist/components/info-card.js +11 -0
- package/dist/components/info-card2.js +97 -0
- package/dist/components/input-message.js +101 -0
- package/dist/components/input.js +740 -0
- package/dist/components/interactive.js +51 -0
- package/dist/components/interfaces.js +19 -0
- package/dist/components/interfaces2.js +21 -0
- package/dist/components/interfaces3.js +80 -0
- package/dist/components/json-editor.d.ts +11 -0
- package/dist/components/json-editor.js +11 -0
- package/dist/components/json-editor2.js +441 -0
- package/dist/components/key.js +16 -0
- package/dist/components/label.js +106 -0
- package/dist/components/label2.js +131 -0
- package/dist/components/labelFormats.js +210 -0
- package/dist/components/layer-table.d.ts +11 -0
- package/dist/components/layer-table.js +453 -0
- package/dist/components/link.js +123 -0
- package/dist/components/list-item.d.ts +11 -0
- package/dist/components/list-item.js +90 -0
- package/dist/components/list-item2.js +149 -0
- package/dist/components/list.js +83 -0
- package/dist/components/loadModules.js +28 -0
- package/dist/components/loader.js +116 -0
- package/dist/components/locale.js +412 -0
- package/dist/components/locale2.js +413 -0
- package/dist/components/map-card.d.ts +11 -0
- package/dist/components/map-card.js +354 -0
- package/dist/components/map-draw-tools.d.ts +11 -0
- package/dist/components/map-draw-tools.js +11 -0
- package/dist/components/map-draw-tools2.js +228 -0
- package/dist/components/map-layer-picker.d.ts +11 -0
- package/dist/components/map-layer-picker.js +11 -0
- package/dist/components/map-layer-picker2.js +188 -0
- package/dist/components/map-search.d.ts +11 -0
- package/dist/components/map-search.js +155 -0
- package/dist/components/map-select-tools.d.ts +11 -0
- package/dist/components/map-select-tools.js +11 -0
- package/dist/components/map-select-tools2.js +588 -0
- package/dist/components/mapViewUtils.js +129 -0
- package/dist/components/math.js +24 -0
- package/dist/components/media-card.d.ts +11 -0
- package/dist/components/media-card.js +11 -0
- package/dist/components/media-card2.js +177 -0
- package/dist/components/modal.js +495 -0
- package/dist/components/nonChromiumPlatformUtils.js +503 -0
- package/dist/components/notice.js +192 -0
- package/dist/components/observers.js +56 -0
- package/dist/components/openCloseComponent.js +56 -0
- package/dist/components/option.js +109 -0
- package/dist/components/panel.js +459 -0
- package/dist/components/pci-calculator.d.ts +11 -0
- package/dist/components/pci-calculator.js +193 -0
- package/dist/components/pdf-download.d.ts +11 -0
- package/dist/components/pdf-download.js +11 -0
- package/dist/components/pdf-download2.js +189 -0
- package/dist/components/pick-list-item.js +255 -0
- package/dist/components/pick-list.js +170 -0
- package/dist/components/popover.js +500 -0
- package/dist/components/progress.js +60 -0
- package/dist/components/public-notification.d.ts +11 -0
- package/dist/components/public-notification.js +825 -0
- package/dist/components/publicNotificationStore.js +38 -0
- package/dist/components/queryUtils.js +187 -0
- package/dist/components/radio-group-item.js +101 -0
- package/dist/components/radio-group.js +235 -0
- package/dist/components/refine-selection-tools.d.ts +11 -0
- package/dist/components/refine-selection-tools.js +11 -0
- package/dist/components/refine-selection-tools2.js +492 -0
- package/dist/components/refine-selection.d.ts +11 -0
- package/dist/components/refine-selection.js +11 -0
- package/dist/components/refine-selection2.js +376 -0
- package/dist/components/resources.js +24 -0
- package/dist/components/resources2.js +21 -0
- package/dist/components/resources3.js +38 -0
- package/dist/components/scrim.js +83 -0
- package/dist/components/select.js +259 -0
- package/dist/components/shared-list-render.js +319 -0
- package/dist/components/shell-panel.js +281 -0
- package/dist/components/shell.js +121 -0
- package/dist/components/slider.js +896 -0
- package/dist/components/solution-configuration.d.ts +11 -0
- package/dist/components/solution-configuration.js +2233 -0
- package/dist/components/solution-contents.d.ts +11 -0
- package/dist/components/solution-contents.js +11 -0
- package/dist/components/solution-contents2.js +128 -0
- package/dist/components/solution-item-details.d.ts +11 -0
- package/dist/components/solution-item-details.js +11 -0
- package/dist/components/solution-item-details2.js +234 -0
- package/dist/components/solution-item-icon.d.ts +11 -0
- package/dist/components/solution-item-icon.js +11 -0
- package/dist/components/solution-item-icon2.js +342 -0
- package/dist/components/solution-item-sharing.d.ts +11 -0
- package/dist/components/solution-item-sharing.js +11 -0
- package/dist/components/solution-item-sharing2.js +167 -0
- package/dist/components/solution-item.d.ts +11 -0
- package/dist/components/solution-item.js +11 -0
- package/dist/components/solution-item2.js +315 -0
- package/dist/components/solution-organization-variables.d.ts +11 -0
- package/dist/components/solution-organization-variables.js +11 -0
- package/dist/components/solution-organization-variables2.js +132 -0
- package/dist/components/solution-resource-item.d.ts +11 -0
- package/dist/components/solution-resource-item.js +11 -0
- package/dist/components/solution-resource-item2.js +356 -0
- package/dist/components/solution-spatial-ref.d.ts +11 -0
- package/dist/components/solution-spatial-ref.js +11 -0
- package/dist/components/solution-spatial-ref2.js +21446 -0
- package/dist/components/solution-store.js +4092 -0
- package/dist/components/solution-template-data.d.ts +11 -0
- package/dist/components/solution-template-data.js +11 -0
- package/dist/components/solution-template-data2.js +233 -0
- package/dist/components/solution-variables.d.ts +11 -0
- package/dist/components/solution-variables.js +11 -0
- package/dist/components/solution-variables2.js +150 -0
- package/dist/components/sortable.esm.js +3026 -0
- package/dist/components/split-button.js +165 -0
- package/dist/components/store-manager.d.ts +11 -0
- package/dist/components/store-manager.js +83 -0
- package/dist/components/switch.js +139 -0
- package/dist/components/tab-nav.js +241 -0
- package/dist/components/tab-title.js +276 -0
- package/dist/components/tab.js +154 -0
- package/dist/components/tabs.js +188 -0
- package/dist/components/tile.js +129 -0
- package/dist/components/time-picker.js +943 -0
- package/dist/components/tooltip.js +399 -0
- package/dist/components/tree-item.js +294 -0
- package/dist/components/tree.js +327 -0
- package/dist/components/utils.js +119 -0
- package/dist/components/utils2.js +51 -0
- package/dist/components/value-list-item.js +204 -0
- package/dist/components/value-list.js +333 -0
- package/dist/esm/deduct-calculator.entry.js +1 -1
- package/dist/esm/pci-calculator.entry.js +1 -1
- package/dist/esm/{pciUtils-e3007a1c.js → pciUtils-ecda46e5.js} +25 -7
- package/dist/solutions-components/demos/deduct-calculator.html +2 -5
- package/dist/solutions-components/demos/new-public-notification.html +6 -4
- package/dist/solutions-components/{p-ff80ffbb.entry.js → p-0512635b.entry.js} +1 -1
- package/dist/solutions-components/{p-5ec407c2.entry.js → p-0c088725.entry.js} +1 -1
- package/dist/solutions-components/p-cc815aca.js +21 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/utils/pciUtils.ts +30 -7
- package/dist/types/utils/pciUtils.d.ts +2 -1
- package/package.json +4 -3
- package/dist/solutions-components/p-647bbd18.js +0 -21
@@ -0,0 +1,243 @@
|
|
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 { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
7
|
+
import { c as getElementDir } from './dom.js';
|
8
|
+
import { S as SLOTS$1, d as defineCustomElement$5 } from './panel.js';
|
9
|
+
import { u as updateHostInteraction } from './interactive.js';
|
10
|
+
import { d as defineCustomElement$9 } from './action.js';
|
11
|
+
import { d as defineCustomElement$8 } from './action-menu.js';
|
12
|
+
import { d as defineCustomElement$7 } from './icon.js';
|
13
|
+
import { d as defineCustomElement$6 } from './loader.js';
|
14
|
+
import { d as defineCustomElement$4 } from './popover.js';
|
15
|
+
import { d as defineCustomElement$3 } from './scrim.js';
|
16
|
+
import { d as defineCustomElement$2 } from './tooltip.js';
|
17
|
+
|
18
|
+
/*!
|
19
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
20
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
21
|
+
* v1.0.0-beta.97
|
22
|
+
*/
|
23
|
+
const CSS = {
|
24
|
+
backButton: "back-button"
|
25
|
+
};
|
26
|
+
const ICONS = {
|
27
|
+
backLeft: "chevron-left",
|
28
|
+
backRight: "chevron-right"
|
29
|
+
};
|
30
|
+
const TEXT = {
|
31
|
+
back: "Back"
|
32
|
+
};
|
33
|
+
const SLOTS = {
|
34
|
+
headerActionsStart: "header-actions-start",
|
35
|
+
headerActionsEnd: "header-actions-end",
|
36
|
+
headerMenuActions: "header-menu-actions",
|
37
|
+
headerContent: "header-content",
|
38
|
+
fab: "fab",
|
39
|
+
footer: "footer",
|
40
|
+
footerActions: "footer-actions"
|
41
|
+
};
|
42
|
+
|
43
|
+
const flowItemCss = "@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{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}";
|
44
|
+
|
45
|
+
const FlowItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
46
|
+
constructor() {
|
47
|
+
super();
|
48
|
+
this.__registerHost();
|
49
|
+
this.__attachShadow();
|
50
|
+
this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack", 6);
|
51
|
+
this.calciteFlowItemBackClick = createEvent(this, "calciteFlowItemBackClick", 6);
|
52
|
+
this.calciteFlowItemScroll = createEvent(this, "calciteFlowItemScroll", 6);
|
53
|
+
this.calciteFlowItemClose = createEvent(this, "calciteFlowItemClose", 6);
|
54
|
+
// --------------------------------------------------------------------------
|
55
|
+
//
|
56
|
+
// Properties
|
57
|
+
//
|
58
|
+
// --------------------------------------------------------------------------
|
59
|
+
/** When true, displays a close button in the trailing side of the header */
|
60
|
+
this.closable = false;
|
61
|
+
/** When true, flow-item will be hidden */
|
62
|
+
this.closed = false;
|
63
|
+
/**
|
64
|
+
* When true, interaction is prevented and the component is displayed with lower opacity.
|
65
|
+
*/
|
66
|
+
this.disabled = false;
|
67
|
+
/**
|
68
|
+
* When true, a busy indicator is displayed.
|
69
|
+
*/
|
70
|
+
this.loading = false;
|
71
|
+
/**
|
72
|
+
* When true, the action menu items in the `header-menu-actions` slot are open.
|
73
|
+
*/
|
74
|
+
this.menuOpen = false;
|
75
|
+
/**
|
76
|
+
* When true, displays a back button in the header.
|
77
|
+
*/
|
78
|
+
this.showBackButton = false;
|
79
|
+
// --------------------------------------------------------------------------
|
80
|
+
//
|
81
|
+
// Private Methods
|
82
|
+
//
|
83
|
+
// --------------------------------------------------------------------------
|
84
|
+
this.handlePanelScroll = (event) => {
|
85
|
+
event.stopPropagation();
|
86
|
+
this.calciteFlowItemScroll.emit();
|
87
|
+
};
|
88
|
+
this.handlePanelClose = (event) => {
|
89
|
+
event.stopPropagation();
|
90
|
+
this.calciteFlowItemClose.emit();
|
91
|
+
};
|
92
|
+
this.backButtonClick = () => {
|
93
|
+
this.calciteFlowItemBackClick.emit();
|
94
|
+
this.calciteFlowItemBack.emit();
|
95
|
+
};
|
96
|
+
this.setBackRef = (node) => {
|
97
|
+
this.backButtonEl = node;
|
98
|
+
};
|
99
|
+
this.setContainerRef = (node) => {
|
100
|
+
this.containerEl = node;
|
101
|
+
};
|
102
|
+
this.getBackLabel = () => {
|
103
|
+
return this.intlBack || TEXT.back;
|
104
|
+
};
|
105
|
+
}
|
106
|
+
//--------------------------------------------------------------------------
|
107
|
+
//
|
108
|
+
// Lifecycle
|
109
|
+
//
|
110
|
+
//--------------------------------------------------------------------------
|
111
|
+
componentDidRender() {
|
112
|
+
updateHostInteraction(this);
|
113
|
+
}
|
114
|
+
// --------------------------------------------------------------------------
|
115
|
+
//
|
116
|
+
// Methods
|
117
|
+
//
|
118
|
+
// --------------------------------------------------------------------------
|
119
|
+
/**
|
120
|
+
* Sets focus on the component.
|
121
|
+
*/
|
122
|
+
async setFocus() {
|
123
|
+
const { backButtonEl, containerEl } = this;
|
124
|
+
if (backButtonEl) {
|
125
|
+
backButtonEl.setFocus();
|
126
|
+
return;
|
127
|
+
}
|
128
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.setFocus();
|
129
|
+
}
|
130
|
+
/**
|
131
|
+
* Scrolls the component's content to a specified set of coordinates.
|
132
|
+
*
|
133
|
+
* @example
|
134
|
+
* myCalciteFlowItem.scrollContentTo({
|
135
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
136
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
137
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
138
|
+
* });
|
139
|
+
* @param options
|
140
|
+
*/
|
141
|
+
async scrollContentTo(options) {
|
142
|
+
var _a;
|
143
|
+
await ((_a = this.containerEl) === null || _a === void 0 ? void 0 : _a.scrollContentTo(options));
|
144
|
+
}
|
145
|
+
// --------------------------------------------------------------------------
|
146
|
+
//
|
147
|
+
// Render Methods
|
148
|
+
//
|
149
|
+
// --------------------------------------------------------------------------
|
150
|
+
renderBackButton() {
|
151
|
+
const { el } = this;
|
152
|
+
const rtl = getElementDir(el) === "rtl";
|
153
|
+
const { showBackButton, backButtonClick } = this;
|
154
|
+
const label = this.getBackLabel();
|
155
|
+
const icon = rtl ? ICONS.backRight : ICONS.backLeft;
|
156
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: "header-actions-start", text: label })) : null;
|
157
|
+
}
|
158
|
+
render() {
|
159
|
+
const { closable, closed, description, disabled, heading, headingLevel, heightScale, intlBack, intlClose, intlOptions, loading, menuOpen, widthScale, backButtonEl } = this;
|
160
|
+
const label = this.getBackLabel();
|
161
|
+
return (h(Host, null, h("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, heightScale: heightScale, intlBack: intlBack, intlClose: intlClose, intlOptions: intlOptions, loading: loading, menuOpen: menuOpen, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll, ref: this.setContainerRef, widthScale: widthScale }, this.renderBackButton(), h("slot", { name: SLOTS.headerActionsStart, slot: SLOTS$1.headerActionsStart }), h("slot", { name: SLOTS.headerActionsEnd, slot: SLOTS$1.headerActionsEnd }), h("slot", { name: SLOTS.headerContent, slot: SLOTS$1.headerContent }), h("slot", { name: SLOTS.headerMenuActions, slot: SLOTS$1.headerMenuActions }), h("slot", { name: SLOTS.fab, slot: SLOTS$1.fab }), h("slot", { name: SLOTS.footerActions, slot: SLOTS$1.footerActions }), h("slot", { name: SLOTS.footer, slot: SLOTS$1.footer }), h("slot", null)), backButtonEl ? (h("calcite-tooltip", { label: label, placement: "auto", referenceElement: backButtonEl }, label)) : null));
|
162
|
+
}
|
163
|
+
get el() { return this; }
|
164
|
+
static get style() { return flowItemCss; }
|
165
|
+
}, [1, "calcite-flow-item", {
|
166
|
+
"closable": [1540],
|
167
|
+
"closed": [1540],
|
168
|
+
"beforeBack": [16],
|
169
|
+
"description": [1],
|
170
|
+
"disabled": [516],
|
171
|
+
"heading": [1],
|
172
|
+
"headingLevel": [514, "heading-level"],
|
173
|
+
"heightScale": [513, "height-scale"],
|
174
|
+
"intlBack": [1, "intl-back"],
|
175
|
+
"intlClose": [1, "intl-close"],
|
176
|
+
"intlOptions": [1, "intl-options"],
|
177
|
+
"loading": [516],
|
178
|
+
"menuOpen": [516, "menu-open"],
|
179
|
+
"showBackButton": [516, "show-back-button"],
|
180
|
+
"widthScale": [513, "width-scale"],
|
181
|
+
"backButtonEl": [32],
|
182
|
+
"setFocus": [64],
|
183
|
+
"scrollContentTo": [64]
|
184
|
+
}]);
|
185
|
+
function defineCustomElement$1() {
|
186
|
+
if (typeof customElements === "undefined") {
|
187
|
+
return;
|
188
|
+
}
|
189
|
+
const components = ["calcite-flow-item", "calcite-action", "calcite-action-menu", "calcite-icon", "calcite-loader", "calcite-panel", "calcite-popover", "calcite-scrim", "calcite-tooltip"];
|
190
|
+
components.forEach(tagName => { switch (tagName) {
|
191
|
+
case "calcite-flow-item":
|
192
|
+
if (!customElements.get(tagName)) {
|
193
|
+
customElements.define(tagName, FlowItem);
|
194
|
+
}
|
195
|
+
break;
|
196
|
+
case "calcite-action":
|
197
|
+
if (!customElements.get(tagName)) {
|
198
|
+
defineCustomElement$9();
|
199
|
+
}
|
200
|
+
break;
|
201
|
+
case "calcite-action-menu":
|
202
|
+
if (!customElements.get(tagName)) {
|
203
|
+
defineCustomElement$8();
|
204
|
+
}
|
205
|
+
break;
|
206
|
+
case "calcite-icon":
|
207
|
+
if (!customElements.get(tagName)) {
|
208
|
+
defineCustomElement$7();
|
209
|
+
}
|
210
|
+
break;
|
211
|
+
case "calcite-loader":
|
212
|
+
if (!customElements.get(tagName)) {
|
213
|
+
defineCustomElement$6();
|
214
|
+
}
|
215
|
+
break;
|
216
|
+
case "calcite-panel":
|
217
|
+
if (!customElements.get(tagName)) {
|
218
|
+
defineCustomElement$5();
|
219
|
+
}
|
220
|
+
break;
|
221
|
+
case "calcite-popover":
|
222
|
+
if (!customElements.get(tagName)) {
|
223
|
+
defineCustomElement$4();
|
224
|
+
}
|
225
|
+
break;
|
226
|
+
case "calcite-scrim":
|
227
|
+
if (!customElements.get(tagName)) {
|
228
|
+
defineCustomElement$3();
|
229
|
+
}
|
230
|
+
break;
|
231
|
+
case "calcite-tooltip":
|
232
|
+
if (!customElements.get(tagName)) {
|
233
|
+
defineCustomElement$2();
|
234
|
+
}
|
235
|
+
break;
|
236
|
+
} });
|
237
|
+
}
|
238
|
+
defineCustomElement$1();
|
239
|
+
|
240
|
+
const CalciteFlowItem = FlowItem;
|
241
|
+
const defineCustomElement = defineCustomElement$1;
|
242
|
+
|
243
|
+
export { CalciteFlowItem, defineCustomElement };
|
@@ -0,0 +1,147 @@
|
|
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 { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
7
|
+
import { c as createObserver } from './observers.js';
|
8
|
+
|
9
|
+
/*!
|
10
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
11
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
12
|
+
* v1.0.0-beta.97
|
13
|
+
*/
|
14
|
+
const CSS = {
|
15
|
+
frame: "frame",
|
16
|
+
frameAdvancing: "frame--advancing",
|
17
|
+
frameRetreating: "frame--retreating"
|
18
|
+
};
|
19
|
+
|
20
|
+
const flowCss = "@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{position:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0px}:host ::slotted(calcite-flow-item),:host ::slotted(calcite-panel){block-size:100%}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation:calcite-frame-advance var(--calcite-animation-timing)}:host .frame--retreating{animation:calcite-frame-retreat var(--calcite-animation-timing)}@keyframes calcite-frame-advance{0%{--tw-bg-opacity:0.5;transform:translate3d(50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity:0.5;transform:translate3d(-50px, 0, 0)}100%{--tw-bg-opacity:1;transform:translate3d(0, 0, 0)}}";
|
21
|
+
|
22
|
+
const Flow = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
23
|
+
constructor() {
|
24
|
+
super();
|
25
|
+
this.__registerHost();
|
26
|
+
this.__attachShadow();
|
27
|
+
this.flowDirection = null;
|
28
|
+
this.itemCount = 0;
|
29
|
+
this.items = [];
|
30
|
+
this.itemMutationObserver = createObserver("mutation", () => this.updateFlowProps());
|
31
|
+
this.getFlowDirection = (oldFlowItemCount, newFlowItemCount) => {
|
32
|
+
const allowRetreatingDirection = oldFlowItemCount > 1;
|
33
|
+
const allowAdvancingDirection = oldFlowItemCount && newFlowItemCount > 1;
|
34
|
+
if (!allowAdvancingDirection && !allowRetreatingDirection) {
|
35
|
+
return null;
|
36
|
+
}
|
37
|
+
return newFlowItemCount < oldFlowItemCount ? "retreating" : "advancing";
|
38
|
+
};
|
39
|
+
this.updateFlowProps = () => {
|
40
|
+
const { el, items } = this;
|
41
|
+
const newItems = Array.from(el.querySelectorAll("calcite-flow-item, calcite-panel")).filter((flowItem) => !flowItem.matches("calcite-flow-item calcite-flow-item, calcite-panel calcite-panel"));
|
42
|
+
const oldItemCount = items.length;
|
43
|
+
const newItemCount = newItems.length;
|
44
|
+
const activeItem = newItems[newItemCount - 1];
|
45
|
+
const previousItem = newItems[newItemCount - 2];
|
46
|
+
if (newItemCount && activeItem) {
|
47
|
+
newItems.forEach((itemNode) => {
|
48
|
+
itemNode.showBackButton = itemNode === activeItem && newItemCount > 1;
|
49
|
+
itemNode.hidden = itemNode !== activeItem;
|
50
|
+
});
|
51
|
+
}
|
52
|
+
if (previousItem) {
|
53
|
+
previousItem.menuOpen = false;
|
54
|
+
}
|
55
|
+
this.items = newItems;
|
56
|
+
if (oldItemCount !== newItemCount) {
|
57
|
+
const flowDirection = this.getFlowDirection(oldItemCount, newItemCount);
|
58
|
+
this.itemCount = newItemCount;
|
59
|
+
this.flowDirection = flowDirection;
|
60
|
+
}
|
61
|
+
};
|
62
|
+
}
|
63
|
+
// --------------------------------------------------------------------------
|
64
|
+
//
|
65
|
+
// Public Methods
|
66
|
+
//
|
67
|
+
// --------------------------------------------------------------------------
|
68
|
+
/**
|
69
|
+
* Removes the currently active `calcite-flow-item` or `calcite-panel`.
|
70
|
+
*/
|
71
|
+
async back() {
|
72
|
+
const { items } = this;
|
73
|
+
const lastItem = items[items.length - 1];
|
74
|
+
if (!lastItem) {
|
75
|
+
return;
|
76
|
+
}
|
77
|
+
const beforeBack = lastItem.beforeBack
|
78
|
+
? lastItem.beforeBack
|
79
|
+
: () => Promise.resolve();
|
80
|
+
return beforeBack.call(lastItem).then(() => {
|
81
|
+
lastItem.remove();
|
82
|
+
return lastItem;
|
83
|
+
});
|
84
|
+
}
|
85
|
+
// --------------------------------------------------------------------------
|
86
|
+
//
|
87
|
+
// Lifecycle
|
88
|
+
//
|
89
|
+
// --------------------------------------------------------------------------
|
90
|
+
connectedCallback() {
|
91
|
+
var _a;
|
92
|
+
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.observe(this.el, { childList: true, subtree: true });
|
93
|
+
this.updateFlowProps();
|
94
|
+
}
|
95
|
+
disconnectedCallback() {
|
96
|
+
var _a;
|
97
|
+
(_a = this.itemMutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
98
|
+
}
|
99
|
+
// --------------------------------------------------------------------------
|
100
|
+
//
|
101
|
+
// Private Methods
|
102
|
+
//
|
103
|
+
// --------------------------------------------------------------------------
|
104
|
+
handleItemBackClick() {
|
105
|
+
this.back();
|
106
|
+
}
|
107
|
+
// --------------------------------------------------------------------------
|
108
|
+
//
|
109
|
+
// Render Methods
|
110
|
+
//
|
111
|
+
// --------------------------------------------------------------------------
|
112
|
+
render() {
|
113
|
+
const { flowDirection } = this;
|
114
|
+
const frameDirectionClasses = {
|
115
|
+
[CSS.frame]: true,
|
116
|
+
[CSS.frameAdvancing]: flowDirection === "advancing",
|
117
|
+
[CSS.frameRetreating]: flowDirection === "retreating"
|
118
|
+
};
|
119
|
+
return (h("div", { class: frameDirectionClasses }, h("slot", null)));
|
120
|
+
}
|
121
|
+
get el() { return this; }
|
122
|
+
static get style() { return flowCss; }
|
123
|
+
}, [1, "calcite-flow", {
|
124
|
+
"flowDirection": [32],
|
125
|
+
"itemCount": [32],
|
126
|
+
"items": [32],
|
127
|
+
"back": [64]
|
128
|
+
}, [[0, "calciteFlowItemBackClick", "handleItemBackClick"], [0, "calcitePanelBackClick", "handleItemBackClick"]]]);
|
129
|
+
function defineCustomElement$1() {
|
130
|
+
if (typeof customElements === "undefined") {
|
131
|
+
return;
|
132
|
+
}
|
133
|
+
const components = ["calcite-flow"];
|
134
|
+
components.forEach(tagName => { switch (tagName) {
|
135
|
+
case "calcite-flow":
|
136
|
+
if (!customElements.get(tagName)) {
|
137
|
+
customElements.define(tagName, Flow);
|
138
|
+
}
|
139
|
+
break;
|
140
|
+
} });
|
141
|
+
}
|
142
|
+
defineCustomElement$1();
|
143
|
+
|
144
|
+
const CalciteFlow = Flow;
|
145
|
+
const defineCustomElement = defineCustomElement$1;
|
146
|
+
|
147
|
+
export { CalciteFlow, defineCustomElement };
|
@@ -0,0 +1,11 @@
|
|
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 { G as Graph, d as defineCustomElement$1 } from './graph.js';
|
7
|
+
|
8
|
+
const CalciteGraph = Graph;
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
10
|
+
|
11
|
+
export { CalciteGraph, defineCustomElement };
|
@@ -0,0 +1,11 @@
|
|
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 { H as Handle, d as defineCustomElement$1 } from './handle.js';
|
7
|
+
|
8
|
+
const CalciteHandle = Handle;
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
10
|
+
|
11
|
+
export { CalciteHandle, defineCustomElement };
|
@@ -0,0 +1,11 @@
|
|
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 { I as Icon, d as defineCustomElement$1 } from './icon.js';
|
7
|
+
|
8
|
+
const CalciteIcon = Icon;
|
9
|
+
const defineCustomElement = defineCustomElement$1;
|
10
|
+
|
11
|
+
export { CalciteIcon, defineCustomElement };
|