rb-document-form-constructor 0.8.62 → 0.8.63
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/rb-document-form-constructor.esm.js +21 -29
- package/dist/rb-document-form-constructor.min.js +2 -2
- package/dist/rb-document-form-constructor.ssr.js +24 -30
- package/dist/scss/_global.scss +3 -3
- package/dist/scss/_variables.scss +17 -17
- package/dist/scss/components/_doc-form.scss +36 -36
- package/dist/scss/components/_doc-template-constructor.scss +112 -112
- package/dist/scss/components/_doc-template-facet-list.scss +41 -41
- package/dist/scss/components/_doc-template-field-sidebar.scss +52 -52
- package/dist/scss/components/_field-rule-form-modal.scss +27 -27
- package/dist/scss/components.scss +7 -7
- package/package.json +66 -65
- package/src/components/DocForm.vue +289 -289
- package/src/components/DocTemplateConstructor.vue +254 -254
- package/src/components/DocTemplateFacetList.vue +119 -119
- package/src/components/DocTemplateFieldSidebar.vue +293 -293
- package/src/components/DocTemplateSectionModal.vue +63 -63
- package/src/components/FieldRuleFormModal.vue +287 -287
|
@@ -7429,20 +7429,20 @@ VueI18n.version = '8.28.2';
|
|
|
7429
7429
|
|
|
7430
7430
|
var VueI18n$1 = VueI18n;
|
|
7431
7431
|
|
|
7432
|
-
var validate$
|
|
7432
|
+
var validate$1 = {
|
|
7433
7433
|
required: "Поле \"{field}\" обязательно",
|
|
7434
7434
|
min: "Минимальное значение для этого поля {min}"
|
|
7435
7435
|
};
|
|
7436
7436
|
var Ru = {
|
|
7437
|
-
validate: validate$
|
|
7437
|
+
validate: validate$1
|
|
7438
7438
|
};
|
|
7439
7439
|
|
|
7440
|
-
var validate
|
|
7440
|
+
var validate = {
|
|
7441
7441
|
required: "\"{field}\" жолы міндетті",
|
|
7442
7442
|
min: "Бұл жол үшін ең кіші мән {min}"
|
|
7443
7443
|
};
|
|
7444
7444
|
var Kz = {
|
|
7445
|
-
validate: validate
|
|
7445
|
+
validate: validate
|
|
7446
7446
|
};
|
|
7447
7447
|
|
|
7448
7448
|
const locale = localStorage.getItem('lang') ? localStorage.getItem('lang') : 'Ru';
|
|
@@ -13277,12 +13277,6 @@ function rng() {
|
|
|
13277
13277
|
return rnds8Pool.slice(poolPtr, poolPtr += 16);
|
|
13278
13278
|
}
|
|
13279
13279
|
|
|
13280
|
-
var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
13281
|
-
|
|
13282
|
-
function validate(uuid) {
|
|
13283
|
-
return typeof uuid === 'string' && REGEX.test(uuid);
|
|
13284
|
-
}
|
|
13285
|
-
|
|
13286
13280
|
/**
|
|
13287
13281
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
13288
13282
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
@@ -13291,26 +13285,24 @@ function validate(uuid) {
|
|
|
13291
13285
|
const byteToHex = [];
|
|
13292
13286
|
|
|
13293
13287
|
for (let i = 0; i < 256; ++i) {
|
|
13294
|
-
byteToHex.push((i + 0x100).toString(16).
|
|
13288
|
+
byteToHex.push((i + 0x100).toString(16).slice(1));
|
|
13295
13289
|
}
|
|
13296
13290
|
|
|
13297
|
-
function
|
|
13291
|
+
function unsafeStringify(arr, offset = 0) {
|
|
13298
13292
|
// Note: Be careful editing this code! It's been tuned for performance
|
|
13299
13293
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
|
13300
|
-
|
|
13301
|
-
// of the following:
|
|
13302
|
-
// - One or more input array values don't map to a hex octet (leading to
|
|
13303
|
-
// "undefined" in the uuid)
|
|
13304
|
-
// - Invalid input values for the RFC `version` or `variant` fields
|
|
13305
|
-
|
|
13306
|
-
if (!validate(uuid)) {
|
|
13307
|
-
throw TypeError('Stringified UUID is invalid');
|
|
13308
|
-
}
|
|
13309
|
-
|
|
13310
|
-
return uuid;
|
|
13294
|
+
return (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
|
13311
13295
|
}
|
|
13312
13296
|
|
|
13297
|
+
var native = {
|
|
13298
|
+
randomUUID: crypto.randomUUID
|
|
13299
|
+
};
|
|
13300
|
+
|
|
13313
13301
|
function v4(options, buf, offset) {
|
|
13302
|
+
if (native.randomUUID && !buf && !options) {
|
|
13303
|
+
return native.randomUUID();
|
|
13304
|
+
}
|
|
13305
|
+
|
|
13314
13306
|
options = options || {};
|
|
13315
13307
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
13316
13308
|
|
|
@@ -13327,7 +13319,7 @@ function v4(options, buf, offset) {
|
|
|
13327
13319
|
return buf;
|
|
13328
13320
|
}
|
|
13329
13321
|
|
|
13330
|
-
return
|
|
13322
|
+
return unsafeStringify(rnds);
|
|
13331
13323
|
}
|
|
13332
13324
|
|
|
13333
13325
|
var toString = Object.prototype.toString;
|
|
@@ -14792,11 +14784,11 @@ var script = {
|
|
|
14792
14784
|
|
|
14793
14785
|
removeSection(section, index) {
|
|
14794
14786
|
this.formConfig.sections.splice(index, 1);
|
|
14795
|
-
/*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
|
|
14796
|
-
onOk: (event, modal) => {
|
|
14797
|
-
this.formConfig.sections.splice(index, 1);
|
|
14798
|
-
UtModal.closeModal(modal);
|
|
14799
|
-
}
|
|
14787
|
+
/*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
|
|
14788
|
+
onOk: (event, modal) => {
|
|
14789
|
+
this.formConfig.sections.splice(index, 1);
|
|
14790
|
+
UtModal.closeModal(modal);
|
|
14791
|
+
}
|
|
14800
14792
|
});*/
|
|
14801
14793
|
},
|
|
14802
14794
|
|