Skip to content

Instantly share code, notes, and snippets.

define(["qlik",
"jquery"
],
function (qlik,
$) {
return {
support: {
snapshot: true,
export: true,
Object.keys(require.s.contexts._.defined)
copy(Object.keys(require.s.contexts._.defined))
[
"jquery",
"moment",
"general.controllers/route-controller",
"qvangular",
"underscore",
"scripteditor.utils/string-util",
"assets/hldm/data-connectors/native-file-connector/connect-step",
//https://usrem-nnd.qliktech.com/sense/app/3a4fcbc5-1c3f-4f88-9305-563632cde3d9/story/065b324c-5556-442d-b427-b73f29d18311/state/play/slide/YpEarH
{"delta":true,"handle":1,"method":"GetObject","params":["065b324c-5556-442d-b427-b73f29d18311"],"id":10,"jsonrpc":"2.0"},
{"jsonrpc":"2.0","id":10,"delta":true,"result":{"qReturn":[{"op":"add","path":"/","value":{"qType":"GenericObject","qHandle":4,"qGenericType":"story","qGenericId":"065b324c-5556-442d-b427-b73f29d18311"}}]}},
{"delta":true,"handle":4,"method":"GetLayout","params":[],"id":15,"jsonrpc":"2.0"},
{"jsonrpc":"2.0","id":15,"delta":true,"result":{"qLayout":[{"op":"add","path":"/","value":{"qInfo":{"qId":"065b324c-5556-442d-b427-b73f29d18311","qType":"story"},"qMeta":{"title":"My new story","description":"","privileges":["read","update","delete","approve"],"createdDate":"2018-08-09T16:39:58.907Z","modifiedDate":"2018-08-09T16:40:23.076Z","published":false,"publishTime":"1753-01-01T00:00:00.000Z","approved":false,"owner":{"id":"cac9ac70-6ed0-4f8b-8731-dbf3
var progressLog = setInterval(function(){console.log($('.elapsed .time').text(), $('.qv-progressindicator').text()) }, 1000);
define("client.views/toolbar/toolbar", ["qvangular", "text!client.views/toolbar/toolbar.ng.html", "core.models/app", "client.views/toolbar/story-navigator", "client.views/toolbar/sheet-navigator", "client.views/toolbar/bookmark-navigator", "storytelling.models/story-history", "client.utils/state", "general.utils/responsive-state", "assets/client/services/toolbar-services/navigation-menu-service", "assets/client/services/toolbar-services/global-menu-service", "assets/client/services/toolbar-services/save-button-service", "client.controllers/toolbar-controller-utils", "client.views/app-overview/directives/app-details/app-details", "core.utils/resize", "client.services/grid-service", "assets/hldm/services/entrypoints", "assets/hldm/services/data-manager-capability-service", "assets/hldm/services/data-manager-view-service", "client.views/app-overview/smalldevice/small-device-menu-service", "client.views/global-selections/global-selections-service", "assets/client/services/app-details-service"], function(a, b, c,
//https://github.com/SheetJS/js-xlsx/blob/master/dist/xlsx.js#L2106
var jszip;
/*global JSZipSync:true */
if(typeof JSZipSync !== 'undefined') jszip = JSZipSync;
if(typeof exports !== 'undefined') {
if(typeof module !== 'undefined' && module.exports) {
if(typeof jszip === 'undefined') jszip = undefined;
}
}
//bookmark-service
//both applySnapshot and applyBookmark use "client.models/bookmark".apply()
define("client.services/bookmark-service", ["qvangular", "client.models/bookmark", "client.models/sheet", "client.utils/state", "client.utils/routing", "client.services/grid-service", "jquery", "general.services/delayed-modal/delayed-modal"], function(a, b, c, d, e, f, g) {
"use strict";
function h() {
j("Bookmarks.BookmarkMissingDialogTitle", "Bookmarks.BookmarkMissingDialogText1", "Bookmarks.BookmarkMissingDialogText2")
}
function i(a) {
var b, c;
// https://github.com/SheetJS/js-xlsx/blob/master/dist/xlsx.js#L20238
// if(typeof exports !== 'undefined') make_xlsx_lib(exports);
// else if(typeof module !== 'undefined' && module.exports) make_xlsx_lib(module.exports);
// else if(typeof define === 'function' && define.amd) define('xlsx', function() { if(!XLSX.version) make_xlsx_lib(XLSX); return XLSX; });
// else make_xlsx_lib(XLSX);
v=0;
if(typeof exports !== 'undefined') v=1;
else if(typeof module !== 'undefined' && module.exports) v=2;
else if(typeof define === 'function' && define.amd) v=3;
define("text!client.services/export-dialog/export-dialog.ng.html", [], function() {
return '<lui-dialog id="export-dialog">\n\t<div ng-if="state === states.PENDING">\n\t\t<lui-dialog-header q-translation="Export.Exporting"></lui-dialog-header>\n\t\t<lui-dialog-body class="export-dialog-body">\n\t\t\t<div class="qv-loader pb-10"></div>\n\t\t</lui-dialog-body>\n\t\t<lui-dialog-footer>\n\t\t\t<lui-button qva-activate="cancel()" q-translation="Common.Cancel"></lui-button>\n\t\t</lui-dialog-footer>\n\t</div>\n\t<div ng-if="state === states.COMPLETED">\n\t\t<lui-dialog-header q-translation="Export.Completed"></lui-dialog-header>\n\t\t<lui-dialog-body class="export-dialog-body">\n\t\t\t<p class="pb-10">\n\t\t\t\t<span q-translation="Export.CompletedDescription"></span>\n\t\t\t\t<span q-translation="Export.WarningDataTruncated" ng-if="dataIsTruncated"></span>\n\t\t\t</p>\n\t\t\t<p class="pb-10">\n\t\t\t\t<a ng-href="{{exportUrl}}" target="_blank" q-translation="Export.CompletedLink"></a>\n\t\t\t</p>\n\t\t</lui-d
define(["/extensions/client_project-navigation/client_project-selections-utility.js",
"/extensions/client_project-navigation/client_project-environment-config.js",
"qlik",
],
function(client_project_selections_utility,
client_project_environment_config,
qlik){ var client_project_sla_utility = {};
var sla_log = function(arg1){