gd-bs 6.6.92 → 6.6.93
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/components/custom-element.js +19 -16
- package/build/components/floating-ui/index.js +7 -7
- package/build/index-icons.js +4 -5
- package/build/index.js +4 -5
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +0 -4
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +3 -4
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.js.LICENSE.txt +0 -4
- package/dist/gd-bs.min.js +1 -1
- package/indexv2.html +1 -1
- package/package.json +1 -1
- package/src/components/custom-element.ts +13 -11
- package/src/components/floating-ui/index.ts +7 -7
- package/src/components/form/formTypes.d.ts +2 -2
- package/src/index-icons.ts +5 -6
- package/src/index.d.ts +1 -2
- package/src/index.ts +5 -6
- package/build/render.js +0 -581
- package/src/render.ts +0 -583
|
@@ -72,22 +72,18 @@ var CustomElement = /** @class */ (function () {
|
|
|
72
72
|
switch (elChild.nodeName) {
|
|
73
73
|
// Append the control
|
|
74
74
|
case "BS-FORM-CONTROL":
|
|
75
|
-
|
|
75
|
+
controls.push(this_1.getProps(elChild, "FORM-CONTROL"));
|
|
76
76
|
break;
|
|
77
77
|
// Append the row
|
|
78
78
|
case "ROW":
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (rowControls?.length > 0) {
|
|
79
|
+
// Get the controls
|
|
80
|
+
var columns_1 = [];
|
|
81
|
+
this_1.getChildItems(elChild, "bs-form-control", "FORM-CONTROL").forEach(function (control) {
|
|
83
82
|
// Append the control
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
*/
|
|
89
|
-
// Append the row
|
|
90
|
-
rows.push({ columns: columns });
|
|
83
|
+
columns_1.push({ control: control });
|
|
84
|
+
});
|
|
85
|
+
// Append the columns to the row
|
|
86
|
+
rows.push({ columns: columns_1 });
|
|
91
87
|
break;
|
|
92
88
|
// Default
|
|
93
89
|
default:
|
|
@@ -110,6 +106,7 @@ var CustomElement = /** @class */ (function () {
|
|
|
110
106
|
break;
|
|
111
107
|
}
|
|
112
108
|
};
|
|
109
|
+
var this_1 = this;
|
|
113
110
|
// Parse the child elements
|
|
114
111
|
for (var i = 0; i < el.children.length; i++) {
|
|
115
112
|
_loop_1(i);
|
|
@@ -117,7 +114,7 @@ var CustomElement = /** @class */ (function () {
|
|
|
117
114
|
// Set the rows
|
|
118
115
|
props.rows = rows.length > 0 ? rows : undefined;
|
|
119
116
|
// Set the controls
|
|
120
|
-
|
|
117
|
+
props.controls = this.getChildItems(el, "bs-form-control", componentName);
|
|
121
118
|
props.controls = controls.length > 0 ? controls : undefined;
|
|
122
119
|
// Render the form
|
|
123
120
|
GD.Components.Form(props);
|
|
@@ -269,7 +266,7 @@ var CustomElement = /** @class */ (function () {
|
|
|
269
266
|
var items = [];
|
|
270
267
|
// Get the item elements
|
|
271
268
|
el.querySelectorAll(propName).forEach(function (elItem) {
|
|
272
|
-
var _a, _b, _c, _d;
|
|
269
|
+
var _a, _b, _c, _d, _e;
|
|
273
270
|
// Ensure this is an item
|
|
274
271
|
if (elItem.nodeName == propName.toUpperCase()) {
|
|
275
272
|
var item = _this.getProps(elItem, componentName);
|
|
@@ -291,16 +288,22 @@ var CustomElement = /** @class */ (function () {
|
|
|
291
288
|
case "BS-COL":
|
|
292
289
|
item.title = (_b = (item.title || elItem.innerHTML)) === null || _b === void 0 ? void 0 : _b.trim();
|
|
293
290
|
break;
|
|
291
|
+
case "BS-FORM-CONTROL":
|
|
292
|
+
item.items = _this.getChildItems(elItem, "item", elItem.nodeName);
|
|
293
|
+
break;
|
|
294
294
|
case "CARD-BODY":
|
|
295
295
|
item.actions = _this.getChildItems(elItem, "card-action", elItem.nodeName);
|
|
296
296
|
break;
|
|
297
|
+
case "ITEM":
|
|
298
|
+
item.text = (_c = (item.text || elItem.innerHTML)) === null || _c === void 0 ? void 0 : _c.trim();
|
|
299
|
+
break;
|
|
297
300
|
case "NAVBAR-ITEM":
|
|
298
301
|
item.items = _this.getChildItems(elItem, "navbar-item", componentName);
|
|
299
|
-
item.text = (
|
|
302
|
+
item.text = (_d = (item.text || elItem.innerHTML)) === null || _d === void 0 ? void 0 : _d.trim();
|
|
300
303
|
break;
|
|
301
304
|
case "NAVBAR-ITEM-END":
|
|
302
305
|
item.items = _this.getChildItems(elItem, "navbar-item-end", componentName);
|
|
303
|
-
item.text = (
|
|
306
|
+
item.text = (_e = (item.text || elItem.innerHTML)) === null || _e === void 0 ? void 0 : _e.trim();
|
|
304
307
|
break;
|
|
305
308
|
case "TOOLBAR-ITEM":
|
|
306
309
|
item.buttons = _this.getChildItems(elItem, "bs-button", "BUTTON");
|
|
@@ -155,11 +155,11 @@ var _FloatingUI = /** @class */ (function () {
|
|
|
155
155
|
var middleware = [];
|
|
156
156
|
// See if we are adding the offset option
|
|
157
157
|
if ((_a = this._props.options) === null || _a === void 0 ? void 0 : _a.offset) {
|
|
158
|
-
middleware.push((0, dom_1.offset)(this._props.options.offset));
|
|
158
|
+
middleware.push(typeof (this._props.options.offset) === "boolean" ? (0, dom_1.offset)() : (0, dom_1.offset)(this._props.options.offset));
|
|
159
159
|
}
|
|
160
160
|
// See if we are adding the auto placement option
|
|
161
161
|
if (((_b = this._props.options) === null || _b === void 0 ? void 0 : _b.autoPlacement) || placement.autoPlacement) {
|
|
162
|
-
middleware.push((0, dom_1.autoPlacement)(this._props.options.autoPlacement));
|
|
162
|
+
middleware.push(typeof (this._props.options.autoPlacement) === "boolean" ? (0, dom_1.autoPlacement)() : (0, dom_1.autoPlacement)(this._props.options.autoPlacement));
|
|
163
163
|
}
|
|
164
164
|
// Else, see if we are adding the flip option
|
|
165
165
|
else if ((_c = this._props.options) === null || _c === void 0 ? void 0 : _c.flip) {
|
|
@@ -167,19 +167,19 @@ var _FloatingUI = /** @class */ (function () {
|
|
|
167
167
|
}
|
|
168
168
|
// See if we are adding the hide option
|
|
169
169
|
if ((_d = this._props.options) === null || _d === void 0 ? void 0 : _d.hide) {
|
|
170
|
-
middleware.push((0, dom_1.hide)(this._props.options.hide));
|
|
170
|
+
middleware.push(typeof (this._props.options.hide) === "boolean" ? (0, dom_1.hide)() : (0, dom_1.hide)(this._props.options.hide));
|
|
171
171
|
}
|
|
172
172
|
// See if we are adding the inline option
|
|
173
173
|
if ((_e = this._props.options) === null || _e === void 0 ? void 0 : _e.inline) {
|
|
174
|
-
middleware.push((0, dom_1.inline)(this._props.options.inline));
|
|
174
|
+
middleware.push(typeof (this._props.options.inline) === "boolean" ? (0, dom_1.inline)() : (0, dom_1.inline)(this._props.options.inline));
|
|
175
175
|
}
|
|
176
176
|
// See if we are adding the shift option
|
|
177
177
|
if ((_f = this._props.options) === null || _f === void 0 ? void 0 : _f.shift) {
|
|
178
|
-
middleware.push((0, dom_1.shift)((_g = this._props.options) === null || _g === void 0 ? void 0 : _g.shift));
|
|
178
|
+
middleware.push(typeof (this._props.options.shift) === "boolean" ? (0, dom_1.shift)() : (0, dom_1.shift)((_g = this._props.options) === null || _g === void 0 ? void 0 : _g.shift));
|
|
179
179
|
}
|
|
180
180
|
// See if we are adding the size option
|
|
181
181
|
if ((_h = this._props.options) === null || _h === void 0 ? void 0 : _h.size) {
|
|
182
|
-
middleware.push((0, dom_1.size)((_j = this._props.options) === null || _j === void 0 ? void 0 : _j.size));
|
|
182
|
+
middleware.push(typeof (this._props.options.size) === "boolean" ? (0, dom_1.size)() : (0, dom_1.size)((_j = this._props.options) === null || _j === void 0 ? void 0 : _j.size));
|
|
183
183
|
}
|
|
184
184
|
// Return the middle ware
|
|
185
185
|
return middleware;
|
|
@@ -323,7 +323,7 @@ var _FloatingUI = /** @class */ (function () {
|
|
|
323
323
|
right: 'left',
|
|
324
324
|
bottom: 'top',
|
|
325
325
|
left: 'right'
|
|
326
|
-
}[((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement.split('-')[0]];
|
|
326
|
+
}[(((_c = middlewareData.offset) === null || _c === void 0 ? void 0 : _c.placement) || _this._options.placement).split('-')[0]];
|
|
327
327
|
// Update the location
|
|
328
328
|
Object.assign(_this._elArrow.style, (_b = {
|
|
329
329
|
left: arrowX != null ? "".concat(arrowX, "px") : '',
|
package/build/index-icons.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IconTypes = exports.Icons = exports.
|
|
3
|
+
exports.IconTypes = exports.Icons = exports.Components = void 0;
|
|
4
4
|
// Bootstrap styles
|
|
5
5
|
require("./bs");
|
|
6
6
|
// Import the IE fix
|
|
@@ -8,13 +8,12 @@ require("./ie");
|
|
|
8
8
|
// Bootstrap Components
|
|
9
9
|
var Components = require("./components");
|
|
10
10
|
exports.Components = Components;
|
|
11
|
-
// Render method
|
|
12
|
-
var render_1 = require("./render");
|
|
13
|
-
Object.defineProperty(exports, "render", { enumerable: true, get: function () { return render_1.render; } });
|
|
14
11
|
// Icons
|
|
15
12
|
var icons_1 = require("./icons");
|
|
16
13
|
Object.defineProperty(exports, "Icons", { enumerable: true, get: function () { return icons_1.Icons; } });
|
|
17
14
|
Object.defineProperty(exports, "IconTypes", { enumerable: true, get: function () { return icons_1.IconTypes; } });
|
|
18
15
|
// Bootstrap Global library
|
|
19
|
-
var BS = { Components: Components, Icons: icons_1.Icons, IconTypes: icons_1.IconTypes
|
|
16
|
+
var BS = { Components: Components, Icons: icons_1.Icons, IconTypes: icons_1.IconTypes };
|
|
20
17
|
window["GD"] = window["GD"] || BS;
|
|
18
|
+
// Custom Elements
|
|
19
|
+
require("./custom-elements.js");
|
package/build/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Components = void 0;
|
|
4
4
|
// Bootstrap styles
|
|
5
5
|
require("./bs");
|
|
6
6
|
// Import the IE fix
|
|
@@ -8,9 +8,8 @@ require("./ie");
|
|
|
8
8
|
// Bootstrap Components
|
|
9
9
|
var Components = require("./components");
|
|
10
10
|
exports.Components = Components;
|
|
11
|
-
// Render method
|
|
12
|
-
var render_1 = require("./render");
|
|
13
|
-
Object.defineProperty(exports, "render", { enumerable: true, get: function () { return render_1.render; } });
|
|
14
11
|
// Bootstrap Global library
|
|
15
|
-
var BS = { Components: Components
|
|
12
|
+
var BS = { Components: Components };
|
|
16
13
|
window["GD"] = window["GD"] || BS;
|
|
14
|
+
// Custom Elements
|
|
15
|
+
require("./custom-elements.js");
|