dattatable 1.4.4 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/common/installRequired.d.ts +8 -2
- package/build/common/installRequired.js +47 -46
- package/build/dashboard/navigation.js +3 -2
- package/dist/dattatable.js +2 -2
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CanvasForm.html +1 -1
- package/docs/classes/Dashboard.html +2 -2
- package/docs/classes/DataTable.html +2 -2
- package/docs/classes/Documents.html +5 -5
- package/docs/classes/FilterSlideout.html +1 -1
- package/docs/classes/Footer.html +1 -1
- package/docs/classes/Header.html +1 -1
- package/docs/classes/InstallationRequired.html +1 -1
- package/docs/classes/ItemForm.html +3 -3
- package/docs/classes/LoadingDialog.html +1 -1
- package/docs/classes/Modal.html +1 -1
- package/docs/classes/Navigation.html +1 -1
- package/docs/enums/ActionButtonTypes.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interfaces/IDashboardProps.html +1 -1
- package/docs/interfaces/IDataTable.html +1 -1
- package/docs/interfaces/IDataTableProps.html +1 -1
- package/docs/interfaces/IDocumentsProps.html +1 -1
- package/docs/interfaces/IFilterItem.html +1 -1
- package/docs/interfaces/IFilterProps.html +1 -1
- package/docs/interfaces/IFooterProps.html +1 -1
- package/docs/interfaces/IHeaderProps.html +1 -1
- package/docs/interfaces/IItemFormCreateProps.html +1 -1
- package/docs/interfaces/IItemFormEditProps.html +1 -1
- package/docs/interfaces/IItemFormViewProps.html +1 -1
- package/docs/interfaces/IShowDialogProps.html +1 -0
- package/docs/modules.html +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import { Helper } from "gd-sprest-bs";
|
|
1
|
+
import { Components, Helper } from "gd-sprest-bs";
|
|
2
|
+
export interface IShowDialogProps {
|
|
3
|
+
errors?: Components.IListGroupItem[];
|
|
4
|
+
onHeaderRendered?(el: HTMLElement): any;
|
|
5
|
+
onBodyRendered?(el: HTMLElement): any;
|
|
6
|
+
onFooterRendered?(el: HTMLElement): any;
|
|
7
|
+
}
|
|
2
8
|
/**
|
|
3
9
|
* Installation Required
|
|
4
10
|
* Checks the SharePoint configuration file to see if an install is required.
|
|
@@ -8,5 +14,5 @@ export declare class InstallationRequired {
|
|
|
8
14
|
private static _report;
|
|
9
15
|
private static checkLists;
|
|
10
16
|
static requiresInstall(cfg: Helper.ISPConfig): PromiseLike<boolean>;
|
|
11
|
-
static showDialog(): void;
|
|
17
|
+
static showDialog(props?: IShowDialogProps): void;
|
|
12
18
|
}
|
|
@@ -78,8 +78,9 @@ var InstallationRequired = /** @class */ (function () {
|
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
|
-
InstallationRequired.showDialog = function () {
|
|
81
|
+
InstallationRequired.showDialog = function (props) {
|
|
82
82
|
var _this = this;
|
|
83
|
+
if (props === void 0) { props = {}; }
|
|
83
84
|
// Set the header
|
|
84
85
|
modal_1.Modal.setHeader("Installation Required");
|
|
85
86
|
// Set the body
|
|
@@ -90,7 +91,7 @@ var InstallationRequired = /** @class */ (function () {
|
|
|
90
91
|
},
|
|
91
92
|
{
|
|
92
93
|
onRender: function (el) {
|
|
93
|
-
var items = [];
|
|
94
|
+
var items = props.errors || [];
|
|
94
95
|
// Parse the report
|
|
95
96
|
for (var i = 0; i < _this._report.length; i++) {
|
|
96
97
|
// Add the item
|
|
@@ -103,53 +104,53 @@ var InstallationRequired = /** @class */ (function () {
|
|
|
103
104
|
});
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
|
-
]
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
// Close the dialog
|
|
130
|
-
loadingDialog_1.LoadingDialog.hide();
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
// Render the refresh button
|
|
136
|
-
gd_sprest_bs_1.Components.Tooltip({
|
|
137
|
-
el: el,
|
|
138
|
-
content: "Refresh the Page",
|
|
139
|
-
btnProps: {
|
|
140
|
-
assignTo: function (btn) { btnRefresh = btn; },
|
|
141
|
-
className: "d-none",
|
|
142
|
-
text: "Refresh",
|
|
143
|
-
type: gd_sprest_bs_1.Components.ButtonTypes.OutlinePrimary,
|
|
144
|
-
onClick: function () {
|
|
145
|
-
// Refresh the page
|
|
146
|
-
window.location.reload();
|
|
147
|
-
}
|
|
148
|
-
}
|
|
107
|
+
]
|
|
108
|
+
}).el);
|
|
109
|
+
// Render the install button
|
|
110
|
+
var btnInstall = null;
|
|
111
|
+
gd_sprest_bs_1.Components.Tooltip({
|
|
112
|
+
el: modal_1.Modal.FooterElement,
|
|
113
|
+
content: "Installs the SharePoint Assets",
|
|
114
|
+
btnProps: {
|
|
115
|
+
assignTo: function (btn) { btnInstall = btn; },
|
|
116
|
+
text: "Install",
|
|
117
|
+
type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSuccess,
|
|
118
|
+
onClick: function () {
|
|
119
|
+
// Show a loading dialog
|
|
120
|
+
loadingDialog_1.LoadingDialog.setHeader("Installing the Solution");
|
|
121
|
+
loadingDialog_1.LoadingDialog.setBody("This will close after the assets are installed.");
|
|
122
|
+
loadingDialog_1.LoadingDialog.show();
|
|
123
|
+
_this._cfg.install().then(function () {
|
|
124
|
+
// Hide the button
|
|
125
|
+
btnInstall.hide();
|
|
126
|
+
// Show the refresh button
|
|
127
|
+
btnRefresh.show();
|
|
128
|
+
// Close the dialog
|
|
129
|
+
loadingDialog_1.LoadingDialog.hide();
|
|
149
130
|
});
|
|
150
131
|
}
|
|
151
132
|
}
|
|
152
|
-
})
|
|
133
|
+
});
|
|
134
|
+
// Render the refresh button
|
|
135
|
+
var btnRefresh = null;
|
|
136
|
+
gd_sprest_bs_1.Components.Tooltip({
|
|
137
|
+
el: modal_1.Modal.FooterElement,
|
|
138
|
+
content: "Refresh the Page",
|
|
139
|
+
btnProps: {
|
|
140
|
+
assignTo: function (btn) { btnRefresh = btn; },
|
|
141
|
+
className: "d-none",
|
|
142
|
+
text: "Refresh",
|
|
143
|
+
type: gd_sprest_bs_1.Components.ButtonTypes.OutlinePrimary,
|
|
144
|
+
onClick: function () {
|
|
145
|
+
// Refresh the page
|
|
146
|
+
window.location.reload();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
// Call the events
|
|
151
|
+
props.onHeaderRendered ? props.onHeaderRendered(modal_1.Modal.HeaderElement) : null;
|
|
152
|
+
props.onBodyRendered ? props.onBodyRendered(modal_1.Modal.BodyElement) : null;
|
|
153
|
+
props.onFooterRendered ? props.onFooterRendered(modal_1.Modal.FooterElement) : null;
|
|
153
154
|
// Show the modal
|
|
154
155
|
modal_1.Modal.show();
|
|
155
156
|
};
|
|
@@ -56,11 +56,12 @@ var Navigation = /** @class */ (function () {
|
|
|
56
56
|
type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSecondary
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
|
-
// Call the
|
|
60
|
-
this._props.onSearchRendered ? this._props.onSearchRendered(this._props.el.querySelector("input[type='search']")) : null;
|
|
59
|
+
// Call the event
|
|
61
60
|
this._props.onShowFilter ? ttp.el.addEventListener("click", this._props.onShowFilter) : null;
|
|
62
61
|
this._props.onFilterRendered ? this._props.onFilterRendered(this._props.el) : null;
|
|
63
62
|
}
|
|
63
|
+
// Call the event
|
|
64
|
+
this._props.onSearchRendered ? this._props.onSearchRendered(this._props.el.querySelector("input[type='search']")) : null;
|
|
64
65
|
};
|
|
65
66
|
return Navigation;
|
|
66
67
|
}());
|
package/dist/dattatable.js
CHANGED
|
@@ -38,7 +38,7 @@ eval("\r\n/** Common Components */\r\nvar __createBinding = (this && this.__crea
|
|
|
38
38
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
39
39
|
|
|
40
40
|
"use strict";
|
|
41
|
-
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.InstallationRequired = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@8.8.2/node_modules/gd-sprest-bs/build/index.js\");\r\nvar loadingDialog_1 = __webpack_require__(/*! ./loadingDialog */ \"./build/common/loadingDialog.js\");\r\nvar modal_1 = __webpack_require__(/*! ./modal */ \"./build/common/modal.js\");\r\n/**\r\n * Installation Required\r\n * Checks the SharePoint configuration file to see if an install is required.\r\n */\r\nvar InstallationRequired = /** @class */ (function () {\r\n function InstallationRequired() {\r\n }\r\n // Checks the lists\r\n InstallationRequired.checkLists = function () {\r\n var _this = this;\r\n // Return a promise\r\n return new Promise(function (resolve) {\r\n // Parse the lists\r\n gd_sprest_bs_1.Helper.Executor(_this._cfg._configuration.ListCfg, function (listCfg) {\r\n // Return a promise\r\n return new Promise(function (resolve) {\r\n // Get the list\r\n (0, gd_sprest_bs_1.Web)().Lists(listCfg.ListInformation.Title).query({\r\n Expand: [\"Fields\"]\r\n }).execute(\r\n // Success\r\n function (list) {\r\n // Parse the custom fields\r\n gd_sprest_bs_1.Helper.Executor(listCfg.CustomFields, function (cfg) {\r\n var exists = false;\r\n // Parse the list fields\r\n for (var i = 0; i < list.Fields.results.length; i++) {\r\n // See if the field exists\r\n if (list.Fields.results[i].InternalName == cfg.name) {\r\n // Set the flag\r\n exists = true;\r\n break;\r\n }\r\n }\r\n // See if the field doesn't exist\r\n if (!exists) {\r\n // Field doesn't exist\r\n _this._report.push(\"List '\" + listCfg.ListInformation.Title + \"' is missing a field: \" + cfg.name);\r\n }\r\n }).then(function () {\r\n // Resolve the promise\r\n resolve(null);\r\n });\r\n }, \r\n // Error\r\n function () {\r\n // List doesn't exist\r\n _this._report.push(\"List '\" + listCfg.ListInformation.Title + \"' does not exist\");\r\n // Resolve the promise\r\n resolve(null);\r\n });\r\n });\r\n }).then(function () {\r\n // Resolve the request\r\n resolve();\r\n });\r\n });\r\n };\r\n // Checks the configuration to see if an installation is required\r\n InstallationRequired.requiresInstall = function (cfg) {\r\n var _this = this;\r\n // Save the configuration\r\n this._cfg = cfg;\r\n // Clear the report\r\n this._report = [];\r\n // Return a promise\r\n return new Promise(function (resolve) {\r\n // Check the lists\r\n _this.checkLists().then(function () {\r\n // Resolve the request\r\n resolve(_this._report.length > 0);\r\n });\r\n });\r\n };\r\n InstallationRequired.showDialog = function () {\r\n var _this = this;\r\n // Set the header\r\n modal_1.Modal.setHeader(\"Installation Required\");\r\n // Set the body\r\n modal_1.Modal.setBody(gd_sprest_bs_1.Components.Card({\r\n body: [\r\n {\r\n text: \"An installation is required. The following were missing in your environment:\"\r\n },\r\n {\r\n onRender: function (el) {\r\n var items = [];\r\n // Parse the report\r\n for (var i = 0; i < _this._report.length; i++) {\r\n // Add the item\r\n items.push({ content: _this._report[i] });\r\n }\r\n // Render a list\r\n gd_sprest_bs_1.Components.ListGroup({\r\n el: el,\r\n items: items\r\n });\r\n }\r\n }\r\n ]
|
|
41
|
+
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.InstallationRequired = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@8.8.2/node_modules/gd-sprest-bs/build/index.js\");\r\nvar loadingDialog_1 = __webpack_require__(/*! ./loadingDialog */ \"./build/common/loadingDialog.js\");\r\nvar modal_1 = __webpack_require__(/*! ./modal */ \"./build/common/modal.js\");\r\n/**\r\n * Installation Required\r\n * Checks the SharePoint configuration file to see if an install is required.\r\n */\r\nvar InstallationRequired = /** @class */ (function () {\r\n function InstallationRequired() {\r\n }\r\n // Checks the lists\r\n InstallationRequired.checkLists = function () {\r\n var _this = this;\r\n // Return a promise\r\n return new Promise(function (resolve) {\r\n // Parse the lists\r\n gd_sprest_bs_1.Helper.Executor(_this._cfg._configuration.ListCfg, function (listCfg) {\r\n // Return a promise\r\n return new Promise(function (resolve) {\r\n // Get the list\r\n (0, gd_sprest_bs_1.Web)().Lists(listCfg.ListInformation.Title).query({\r\n Expand: [\"Fields\"]\r\n }).execute(\r\n // Success\r\n function (list) {\r\n // Parse the custom fields\r\n gd_sprest_bs_1.Helper.Executor(listCfg.CustomFields, function (cfg) {\r\n var exists = false;\r\n // Parse the list fields\r\n for (var i = 0; i < list.Fields.results.length; i++) {\r\n // See if the field exists\r\n if (list.Fields.results[i].InternalName == cfg.name) {\r\n // Set the flag\r\n exists = true;\r\n break;\r\n }\r\n }\r\n // See if the field doesn't exist\r\n if (!exists) {\r\n // Field doesn't exist\r\n _this._report.push(\"List '\" + listCfg.ListInformation.Title + \"' is missing a field: \" + cfg.name);\r\n }\r\n }).then(function () {\r\n // Resolve the promise\r\n resolve(null);\r\n });\r\n }, \r\n // Error\r\n function () {\r\n // List doesn't exist\r\n _this._report.push(\"List '\" + listCfg.ListInformation.Title + \"' does not exist\");\r\n // Resolve the promise\r\n resolve(null);\r\n });\r\n });\r\n }).then(function () {\r\n // Resolve the request\r\n resolve();\r\n });\r\n });\r\n };\r\n // Checks the configuration to see if an installation is required\r\n InstallationRequired.requiresInstall = function (cfg) {\r\n var _this = this;\r\n // Save the configuration\r\n this._cfg = cfg;\r\n // Clear the report\r\n this._report = [];\r\n // Return a promise\r\n return new Promise(function (resolve) {\r\n // Check the lists\r\n _this.checkLists().then(function () {\r\n // Resolve the request\r\n resolve(_this._report.length > 0);\r\n });\r\n });\r\n };\r\n InstallationRequired.showDialog = function (props) {\r\n var _this = this;\r\n if (props === void 0) { props = {}; }\r\n // Set the header\r\n modal_1.Modal.setHeader(\"Installation Required\");\r\n // Set the body\r\n modal_1.Modal.setBody(gd_sprest_bs_1.Components.Card({\r\n body: [\r\n {\r\n text: \"An installation is required. The following were missing in your environment:\"\r\n },\r\n {\r\n onRender: function (el) {\r\n var items = props.errors || [];\r\n // Parse the report\r\n for (var i = 0; i < _this._report.length; i++) {\r\n // Add the item\r\n items.push({ content: _this._report[i] });\r\n }\r\n // Render a list\r\n gd_sprest_bs_1.Components.ListGroup({\r\n el: el,\r\n items: items\r\n });\r\n }\r\n }\r\n ]\r\n }).el);\r\n // Render the install button\r\n var btnInstall = null;\r\n gd_sprest_bs_1.Components.Tooltip({\r\n el: modal_1.Modal.FooterElement,\r\n content: \"Installs the SharePoint Assets\",\r\n btnProps: {\r\n assignTo: function (btn) { btnInstall = btn; },\r\n text: \"Install\",\r\n type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSuccess,\r\n onClick: function () {\r\n // Show a loading dialog\r\n loadingDialog_1.LoadingDialog.setHeader(\"Installing the Solution\");\r\n loadingDialog_1.LoadingDialog.setBody(\"This will close after the assets are installed.\");\r\n loadingDialog_1.LoadingDialog.show();\r\n _this._cfg.install().then(function () {\r\n // Hide the button\r\n btnInstall.hide();\r\n // Show the refresh button\r\n btnRefresh.show();\r\n // Close the dialog\r\n loadingDialog_1.LoadingDialog.hide();\r\n });\r\n }\r\n }\r\n });\r\n // Render the refresh button\r\n var btnRefresh = null;\r\n gd_sprest_bs_1.Components.Tooltip({\r\n el: modal_1.Modal.FooterElement,\r\n content: \"Refresh the Page\",\r\n btnProps: {\r\n assignTo: function (btn) { btnRefresh = btn; },\r\n className: \"d-none\",\r\n text: \"Refresh\",\r\n type: gd_sprest_bs_1.Components.ButtonTypes.OutlinePrimary,\r\n onClick: function () {\r\n // Refresh the page\r\n window.location.reload();\r\n }\r\n }\r\n });\r\n // Call the events\r\n props.onHeaderRendered ? props.onHeaderRendered(modal_1.Modal.HeaderElement) : null;\r\n props.onBodyRendered ? props.onBodyRendered(modal_1.Modal.BodyElement) : null;\r\n props.onFooterRendered ? props.onFooterRendered(modal_1.Modal.FooterElement) : null;\r\n // Show the modal\r\n modal_1.Modal.show();\r\n };\r\n InstallationRequired._cfg = null;\r\n InstallationRequired._report = null;\r\n return InstallationRequired;\r\n}());\r\nexports.InstallationRequired = InstallationRequired;\r\n\n\n//# sourceURL=webpack://dattatable/./build/common/installRequired.js?");
|
|
42
42
|
|
|
43
43
|
/***/ }),
|
|
44
44
|
|
|
@@ -126,7 +126,7 @@ eval("\r\nvar __createBinding = (this && this.__createBinding) || (Object.create
|
|
|
126
126
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
127
127
|
|
|
128
128
|
"use strict";
|
|
129
|
-
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.Navigation = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@8.8.2/node_modules/gd-sprest-bs/build/index.js\");\r\nvar filter_1 = __webpack_require__(/*! gd-sprest-bs/build/icons/svgs/filter */ \"./node_modules/.pnpm/gd-sprest-bs@8.8.2/node_modules/gd-sprest-bs/build/icons/svgs/filter.js\");\r\n/**\r\n * Navigation\r\n */\r\nvar Navigation = /** @class */ (function () {\r\n // Constructor\r\n function Navigation(props) {\r\n this._props = null;\r\n // Save the properties\r\n this._props = props;\r\n // Render the navigation\r\n this.render();\r\n // Call the render event\r\n props.onRendered ? props.onRendered(this._props.el) : null;\r\n }\r\n // Renders the component\r\n Navigation.prototype.render = function () {\r\n // Define the default props\r\n var props = {\r\n el: this._props.el,\r\n brand: this._props.title,\r\n enableSearch: this._props.hideSearch != null ? !this._props.hideSearch : null,\r\n items: this._props.items,\r\n itemsEnd: this._props.itemsEnd,\r\n searchBox: {\r\n hideButton: true,\r\n onChange: this._props.onSearch,\r\n onSearch: this._props.onSearch,\r\n placeholder: \"Search this app\",\r\n }\r\n };\r\n // Call the rendering event\r\n this._props.onRendering ? this._props.onRendering(props) : null;\r\n // Render a navbar\r\n var nav = gd_sprest_bs_1.Components.Navbar(props);\r\n // See if we are showing the filter\r\n if (this._props.hideFilter != true) {\r\n // Render the filter icon\r\n // Create a span to wrap the icon in\r\n var span = document.createElement(\"span\");\r\n span.className = \"bg-white d-inline-flex filter-icon ms-2 rounded\";\r\n nav.el.firstElementChild.appendChild(span);\r\n // Render a tooltip\r\n var ttp = gd_sprest_bs_1.Components.Tooltip({\r\n el: span,\r\n content: \"Filters\",\r\n type: gd_sprest_bs_1.Components.TooltipTypes.Secondary,\r\n btnProps: {\r\n // Render the filter button\r\n iconType: filter_1.filter,\r\n iconSize: 28,\r\n type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSecondary\r\n },\r\n });\r\n // Call the
|
|
129
|
+
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.Navigation = void 0;\r\nvar gd_sprest_bs_1 = __webpack_require__(/*! gd-sprest-bs */ \"./node_modules/.pnpm/gd-sprest-bs@8.8.2/node_modules/gd-sprest-bs/build/index.js\");\r\nvar filter_1 = __webpack_require__(/*! gd-sprest-bs/build/icons/svgs/filter */ \"./node_modules/.pnpm/gd-sprest-bs@8.8.2/node_modules/gd-sprest-bs/build/icons/svgs/filter.js\");\r\n/**\r\n * Navigation\r\n */\r\nvar Navigation = /** @class */ (function () {\r\n // Constructor\r\n function Navigation(props) {\r\n this._props = null;\r\n // Save the properties\r\n this._props = props;\r\n // Render the navigation\r\n this.render();\r\n // Call the render event\r\n props.onRendered ? props.onRendered(this._props.el) : null;\r\n }\r\n // Renders the component\r\n Navigation.prototype.render = function () {\r\n // Define the default props\r\n var props = {\r\n el: this._props.el,\r\n brand: this._props.title,\r\n enableSearch: this._props.hideSearch != null ? !this._props.hideSearch : null,\r\n items: this._props.items,\r\n itemsEnd: this._props.itemsEnd,\r\n searchBox: {\r\n hideButton: true,\r\n onChange: this._props.onSearch,\r\n onSearch: this._props.onSearch,\r\n placeholder: \"Search this app\",\r\n }\r\n };\r\n // Call the rendering event\r\n this._props.onRendering ? this._props.onRendering(props) : null;\r\n // Render a navbar\r\n var nav = gd_sprest_bs_1.Components.Navbar(props);\r\n // See if we are showing the filter\r\n if (this._props.hideFilter != true) {\r\n // Render the filter icon\r\n // Create a span to wrap the icon in\r\n var span = document.createElement(\"span\");\r\n span.className = \"bg-white d-inline-flex filter-icon ms-2 rounded\";\r\n nav.el.firstElementChild.appendChild(span);\r\n // Render a tooltip\r\n var ttp = gd_sprest_bs_1.Components.Tooltip({\r\n el: span,\r\n content: \"Filters\",\r\n type: gd_sprest_bs_1.Components.TooltipTypes.Secondary,\r\n btnProps: {\r\n // Render the filter button\r\n iconType: filter_1.filter,\r\n iconSize: 28,\r\n type: gd_sprest_bs_1.Components.ButtonTypes.OutlineSecondary\r\n },\r\n });\r\n // Call the event\r\n this._props.onShowFilter ? ttp.el.addEventListener(\"click\", this._props.onShowFilter) : null;\r\n this._props.onFilterRendered ? this._props.onFilterRendered(this._props.el) : null;\r\n }\r\n // Call the event\r\n this._props.onSearchRendered ? this._props.onSearchRendered(this._props.el.querySelector(\"input[type='search']\")) : null;\r\n };\r\n return Navigation;\r\n}());\r\nexports.Navigation = Navigation;\r\n\n\n//# sourceURL=webpack://dattatable/./build/dashboard/navigation.js?");
|
|
130
130
|
|
|
131
131
|
/***/ }),
|
|
132
132
|
|