@enos5/enos-vue-default 1.8.12 → 1.8.14
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/dist/components/CustomSelect.vue.d.ts +0 -9
- package/dist/components/InputGroup.vue.d.ts +0 -9
- package/dist/components/SelectInput.vue.d.ts +0 -9
- package/dist/{index-G1cAlO5C.js → index-1G1T4Qrv.js} +373 -203
- package/dist/index-1G1T4Qrv.js.map +1 -0
- package/dist/{index-Ch9hFG6f.js → index-BBGZQp5w.js} +17 -6
- package/dist/{index-Ch9hFG6f.js.map → index-BBGZQp5w.js.map} +1 -1
- package/dist/{index-BHTvTOGk.js → index-BR_u7CCm.js} +4 -2
- package/dist/{index-BHTvTOGk.js.map → index-BR_u7CCm.js.map} +1 -1
- package/dist/{index-6eLEqodC.js → index-Bsqrrc8R.js} +35 -4
- package/dist/index-Bsqrrc8R.js.map +1 -0
- package/dist/index-CiFpmPug.js.map +1 -1
- package/dist/{index-Cjhk16SP.js → index-CuSlJQwq.js} +10 -8
- package/dist/index-CuSlJQwq.js.map +1 -0
- package/dist/{index-D7sesyMc.js → index-D72Leh_x.js} +4 -4
- package/dist/{index-D7sesyMc.js.map → index-D72Leh_x.js.map} +1 -1
- package/dist/{index-BPcdR1qv.js → index-ukywSRmc.js} +10 -9
- package/dist/index-ukywSRmc.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.node.js +1 -1
- package/dist/{plugin-BB5Wpvyp.js → plugin-2Tim-PB2.js} +16 -31
- package/dist/plugin-2Tim-PB2.js.map +1 -0
- package/dist/styles.css +1603 -143
- package/dist/{tinymce-WPdeGquX.js → tinymce-Dg510HCs.js} +659 -388
- package/dist/tinymce-Dg510HCs.js.map +1 -0
- package/package.json +36 -36
- package/dist/index-6eLEqodC.js.map +0 -1
- package/dist/index-BPcdR1qv.js.map +0 -1
- package/dist/index-Cjhk16SP.js.map +0 -1
- package/dist/index-G1cAlO5C.js.map +0 -1
- package/dist/plugin-BB5Wpvyp.js.map +0 -1
- package/dist/tinymce-WPdeGquX.js.map +0 -1
|
@@ -5955,6 +5955,14 @@ function requireModel() {
|
|
|
5955
5955
|
processor: "boolean",
|
|
5956
5956
|
default: true
|
|
5957
5957
|
});
|
|
5958
|
+
registerOption("table_default_header_rows", {
|
|
5959
|
+
processor: "number",
|
|
5960
|
+
default: 0
|
|
5961
|
+
});
|
|
5962
|
+
registerOption("table_default_header_cols", {
|
|
5963
|
+
processor: "number",
|
|
5964
|
+
default: 0
|
|
5965
|
+
});
|
|
5958
5966
|
};
|
|
5959
5967
|
const getTableCloneElements = (editor) => {
|
|
5960
5968
|
return Optional.from(editor.options.get("table_clone_elements"));
|
|
@@ -5974,6 +5982,8 @@ function requireModel() {
|
|
|
5974
5982
|
const hasTableResizeBars = option("table_resize_bars");
|
|
5975
5983
|
const shouldStyleWithCss = option("table_style_by_css");
|
|
5976
5984
|
const shouldMergeContentOnPaste = option("table_merge_content_on_paste");
|
|
5985
|
+
const defaultHeaderRows = option("table_default_header_rows");
|
|
5986
|
+
const defaultHeaderCols = option("table_default_header_cols");
|
|
5977
5987
|
const getTableDefaultAttributes = (editor) => {
|
|
5978
5988
|
const options = editor.options;
|
|
5979
5989
|
const defaultAttributes = options.get("table_default_attributes");
|
|
@@ -5997,14 +6007,15 @@ function requireModel() {
|
|
|
5997
6007
|
const getSelectionStart = (editor) => SugarElement.fromDom(editor.selection.getStart());
|
|
5998
6008
|
const getPixelWidth = (elm) => elm.getBoundingClientRect().width;
|
|
5999
6009
|
const getPixelHeight = (elm) => elm.getBoundingClientRect().height;
|
|
6010
|
+
const addPxSuffix = (size) => /^\d+(\.\d+)?$/.test(size) ? size + "px" : size;
|
|
6000
6011
|
const getRawValue = (prop) => (editor, elm) => {
|
|
6001
6012
|
const raw = editor.dom.getStyle(elm, prop) || editor.dom.getAttrib(elm, prop);
|
|
6002
|
-
return Optional.from(raw).filter(isNotEmpty);
|
|
6013
|
+
return Optional.from(raw).filter(isNotEmpty).map(addPxSuffix);
|
|
6003
6014
|
};
|
|
6004
|
-
const getRawWidth = getRawValue("width");
|
|
6005
|
-
const getRawHeight = getRawValue("height");
|
|
6006
6015
|
const isPercentage$1 = (value2) => /^(\d+(\.\d+)?)%$/.test(value2);
|
|
6007
6016
|
const isPixel = (value2) => /^(\d+(\.\d+)?)px$/.test(value2);
|
|
6017
|
+
const getRawWidth = getRawValue("width");
|
|
6018
|
+
const getRawHeight = getRawValue("height");
|
|
6008
6019
|
const isInEditableContext$1 = (cell2) => closest$2(cell2, isTag("table")).exists(isEditable$1);
|
|
6009
6020
|
const lookupTable = (container) => {
|
|
6010
6021
|
return ancestor$1(container, "table");
|
|
@@ -7229,8 +7240,8 @@ function requireModel() {
|
|
|
7229
7240
|
const insertTable = (editor, rows2, columns2, options = {}) => {
|
|
7230
7241
|
const checkInput = (val) => isNumber(val) && val > 0;
|
|
7231
7242
|
if (checkInput(rows2) && checkInput(columns2)) {
|
|
7232
|
-
const headerRows = options.headerRows
|
|
7233
|
-
const headerColumns = options.headerColumns
|
|
7243
|
+
const headerRows = options.headerRows ?? defaultHeaderRows(editor);
|
|
7244
|
+
const headerColumns = options.headerColumns ?? defaultHeaderCols(editor);
|
|
7234
7245
|
return insert(editor, columns2, rows2, headerColumns, headerRows);
|
|
7235
7246
|
} else {
|
|
7236
7247
|
console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table.");
|
|
@@ -7802,4 +7813,4 @@ const index$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
|
7802
7813
|
export {
|
|
7803
7814
|
index$1 as i
|
|
7804
7815
|
};
|
|
7805
|
-
//# sourceMappingURL=index-
|
|
7816
|
+
//# sourceMappingURL=index-BBGZQp5w.js.map
|