var Unibase;
(function (Unibase) {
let Platform;
(function (Platform) {
let Widgets;
(function (Widgets) {
let Components;
(function (Components) {
class _Widget extends Platform.Core.BaseComponent {
constructor() {
super(...arguments);
this.existingwidgets = [];
this.existingwidetsname = [];
}
cssFiles() {
return [];
}
jsFiles() {
return ["platform/widgets/components/widgethiddenfields.js", "tenants/themes/compact/widgets/reportwidgets/default.js", "tenants/themes/compact/widgets/kpiwidgets/default.js", 'tenants/themes/compact/widgets/detailwidgets/default.js', 'tenants/themes/compact/widgets/detailwidgets/singledata.js', 'tenants/themes/compact/widgets/detailwidgets/singlecolumn.js', 'tenants/themes/compact/widgets/detailwidgets/singlecolumn_noborder.js', "tenants/themes/compact/widgets/kpiwidgets/comparision.js", "tenants/themes/compact/widgets/kpiwidgets/icon.js", "tenants/themes/compact/widgets/kpiwidgets/valuewithpercentage.js", "tenants/themes/compact/widgets/kpiwidgets/twovalue.js", "tenants/themes/compact/widgets/reportwidgets/withnoheaderandfooter.js", "platform/widgets/components/widgetpermission.js", "tenants/themes/compact/widgets/kpiwidgets/twovaluebgcolor.js", "tenants/themes/compact/widgets/kpiwidgets/valuewithpercentagebgcolor.js", "tenants/themes/compact/widgets/kpiwidgets/twovaluecenterline.js", "tenants/themes/compact/widgets/kpiwidgets/owlcarouselslider.js", "tenants/themes/compact/widgets/kpiwidgets/valuewithpercentageprogressbar.js", "tenants/themes/compact/widgets/kpiwidgets/kpi_fulfillment.js", "tenants/themes/compact/widgets/kpiwidgets/carouselslider.js", "tenants/themes/compact/widgets/kpiwidgets/carouselsliderbgcolor.js", "platform/analytics/components/reportviewer/widgetreportviewer.js", "platform/analytics/components/reportviewer/reportviewer.js", "platform/analytics/enums/reporttype.js", "platform/analytics/providers/ireportviewer.js", "platform/analytics/components/reportbuilder/reportbuilder.js", "platform/analytics/enums/viewertype.js", "platform/analytics/components/tableviewer/tableviewer.js", "platform/analytics/components/templateviewer/templateviewer.js", "platform/analytics/components/reportviewer/_reportviewer.js", "platform/widgets/managers/widgetmanager.js", "tenants/themes/compact/widgets/detailwidgets/customdesign.js", "platform/core/enums/expressionoperator.js", "platform/analytics/components/commonfilter/_commonfilter.js", "/platform/apps/enums/appconfigurationtypes.js", "tenants/themes/compact/widgets/kpiwidgets/comparisionrightbarcolor.js", "tenants/themes/compact/widgets/kpiwidgets/comparisionbottombarcolor.js", "tenants/themes/compact/widgets/kpiwidgets/singlevalueborder.js", "tenants/themes/compact/widgets/kpiwidgets/twovaluebottombarcolor.js", "tenants/themes/compact/widgets/kpiwidgets/singlevaluepiechart.js", "tenants/themes/compact/widgets/kpiwidgets/iconbgcolor.js", "tenants/themes/compact/widgets/kpiwidgets/iconcolor.js", "tenants/themes/compact/widgets/kpiwidgets/iconleftbarcolor.js"];
}
html(id, containerid) {
let html = '';
return html;
}
load(id, containerid, callback) {
}
widgetsModal(InstalledAppId, event) {
var instance = this;
$(".biz-submenu").css({ "z-index": "" });
$(".biz-layout-3-left-nav").css({ "z-index": "" });
$(".toplayout-structures-panel").css({ "z-index": "1040" });
let structureId = $(event).parents('.droppablePlaceCol').attr('id');
instance.fileCacheHelper.loadJsFile('platform/widgets/enums/widgetlayout.js', null);
instance.fileCacheHelper.loadJsFile('platform/widgets/enums/widgettype.js', null);
let html = `
`;
$('#detailsWidgetModal').remove();
if (InstalledAppId != 0) {
$('#layout-detail').after(html);
$("#dashboardWidgetModal").modal('show').css({ 'padding-left': '' });
$('.allWidgetsModal').trigger('click');
$('.portletwidget-item').each(function (index, elem) {
let widgetid = +$(this).attr('data-widgetid');
let widgetName = $(this).attr('data-widgetname');
let state = 'exist';
if (instance.existingwidgets.indexOf(widgetid) < 0) {
instance.existingwidgets.push(widgetid);
instance.existingwidetsname.push({ "widgetId": widgetid, widgetName, state });
}
});
}
if (InstalledAppId == 0) {
$("#dashboardwidget-container-outer").after(html);
$("#dashboardWidgetModal").modal('show');
$('.allWidgetsModal').trigger('click');
$('.dashboardwidget-addeditem').each(function (index, elem) {
let hf_portletwidgetId = $(this).find('.hf_portletwidgetId').val();
let widgetid = +$(this).attr('id');
let widgetName = $(this).find('#hf_widgetName_' + hf_portletwidgetId).val();
let state = 'exist';
if (instance.existingwidgets.indexOf(widgetid) < 0) {
instance.existingwidgets.push(widgetid);
instance.existingwidetsname.push({ "widgetId": widgetid, widgetName, state });
}
});
}
$('#dashboardWidgetModal').on('hide.bs.modal', function (event) {
instance.existingwidetsname = [];
instance.existingwidgets = [];
$(this).remove();
$("#bizgaze_body").addClass("edit-dashboard-mode");
$(".biz-submenu").css({ "z-index": "9999" });
$(".biz-layout-3-left-nav").css({ "z-index": "9999" });
$(".toplayout-structures-panel").css({ "z-index": "9999" });
});
$("#widget-search").on("keyup", function () {
$('#dashboardWidget-modal-content li').removeClass('hidden');
let searchTerm = String($(this).val()).toUpperCase();
let id = $('#widgetsModal_popup .nav-item .nav-link.active').attr('href');
let ul = $(id + ' ul').attr('id'), widgetName;
$('#' + ul + ' li').each(function () {
widgetName = $(this).attr('data-widgetname');
if (widgetName.toUpperCase().indexOf(searchTerm) > -1) {
$(this).removeClass('hidden');
let checklength = $(this).find(".selected").length;
if (checklength == 1) {
$(this).removeClass("d-none");
$(this).find("a").addClass("opacity-40");
$(this).append('Already Added
');
}
}
else {
$(this).addClass('hidden');
}
});
if ($("#widget-search").val() == "") {
$(".widgets_card").each(function () {
let checklength = $(this).find(".selected").length;
if (checklength == 1) {
$(this).addClass("d-none");
$(this).find("a").removeClass("opacity-40");
$(this).find(".added_widget_dispalytext").remove();
$(this).find(".selected").addClass("d-none");
}
});
}
});
}
loadDetailPageModal(widgets, bindingDiv, installedAppId, portletId, structuredesignId) {
let instance = this, widgetData = widgets.result, allhtml = '', kpihtml = '', detailhtml = '', reporthtml = '';
for (var a = 0; a < widgetData.length; a++) {
allhtml = '' + widgetData[a].WidgetName + '
';
$('#allWidgetsBind').append(allhtml);
$('#commonwidgetsBind').append(allhtml);
}
if (bindingDiv == 'common-widgets') {
let kpi_Widgets = widgetData.filter(x => x.WidgetLayoutName == "KPI");
for (var k = 0; k < kpi_Widgets.length; k++) {
kpihtml = '' + kpi_Widgets[k].WidgetName + '
';
$('#kpiWidgetsBind').append(kpihtml);
}
widgetData.filter(x => x.widgetlayoutname == "Detail");
var details_Widgets = widgetData.filter(function (o) { return o.WidgetLayoutName === "Detail"; });
for (var d = 0; d < details_Widgets.length; d++) {
detailhtml = '' + details_Widgets[d].WidgetName + '
';
$('#detailsWidgetBind').append(detailhtml);
}
var report_Widgets = widgetData.filter(function (o) { return o.WidgetLayoutName === "Report"; });
for (var r = 0; r < report_Widgets.length; r++) {
reporthtml = '' + report_Widgets[r].WidgetName + '
';
$('#reportwidgetsBind').append(reporthtml);
}
}
if (bindingDiv == 'already-added-widgets') {
var already_Widgets = widgetData;
for (var w = 0; w < already_Widgets.length; r++) {
reporthtml = '' + already_Widgets[w].WidgetName + '
';
$('#addedwidgetsBind').append(already_Widgets);
}
}
for (var i = 0; i < widgetData.length; i++) {
var html = '' +
'' +
'' +
'' +
'' +
'' +
'' +
'' +
'' + widgetData[i].WidgetName + '' +
'' +
'';
$('.' + bindingDiv + ':last').after(html);
}
instance.selectedWidget();
}
selectedWidget() {
let selectedHtml = `
`;
let widgetidSelect;
$('#dashboardwidget-container').find('.widgetdataHere').each(function () {
if ($(this).attr('data-strctwidgetindex') == undefined) {
widgetidSelect = $(this).attr('id');
}
else {
let widgetidArr = [];
widgetidArr = $(this).attr('id').split('-');
widgetidSelect = widgetidArr[1];
}
$('div[data-widgetid=' + widgetidSelect + ']').closest('li').find('.selected').remove();
$('div[data-widgetid=' + widgetidSelect + ']').closest('li').append(selectedHtml);
});
}
selectWidget(e, structuredesignId) {
let instance = this;
let installedappid = Number(Unibase.Themes.Providers.DetailHelper.installedAppId), portletId;
if (installedappid != 0) {
portletId = $('#layout-detail-tabs .nav-link.active').find('#hf_PortletId').val();
}
else {
portletId = $('._bizgaze_detail_container').find('#hf_PortletId').val();
}
let widgetId = $(e).find('div').attr('data-widgetid');
let widgetName = $(e).find('p').text();
let selectedHtml = `
`;
if ($(e).find('div.search').attr('data-isselect') == 'true') {
$(e).find('div.search').attr('data-isselect', 'false');
$(e).find('div.selected').remove();
let state = "removed";
let findindex = instance.existingwidgets.indexOf(+widgetId);
if (findindex > -1) {
instance.existingwidetsname[findindex].state = state;
}
else {
instance.existingwidgets.push(+widgetId);
instance.existingwidetsname.push({ widgetId: +widgetId, widgetName, state });
}
if (installedappid != 0) {
Unibase.Themes.Compact.Components.Details.Instance().isPortletModified = false;
}
if (installedappid == 0) {
$('#' + structuredesignId).find('#' + widgetId).remove();
}
}
else if ($(e).find('div').attr('data-isselect') == 'false') {
$(e).find('div').attr('data-isselect', 'true');
$(e).find('div').append(selectedHtml);
let state = 'added';
let findindex = instance.existingwidgets.indexOf(+widgetId);
if (findindex > -1) {
instance.existingwidetsname[findindex].state = state;
}
else {
instance.existingwidgets.push(+widgetId);
instance.existingwidetsname.push({ widgetId: +widgetId, widgetName, state });
}
if (installedappid != 0) {
Unibase.Themes.Compact.Components.Details.Instance().isPortletModified = true;
}
if (installedappid == 0) {
}
}
}
getAppWidgets(widgettype, widgetlayout, _AppsStructureId) {
let instance = this;
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/widgets/managers/widgetmanager.js", function () {
var installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
Unibase.Platform.Widgets.Managers.WidgetManager.Instance().getAppWidgets_(installedAppId, widgettype, widgetlayout).then(function (response) {
var _a, _b, _c;
if (response != null) {
var widgetData = response.result;
$('#commonwidgetsBind').html('');
$('#detailsWidgetBind').html('');
$('#userDesignedBind').html('');
$('#reportwidgetsBind').html('');
$('#kpiWidgetsBind').html('');
$('#allWidgetsBind').html('');
for (var i = 0; i < widgetData.length; i++) {
let findexistingwidget = instance.existingwidgets.indexOf(+widgetData[i].WidgetId);
var html = `
`;
}
}
else {
html += '';
}
if (widgettype == 0 && widgetlayout == -1) {
$('#allWidgetsBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.Kpi)) {
$('#kpiWidgetsBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.Report)) {
$('#reportwidgetsBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.UserDesigned)) {
$('#userDesignedBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.Detail)) {
$('#detailsWidgetBind').append(html);
}
else if (widgettype == Number(Unibase.Platform.Widgets.Enums.WidgetType.CommonWidget)) {
$('#commonwidgetsBind').append(html);
}
$(".widgets_card").each(function () {
var checklength = $(this).find(".selected").length;
if (checklength == 1) {
$(this).addClass("d-none");
}
});
}
}
});
});
}
getAddedWidgets() {
let installedappid = Unibase.Themes.Providers.DetailHelper.installedAppId;
let instance = this;
$('#addedwidgetsBind').html('');
$('#commonwidgetsBind').html('');
$('#detailsWidgetBind').html('');
$('#userDesignedBind').html('');
$('#reportwidgetsBind').html('');
$('#kpiWidgetsBind').html('');
$('#allWidgetsBind').html('');
if (installedappid != 0) {
$('.portletwidget-item').each(function (index, elem) {
let findexistingwidget = instance.existingwidgets.indexOf(+$(this).attr('data-widgetid'));
var html = `
${$(this).attr('data-widgetname')}
`;
if (findexistingwidget > -1) {
if (instance.existingwidetsname[findexistingwidget].state != 'removed') {
html += `
`;
}
}
else {
html += '';
}
$('#addedwidgetsBind').append(html);
});
}
else if (installedappid == 0) {
$('.dashboardwidget-addeditem').each(function (index, elem) {
let hf_portletwidgetId = $(this).find('.hf_portletwidgetId').val();
let findexistingwidget = instance.existingwidgets.indexOf(+$(this).attr('id'));
let widgetId = $(this).attr('id');
let widgetItem = $(this).find('#hf_portletwidgetId').val();
let widgetName;
if ($(this).find('#hf_widgetName_' + widgetItem).val() != undefined) {
widgetName = $(this).find('#hf_widgetName_' + widgetItem).val();
}
else {
widgetName = $(this).find('#hf_kpi_widgetName_' + widgetId).text();
}
var html = `
${widgetName}
`;
if (findexistingwidget > -1) {
if (instance.existingwidetsname[findexistingwidget].state != 'removed') {
html += `
`;
}
}
else {
html += '';
}
$('#addedwidgetsBind').append(html);
});
}
}
getWidgets(widgettype, widgetlayout, structureId) {
let installedappid = Unibase.Themes.Providers.DetailHelper.installedAppId;
let instance = this;
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/widgets/managers/widgetmanager.js", function () {
if (installedappid == 0) {
instance.getDashboardWidgets(widgettype, widgetlayout, structureId.id);
}
else if (installedappid != 0) {
let AppsStructureId;
if (structureId != undefined) {
AppsStructureId = $(structureId).attr('id');
}
instance.getAppWidgets(widgettype, widgetlayout, AppsStructureId);
}
});
}
getDashboardWidgets(widgettype, widgetlayout, structureId) {
let instance = this;
Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("platform/widgets/managers/widgetmanager.js", function () {
var installedAppId = Unibase.Themes.Providers.DetailHelper.installedAppId;
Unibase.Platform.Widgets.Managers.WidgetManager.Instance().getDashboardWidgets(widgetlayout, widgettype).then(function (response) {
var _a, _b;
if (response != null) {
var widgetData = response.result;
$('#commonwidgetsBind').html('');
$('#detailsWidgetBind').html('');
$('#userDesignedBind').html('');
$('#reportwidgetsBind').html('');
$('#kpiWidgetsBind').html('');
$('#allWidgetsBind').html('');
for (var i = 0; i < widgetData.length; i++) {
let findIndex = instance.existingwidgets.indexOf(widgetData[i].WidgetId);
var html = `
${widgetData[i].WidgetName}
`;
if (findIndex > -1) {
if (instance.existingwidetsname[findIndex].state != 'removed') {
html += `
`;
}
}
else {
html += '';
}
if (widgettype == 0 && widgetlayout == -1) {
$('#allWidgetsBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.Kpi)) {
$('#kpiWidgetsBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.Report)) {
$('#reportwidgetsBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.UserDesigned)) {
$('#userDesignedBind').append(html);
}
else if (widgetlayout == Number(Unibase.Platform.Widgets.Enums.WidgetLayout.Detail)) {
$('#detailsWidgetBind').append(html);
}
else if (widgettype == Number(Unibase.Platform.Widgets.Enums.WidgetType.CommonWidget)) {
$('#commonwidgetsBind').append(html);
}
$(".widgets_card").each(function () {
var checklength = $(this).find(".selected").length;
if (checklength == 1) {
$(this).addClass("d-none");
}
});
}
}
});
});
}
saveWidgets(structureId) {
let instance = this;
console.log(instance.existingwidetsname);
let installedappid = Unibase.Themes.Providers.DetailHelper.installedAppId;
let VisibleContainerId = Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds[Unibase.Platform.Helpers.NavigationHelper.ModalContainerIds.length - 1];
instance.existingwidetsname.forEach((elem, index) => {
if (elem.state == 'added') {
if ($('#' + VisibleContainerId).find('.portletwidget-item.widgetid-' + elem.widgetId).length == 0) {
let installedappid = Number(Unibase.Themes.Providers.DetailHelper.installedAppId), portletId;
if (installedappid != 0) {
portletId = $('#' + VisibleContainerId).find('#layout-detail-tabs .nav-link.active').find('#hf_PortletId').val();
}
else {
portletId = $('#' + VisibleContainerId).find('._bizgaze_detail_container').find('#hf_PortletId').val();
}
let widgetId = elem.widgetId;
let widgetName = elem.widgetName;
let sortable = "";
if (Unibase.Themes.Compact.Components.Index.Instance().isAppStructureEnable) {
sortable = "dashboardwidget-item px-0";
}
if (installedappid != 0) {
let dropInPortlet = ``;
if (Unibase.Themes.Compact.Components.Index.Instance().isAppStructureEnable && structureId != undefined) {
$('#' + VisibleContainerId).find(`#${structureId.id} .widgetplace:first`).append(dropInPortlet);
}
else {
$('#' + VisibleContainerId).find('#tab-container').append(dropInPortlet);
}
}
else if (installedappid == 0) {
let dashboardHtml = ``;
$('#' + structureId.id).find('.widgetplace').first().append(dashboardHtml);
}
}
}
else if (elem.state == 'removed') {
if (installedappid != 0) {
$('.portletwidget-item.widgetid-' + elem.widgetId).find('a[title="delete widget"]').click();
}
else if (installedappid == 0) {
$('.dashboardwidget-addeditem.widgetid-' + elem.widgetId).find('a[title="delete widget"]').click();
}
instance.existingwidgets = instance.existingwidgets.filter(id => id != +elem.widgetId);
instance.existingwidetsname = instance.existingwidetsname.filter(obj => obj.widgetId != elem.widgetId);
}
});
}
createWidget() {
$('#dashboardWidgetModal').modal('hide');
$('.dashboardcreatewidgetbtn').click();
}
structSetting(e) {
let instance = this;
let VisibleContainerId = Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();
$('#' + VisibleContainerId).find("#structure_settingModal").remove();
let block_len, Blockhtml = '', paramater_id = [], bindMobile = [], bindTab = [], data = [];
block_len = $(e).parent().siblings().length;
$(e).parent().siblings().each(function (i, e) {
Blockhtml += ' ';
let id = $(this).attr('id');
paramater_id.push(id);
if ($('#' + VisibleContainerId).find("#" + id).attr('data-mobile_settingwidth') != undefined) {
bindMobile = $('#' + VisibleContainerId).find("#" + id).attr('data-mobile_settingwidth').split('|');
}
if ($('#' + VisibleContainerId).find("#" + id).attr('data-tab_settingwidth') != undefined) {
bindTab = $('#' + VisibleContainerId).find("#" + id).attr('data-tab_settingwidth').split('|');
}
data.push({ "Mobile": bindMobile[i], "Tab": bindTab[i], "id": id, "index": i });
});
let structbindhtml = '';
let pasParameter = paramater_id.join('|');
let modalhtml = '';
if (Unibase.Themes.Providers.DetailHelper.installedAppId) {
$('#' + VisibleContainerId).css('z-index', 1201);
$('#' + VisibleContainerId).find(".detail-container-content-outer").append(modalhtml);
}
else {
$('#' + VisibleContainerId).find("#dashboardwidget-container-outer").prepend(modalhtml);
}
$('#' + VisibleContainerId).find("#structure_settingModal").modal('show');
for (var k = 0; k < data.length; k++) {
if (data[k].Mobile != undefined && data[k].Mobile != null && data[k].Mobile != '') {
$('#' + VisibleContainerId + ' #mobile-tab-setting').find('.txt_block_' + data[k].index).val(data[k].Mobile);
}
else {
$('#' + VisibleContainerId + ' #mobile-tab-setting').find('.txt_block_' + data[k].index).val('');
}
if (data[k].Tab != undefined && data[k].Tab != null && data[k].Tab != '') {
$('#' + VisibleContainerId + ' #tab-tab-setting').find('.txt_block_' + data[k].index).val(data[k].Tab);
}
else {
$('#' + VisibleContainerId + ' #tab-tab-setting').find('.txt_block_' + data[k].index).val('');
}
}
$('[data-btn_close="closed"]').on('click', function () {
$('#' + Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId()).css('z-index', 9);
});
}
structureSetting(e, id) {
let instance = this, parameter = [], mobileWidth = [], _mobileWidth = '', tabWidth = [], _tabWidth = '', VisibleContainerId = Unibase.Platform.Helpers.NavigationHelper.Instance().getLastContainerId();
parameter = id.split('|');
$('#' + VisibleContainerId).css('z-index', 9);
$('#' + VisibleContainerId + ' #mobile-tab-setting').find('input[type=text]').each(function () {
if (($(this).val() != undefined) && ($(this).val() != '') && ($(this).val() != null)) {
mobileWidth.push($(this).val());
}
else {
mobileWidth.push(0);
}
});
_mobileWidth = mobileWidth.join('|');
$('#' + VisibleContainerId + ' #tab-tab-setting').find('input[type=text]').each(function () {
if (($(this).val() != undefined) && ($(this).val() != '') && ($(this).val() != null)) {
tabWidth.push($(this).val());
}
else {
tabWidth.push(0);
}
});
_tabWidth = tabWidth.join('|');
for (var i = 0; i < parameter.length; i++) {
if ((parameter[i] != '') && (parameter[i] != undefined)) {
$('#' + VisibleContainerId).find('#' + parameter[i]).attr({
'data-Mobile_SettingWidth': _mobileWidth, 'data-Tab_SettingWidth': _tabWidth
});
}
}
$('#' + VisibleContainerId).find("#structres-setting-modal").siblings('.modal-footer').find('[data-dismiss="modal"]').click();
}
KpiCode() {
if ($('#code-preview-slash').length == 0) {
$('#option-back').before('');
$('#code-preview-slash').on('click', function () {
let isExecute = false;
if ($(this).attr('data-icon') == "iconslash" && isExecute == false) {
isExecute = true;
let html = $('.designsPreviewAppendClass textarea').val().toString();
$('.designsPreviewAppendClass').html(html);
Unibase.Platform.Widgets.Components.Widget.Instance().customHtml = html;
$(this).attr('data-icon', 'icon');
$(this).find('.la').removeClass('la-eye-slash').addClass('la-eye');
}
if ($(this).attr('data-icon') == "icon" && isExecute == false) {
isExecute = true;
let HTML = $('.designsPreviewAppendClass').html();
$('.designsPreviewAppendClass').html('').append('');
$('.designsPreviewAppendClass textarea').val(HTML);
$(this).attr('data-icon', 'iconslash');
$(this).find('.la').removeClass('la-eye').addClass('la-eye-slash');
}
});
}
else {
$('#code-preview-slash').attr('data-icon', 'iconslash').find('.la').removeClass('la-eye').addClass('la-eye-slash');
}
}
static Instance() {
if (this._instance === undefined)
this._instance = new Unibase.Platform.Widgets.Components._Widget();
return this._instance;
}
}
Components._Widget = _Widget;
})(Components = Widgets.Components || (Widgets.Components = {}));
})(Widgets = Platform.Widgets || (Platform.Widgets = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));
var Unibase;
(function (Unibase) {
let Platform;
(function (Platform) {
let Widgets;
(function (Widgets) {
class WidgetHiddenFields {
constructor() {
this.PortletWidgets = [];
this.Portlets = [];
this.NewWidgets = [];
this.NewWidgetsForPortlet = [];
this.SelectedWidgets = [];
this.deleteWidget = [];
this.editWidget = [];
this.EditPortletAndWidgetsIds = [];
this.uniq_new_portletwid = 0;
this.wid = 0;
this.pwid = 0;
this.unix_pwid = 0;
this.StructureDesigns = [];
this.StructureDesignDelete = [];
}
static Instance() {
if (this._instance === undefined)
this._instance = new WidgetHiddenFields();
return this._instance;
}
}
Widgets.WidgetHiddenFields = WidgetHiddenFields;
})(Widgets = Platform.Widgets || (Platform.Widgets = {}));
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
})(Unibase || (Unibase = {}));