@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
6 lines (5 loc) • 1.58 kB
JavaScript
/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.32/esri/copyright.txt for details.
*/
import{loadCalciteComponents as e}from"../../support/componentsUtils.js";import"../../support/widgetUtils.js";import{tsx as t}from"../../support/jsxFactory.js";import{css as i}from"../css.js";const n=()=>e({action:()=>import("@esri/calcite-components/dist/components/calcite-action"),"action-bar":()=>import("@esri/calcite-components/dist/components/calcite-action-bar")});function c({viewModel:e,messages:n}){const{state:c,playing:a}=e,o="not-ready"===c||"waiting"===c,s=a?n.pause:n.play,l=t("calcite-action",{active:a,alignment:"center",bind:e,disabled:o,icon:a?"pause-f":"play-f",key:"play",onclick:a?e.pause:e.play,scale:"s",text:s,title:s}),r=n.reverse,d=t("calcite-action",{alignment:"center",bind:e,disabled:o,icon:"reverse-f",key:"reverse",onclick:e.seekBackward,scale:"s",text:r,title:r}),p=n.forward,m=t("calcite-action",{alignment:"center",bind:e,disabled:o,icon:"forward-f",key:"forward",onclick:e.seekForward,scale:"s",text:p,title:p}),g=n.beginning,b=t("calcite-action",{alignment:"center",bind:e,disabled:o,icon:"beginning-f",key:"beginning",onclick:e.seekToBeginning,scale:"s",text:g,title:g}),k=n.end,y=t("calcite-action",{alignment:"center",bind:e,disabled:o,icon:"end-f",key:"end",onclick:e.seekToEnding,scale:"s",text:k,title:k});return t("calcite-action-bar",{class:i.playerActions,expandDisabled:!0,layout:"horizontal",scale:"s"},[b,d,l,m,y])}export{c as PlayerActionsGroup,n as loadPlayerActionsGroupComponents};