studiokit-scaffolding-js 4.5.2-next.3.4 → 4.5.3
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.
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { Blot } from 'parchment/dist/src/blot/abstract/blot';
|
|
2
|
-
import { BlotConstructor } from 'parchment/dist/src/registry';
|
|
3
2
|
declare const Container: typeof import("parchment/dist/src/blot/abstract/container").default;
|
|
4
|
-
export interface BaseTableBlotConstructor extends BlotConstructor {
|
|
5
|
-
dataValue(): string;
|
|
6
|
-
}
|
|
7
3
|
/**
|
|
8
4
|
* A base class for all Table module blots to inherit.
|
|
9
5
|
*
|
|
@@ -15,7 +11,6 @@ export declare class BaseTableBlot extends Container {
|
|
|
15
11
|
static requiredParentName: string | null;
|
|
16
12
|
/** alternate to `allowedChildren`, to avoid circular class refs */
|
|
17
13
|
static allowedChildrenNames: string[];
|
|
18
|
-
static create(value: string): Node;
|
|
19
14
|
static createWithValue(tagName: string, value: string): HTMLElement;
|
|
20
15
|
/**
|
|
21
16
|
* Check if the blot only contains `<p><br></p>`
|
|
@@ -31,9 +31,6 @@ var BaseTableBlot = /** @class */ (function (_super) {
|
|
|
31
31
|
function BaseTableBlot() {
|
|
32
32
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
33
33
|
}
|
|
34
|
-
BaseTableBlot.create = function (value) {
|
|
35
|
-
return _super.create.call(this, value);
|
|
36
|
-
};
|
|
37
34
|
BaseTableBlot.createWithValue = function (tagName, value) {
|
|
38
35
|
var node = _super.create.call(this, tagName);
|
|
39
36
|
node.setAttribute(constants_1.ATTRIBUTE.DATA_VALUE, value);
|
package/lib/utils/sort.js
CHANGED
|
@@ -60,7 +60,7 @@ var sortByNames = function (a, b) {
|
|
|
60
60
|
};
|
|
61
61
|
exports.sortByNames = sortByNames;
|
|
62
62
|
var sortByNameNatural = function (a, b) {
|
|
63
|
-
return a.name.localeCompare(b.name, undefined, { numeric: true, sensitivity: 'base' });
|
|
63
|
+
return a.name.trim().localeCompare(b.name.trim(), undefined, { numeric: true, sensitivity: 'base' });
|
|
64
64
|
};
|
|
65
65
|
exports.sortByNameNatural = sortByNameNatural;
|
|
66
66
|
var sort = function (array, attributeName, shouldSortAscending) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "studiokit-scaffolding-js",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.3",
|
|
4
4
|
"description": "Common scaffolding for Studio apps at Purdue",
|
|
5
5
|
"repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
|
|
6
6
|
"license": "MIT",
|