rb-document-form-constructor 0.9.15 → 0.9.16
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 +11 -15
- package/dist/rb-document-form-constructor.min.js +1 -1
- package/dist/rb-document-form-constructor.ssr.js +17 -21
- 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 +46 -46
- 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 +61 -61
- package/src/components/DocForm.vue +301 -301
- package/src/components/DocTemplateConstructor.vue +262 -262
- package/src/components/DocTemplateFacetList.vue +127 -127
- package/src/components/DocTemplateFieldSidebar.vue +293 -293
- package/src/components/DocTemplateSectionModal.vue +63 -63
- package/src/components/FieldRuleFormModal.vue +287 -287
|
@@ -7,24 +7,20 @@ const UtFormConfig = {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
let found = null;
|
|
10
|
-
formConfig.sections.
|
|
10
|
+
formConfig.sections.forEach(r => {
|
|
11
|
+
console.info(r);
|
|
12
|
+
|
|
11
13
|
if (r.columns) {
|
|
12
|
-
r.columns.
|
|
14
|
+
r.columns.forEach(c => {
|
|
13
15
|
c.fields.forEach(f => {
|
|
16
|
+
console.info(f.name);
|
|
17
|
+
|
|
14
18
|
if (f.name === fieldName) {
|
|
15
19
|
found = f;
|
|
16
20
|
}
|
|
17
21
|
});
|
|
18
|
-
|
|
19
|
-
if (found) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
if (found) {
|
|
26
|
-
return false;
|
|
27
|
-
}
|
|
28
24
|
});
|
|
29
25
|
return found;
|
|
30
26
|
},
|
|
@@ -7877,11 +7873,11 @@ var script = {
|
|
|
7877
7873
|
|
|
7878
7874
|
removeSection(section, index) {
|
|
7879
7875
|
this.formConfig.sections.splice(index, 1);
|
|
7880
|
-
/*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
|
|
7881
|
-
onOk: (event, modal) => {
|
|
7882
|
-
this.formConfig.sections.splice(index, 1);
|
|
7883
|
-
UtModal.closeModal(modal);
|
|
7884
|
-
}
|
|
7876
|
+
/*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
|
|
7877
|
+
onOk: (event, modal) => {
|
|
7878
|
+
this.formConfig.sections.splice(index, 1);
|
|
7879
|
+
UtModal.closeModal(modal);
|
|
7880
|
+
}
|
|
7885
7881
|
});*/
|
|
7886
7882
|
},
|
|
7887
7883
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var RbDocumentFormConstructor=function(Vue){"use strict";function _interopDefaultLegacy(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Vue__default=_interopDefaultLegacy(Vue);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty$1(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty$1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var UtFormConfig={findField:function(t,e){if(!e||!e.sections)return null;var n=null;return e.sections.every((function(e){if(e.columns&&e.columns.every((function(e){if(e.fields.forEach((function(e){e.name===t&&(n=e)})),n)return!1})),n)return!1})),n},findRule:function(t,e){if(!e||!e.sections)return null;var n=null;return e.sections.every((function(e){if(e.columns&&e.columns.every((function(e){if(e.fields.every((function(e){if(e.rules&&e.rules.forEach((function(e){e.id===t&&(n=e)})),n)return!1})),n)return!1})),n)return!1})),n},getFields:function(t){var e=[];return t.sections.forEach((function(t){t.columns&&t.columns.forEach((function(t){t.fields&&t.fields.forEach((function(t){e.push(t)}))}))})),e},parseFacets:function(t){var e=[];return t.sections.forEach((function(t){t.columns.forEach((function(t){t.fields.forEach((function(t){e.indexOf(t.facet)<0&&e.push(t.facet)}))}))})),e}},__clone=function(t){return JSON.parse(JSON.stringify(t))},_assign=function(){return _assign=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_assign.apply(this,arguments)},__mergeInputInMapOfArrays=function(t,e){for(var n in e){var o=t[n];o?__mergeInputsInArray(o,e[n]):t[n]=e[n]}},__mergeInputsInMap=function(t,e){for(var n in e)t[n]=_assign(t[n]?t[n]:{},e[n]?e[n]:{})},__mergeInputsInArray=function(t,e){e.forEach((function(e){var n=t.findIndex((function(t){return t.name===e.name}));n>=0?t[n]=e:t.push(e)}))},__applyDefaultProps=function(t,e){for(var n in t.props){var o,r,i;if(e){if(e.input.propsData[n])t.propsData[n]=e.input.propsData[n],null!==(o=t.propsData)&&void 0!==o&&o.type&&null!==(r=t.props)&&void 0!==r&&null!==(i=r.type)&&void 0!==i&&i.default&&(t.propsData.type=t.props.type.default)}else t.propsData[n]=t.props[n].default}},__applyRefProps=function(t,e){if(null!=e&&e.propsData)for(var n in e.propsData)t.propsData[n]=e.propsData[n]},__filterInputsByMultiple=function(t,e){return t.filter((function(t){return t.multiple&&e||!t.multiple&&!e}))},fcInputs={string:{text:"Текст",name:"string",type:"b-form-input",props:{placeholder:{type:"string",default:null,label:"Надпись внутри",visible:!0},type:{type:"string",default:"text",label:"Тип данных",visible:!0}},propsData:{},defaultValue:null},number:{text:"Число",name:"number",type:"b-form-input",props:{placeholder:{type:"string",default:null,label:"Надпись внутри",visible:!0},type:{type:"string",default:"number",label:"Тип данных",visible:!0},min:{type:"number",default:null,label:"Минимальное значение",visible:!0}},propsData:{},defaultValue:null},memo:{text:"Большой текст",name:"memo",type:"b-form-textarea",props:{placeholder:{type:"string",default:null,label:"Надпись внутри",visible:!0},max:{type:"number",default:30,label:"Максимальное значение",visible:!0}},propsData:{},defaultValue:null},date:{text:"Дата",name:"date",type:"rb-date-picker-input",props:{minCurrentDate:{type:"boolean",default:!1,label:"Установить текущую дату как минимальную",visible:!0},minDate:{type:"date",default:null,label:"Установить минимальную дату",visible:!0},maxDate:{type:"date",default:null,label:"Установить максимальную дату",visible:!0}},propsData:{},defaultValue:null},datetime:{text:"Дата и вермя",name:"date",type:"rb-date-picker-input",props:{minDate:{type:"date",default:null,label:"Установить минимальную дату",visible:!0},maxDate:{type:"date",default:null,label:"Установить максимальную дату",visible:!0}},propsData:{},defaultValue:null},phone:{text:"Телефон",name:"phone",type:"rb-phone-input",props:{placeholder:{type:"string",default:"Телефон",label:"Надпись внутри",visible:!0}},propsData:{},defaultValue:null},boolean:{text:"Булевое",name:"boolean",type:"rb-boolean-single-option-input",props:{block:{type:"boolean",default:!0,label:"Растянуть",visible:!0},bordered:{type:"boolean",label:"Граница вокруг",default:!0,visible:!0}},propsData:{},defaultValue:null},email:{text:"Email",name:"email",type:"rb-email-input",props:{},propsData:{},defaultValue:[],multiple:!0}},fcPrimitiveInputs={string:[__clone(fcInputs.string),__clone(fcInputs.number),__clone(fcInputs.memo),__clone(fcInputs.phone)],memo:[__clone(fcInputs.memo),__clone(fcInputs.string)],number:[__clone(fcInputs.string),__clone(fcInputs.number)],double:[__clone(fcInputs.string),__clone(fcInputs.number)],float:[__clone(fcInputs.string),__clone(fcInputs.number)],integer:[__clone(fcInputs.string),__clone(fcInputs.number)],long:[__clone(fcInputs.string),__clone(fcInputs.number)],date:[__clone(fcInputs.date)],datetime:[__clone(fcInputs.datetime)],boolean:[__clone(fcInputs.boolean)],email:[__clone(fcInputs.email)]},fcDictInputs=[],fcRefInputs={},fcRefInputConfigs={},baseConfig={inputs:__clone(fcInputs),primitiveInputs:__clone(fcPrimitiveInputs),dictInputs:__clone(fcDictInputs),refInputs:__clone(fcRefInputs),refInputConfigs:__clone(fcRefInputConfigs),rules:[],icons:{iconExpandFacet:"icon-chevron-down",iconCollapseFacet:"icon-chevron-up",iconCloseFieldSidebar:"icon-chevron-right",iconOpenFieldSidebar:"icon-chevron-left",iconAdd:"icon-add",iconEdit:"icon-edit",iconDelete:"icon-delete",iconDrag:"icon-reorder"},ruleContext:{}},UtFormConstructor={config:{},init:function(t){this.config=__clone(baseConfig),t&&(t.inputs&&__mergeInputsInMap(this.config.inputs,t.inputs),t.primitiveInputs&&__mergeInputInMapOfArrays(this.config.primitiveInputs,t.primitiveInputs),t.dictInputs&&__mergeInputsInArray(this.config.dictInputs,t.dictInputs),t.refInputs&&__mergeInputInMapOfArrays(this.config.refInputs,t.refInputs),t.refInputConfigs&&(this.config.refInputConfigs=t.refInputConfigs),t.icons&&(this.config.icons=_assign(this.config.icons,t.icons)),t.rules&&(this.config.rules=t.rules),t.ruleContext&&(this.config.ruleContext=t.ruleContext))},getInputTypes:function(t){var e=[];return t?e=t.dict&&!this.config.refInputs[t.ref]?__filterInputsByMultiple(this.config.dictInputs,t.multiple):t.ref?__filterInputsByMultiple(this.config.refInputs[t.ref],t.multiple):__filterInputsByMultiple(this.config.primitiveInputs[t.type],t.multiple):e},hasMultipleInputTypes:function(t){var e=this.getInputTypes(_objectSpread2(_objectSpread2({},t),{},{multiple:!0}));return e&&e.length>0},getDefaultInput:function(t){var e=null,n=this.getInputTypes(t);return n||(e=this.primitiveInputs[0]),t.ref&&this.config.refInputs[t.ref]?(e=__clone(n[0]),__applyDefaultProps(e),this.config.refInputConfigs[t.ref]&&this.config.refInputConfigs[t.ref][e.name]&&__applyRefProps(e,this.config.refInputConfigs[t.ref][e.name])):t.dict?((e=__clone(n[0])).props.dict.default=t.ref,__applyDefaultProps(e)):(e=__clone(n[0]),__applyDefaultProps(e)),e},getInputTypeByName:function(t,e){var n=__clone(this.config.inputs[t]);return e.ref&&this.config.refInputs[e.ref]?(__applyDefaultProps(n),this.config.refInputConfigs[e.ref]&&this.config.refInputConfigs[e.ref][n.name]&&__applyRefProps(n,this.config.refInputConfigs[e.ref][n.name])):e.dict?(n.props.dict.default=e.ref,__applyDefaultProps(n,e)):__applyDefaultProps(n,e),n.propsData.ref=e.name,n},getAvailableFieldRules:function(t){return this.config.rules.filter((function(e){return!e.fields||0===e.fields.length||e.fields.indexOf(t.name)>=0}))},getRuleContext:function(){return this.config.ruleContext},runRule:function runRule(context,script){context=context||{},context.console=console,context.Date=Date,context.Math=Math;var appendScript="";for(var v in context)appendScript+="var ".concat(v," = this.").concat(v,";\n");appendScript=appendScript?appendScript+"\n":"";var func=function func(script){return eval(script)};func.call(context,appendScript+script)}},script$5={name:"DocTemplateSectionModal",props:{section:Object,mode:{type:String,default:"ins"},onAfterOk:{type:Function,default:function(){}}},data:function(){return{id:"rb-doc-template-section-modal",label:{}}},computed:{title:function(){return"ins"===this.mode?"Добавление секции":"Редактирование секции"}},watch:{section:function(){this.section&&(this.label=this.section)}},methods:{onOk:function(){var t=this;this.section=this.label,this.onAfterOk&&this.onAfterOk(),this.$nextTick((function(){t.$bvModal.hide(t.id)}))}},created:function(){this.section&&(this.label=this.section)}};function normalizeComponent(t,e,n,o,r,i,a,l,s,c){"boolean"!=typeof a&&(s=l,l=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),o&&(u._scopeId=o),i?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}var __vue_script__$5=script$5,__vue_render__$5=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{id:"rb-doc-template-section-modal","modal-class":"rb-doc-template-section-modal","ok-title":"Сохранить изменения","cancel-variant":"outline-gray","cancel-title":"Отмена",title:t.title},on:{ok:function(e){return e.preventDefault(),t.onOk.apply(null,arguments)}}},[n("b-form",{on:{submit:function(e){return e.preventDefault(),t.onOk.apply(null,arguments)}}},[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Наименование секции"}},[n("rb-multi-lang-input",{model:{value:t.label,callback:function(e){t.label=e},expression:"label"}})],1)],1)],1)],1)],1)},__vue_staticRenderFns__$5=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,__vue_component__$6=normalizeComponent({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,!1,void 0,void 0,void 0),DocTemplateSectionModal=__vue_component__$6,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return commonjsRequire(t,null==e?n.path:e)}},n.exports),n.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
1
|
+
var RbDocumentFormConstructor=function(Vue){"use strict";function _interopDefaultLegacy(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Vue__default=_interopDefaultLegacy(Vue);function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread2(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty$1(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty$1(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i=[],a=!0,l=!1;try{for(n=n.call(t);!(a=(o=n.next()).done)&&(i.push(o.value),!e||i.length!==e);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var UtFormConfig={findField:function(t,e){if(!e||!e.sections)return null;var n=null;return e.sections.forEach((function(e){console.info(e),e.columns&&e.columns.forEach((function(e){e.fields.forEach((function(e){console.info(e.name),e.name===t&&(n=e)}))}))})),n},findRule:function(t,e){if(!e||!e.sections)return null;var n=null;return e.sections.every((function(e){if(e.columns&&e.columns.every((function(e){if(e.fields.every((function(e){if(e.rules&&e.rules.forEach((function(e){e.id===t&&(n=e)})),n)return!1})),n)return!1})),n)return!1})),n},getFields:function(t){var e=[];return t.sections.forEach((function(t){t.columns&&t.columns.forEach((function(t){t.fields&&t.fields.forEach((function(t){e.push(t)}))}))})),e},parseFacets:function(t){var e=[];return t.sections.forEach((function(t){t.columns.forEach((function(t){t.fields.forEach((function(t){e.indexOf(t.facet)<0&&e.push(t.facet)}))}))})),e}},__clone=function(t){return JSON.parse(JSON.stringify(t))},_assign=function(){return _assign=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_assign.apply(this,arguments)},__mergeInputInMapOfArrays=function(t,e){for(var n in e){var o=t[n];o?__mergeInputsInArray(o,e[n]):t[n]=e[n]}},__mergeInputsInMap=function(t,e){for(var n in e)t[n]=_assign(t[n]?t[n]:{},e[n]?e[n]:{})},__mergeInputsInArray=function(t,e){e.forEach((function(e){var n=t.findIndex((function(t){return t.name===e.name}));n>=0?t[n]=e:t.push(e)}))},__applyDefaultProps=function(t,e){for(var n in t.props){var o,r,i;if(e){if(e.input.propsData[n])t.propsData[n]=e.input.propsData[n],null!==(o=t.propsData)&&void 0!==o&&o.type&&null!==(r=t.props)&&void 0!==r&&null!==(i=r.type)&&void 0!==i&&i.default&&(t.propsData.type=t.props.type.default)}else t.propsData[n]=t.props[n].default}},__applyRefProps=function(t,e){if(null!=e&&e.propsData)for(var n in e.propsData)t.propsData[n]=e.propsData[n]},__filterInputsByMultiple=function(t,e){return t.filter((function(t){return t.multiple&&e||!t.multiple&&!e}))},fcInputs={string:{text:"Текст",name:"string",type:"b-form-input",props:{placeholder:{type:"string",default:null,label:"Надпись внутри",visible:!0},type:{type:"string",default:"text",label:"Тип данных",visible:!0}},propsData:{},defaultValue:null},number:{text:"Число",name:"number",type:"b-form-input",props:{placeholder:{type:"string",default:null,label:"Надпись внутри",visible:!0},type:{type:"string",default:"number",label:"Тип данных",visible:!0},min:{type:"number",default:null,label:"Минимальное значение",visible:!0}},propsData:{},defaultValue:null},memo:{text:"Большой текст",name:"memo",type:"b-form-textarea",props:{placeholder:{type:"string",default:null,label:"Надпись внутри",visible:!0},max:{type:"number",default:30,label:"Максимальное значение",visible:!0}},propsData:{},defaultValue:null},date:{text:"Дата",name:"date",type:"rb-date-picker-input",props:{minCurrentDate:{type:"boolean",default:!1,label:"Установить текущую дату как минимальную",visible:!0},minDate:{type:"date",default:null,label:"Установить минимальную дату",visible:!0},maxDate:{type:"date",default:null,label:"Установить максимальную дату",visible:!0}},propsData:{},defaultValue:null},datetime:{text:"Дата и вермя",name:"date",type:"rb-date-picker-input",props:{minDate:{type:"date",default:null,label:"Установить минимальную дату",visible:!0},maxDate:{type:"date",default:null,label:"Установить максимальную дату",visible:!0}},propsData:{},defaultValue:null},phone:{text:"Телефон",name:"phone",type:"rb-phone-input",props:{placeholder:{type:"string",default:"Телефон",label:"Надпись внутри",visible:!0}},propsData:{},defaultValue:null},boolean:{text:"Булевое",name:"boolean",type:"rb-boolean-single-option-input",props:{block:{type:"boolean",default:!0,label:"Растянуть",visible:!0},bordered:{type:"boolean",label:"Граница вокруг",default:!0,visible:!0}},propsData:{},defaultValue:null},email:{text:"Email",name:"email",type:"rb-email-input",props:{},propsData:{},defaultValue:[],multiple:!0}},fcPrimitiveInputs={string:[__clone(fcInputs.string),__clone(fcInputs.number),__clone(fcInputs.memo),__clone(fcInputs.phone)],memo:[__clone(fcInputs.memo),__clone(fcInputs.string)],number:[__clone(fcInputs.string),__clone(fcInputs.number)],double:[__clone(fcInputs.string),__clone(fcInputs.number)],float:[__clone(fcInputs.string),__clone(fcInputs.number)],integer:[__clone(fcInputs.string),__clone(fcInputs.number)],long:[__clone(fcInputs.string),__clone(fcInputs.number)],date:[__clone(fcInputs.date)],datetime:[__clone(fcInputs.datetime)],boolean:[__clone(fcInputs.boolean)],email:[__clone(fcInputs.email)]},fcDictInputs=[],fcRefInputs={},fcRefInputConfigs={},baseConfig={inputs:__clone(fcInputs),primitiveInputs:__clone(fcPrimitiveInputs),dictInputs:__clone(fcDictInputs),refInputs:__clone(fcRefInputs),refInputConfigs:__clone(fcRefInputConfigs),rules:[],icons:{iconExpandFacet:"icon-chevron-down",iconCollapseFacet:"icon-chevron-up",iconCloseFieldSidebar:"icon-chevron-right",iconOpenFieldSidebar:"icon-chevron-left",iconAdd:"icon-add",iconEdit:"icon-edit",iconDelete:"icon-delete",iconDrag:"icon-reorder"},ruleContext:{}},UtFormConstructor={config:{},init:function(t){this.config=__clone(baseConfig),t&&(t.inputs&&__mergeInputsInMap(this.config.inputs,t.inputs),t.primitiveInputs&&__mergeInputInMapOfArrays(this.config.primitiveInputs,t.primitiveInputs),t.dictInputs&&__mergeInputsInArray(this.config.dictInputs,t.dictInputs),t.refInputs&&__mergeInputInMapOfArrays(this.config.refInputs,t.refInputs),t.refInputConfigs&&(this.config.refInputConfigs=t.refInputConfigs),t.icons&&(this.config.icons=_assign(this.config.icons,t.icons)),t.rules&&(this.config.rules=t.rules),t.ruleContext&&(this.config.ruleContext=t.ruleContext))},getInputTypes:function(t){var e=[];return t?e=t.dict&&!this.config.refInputs[t.ref]?__filterInputsByMultiple(this.config.dictInputs,t.multiple):t.ref?__filterInputsByMultiple(this.config.refInputs[t.ref],t.multiple):__filterInputsByMultiple(this.config.primitiveInputs[t.type],t.multiple):e},hasMultipleInputTypes:function(t){var e=this.getInputTypes(_objectSpread2(_objectSpread2({},t),{},{multiple:!0}));return e&&e.length>0},getDefaultInput:function(t){var e=null,n=this.getInputTypes(t);return n||(e=this.primitiveInputs[0]),t.ref&&this.config.refInputs[t.ref]?(e=__clone(n[0]),__applyDefaultProps(e),this.config.refInputConfigs[t.ref]&&this.config.refInputConfigs[t.ref][e.name]&&__applyRefProps(e,this.config.refInputConfigs[t.ref][e.name])):t.dict?((e=__clone(n[0])).props.dict.default=t.ref,__applyDefaultProps(e)):(e=__clone(n[0]),__applyDefaultProps(e)),e},getInputTypeByName:function(t,e){var n=__clone(this.config.inputs[t]);return e.ref&&this.config.refInputs[e.ref]?(__applyDefaultProps(n),this.config.refInputConfigs[e.ref]&&this.config.refInputConfigs[e.ref][n.name]&&__applyRefProps(n,this.config.refInputConfigs[e.ref][n.name])):e.dict?(n.props.dict.default=e.ref,__applyDefaultProps(n,e)):__applyDefaultProps(n,e),n.propsData.ref=e.name,n},getAvailableFieldRules:function(t){return this.config.rules.filter((function(e){return!e.fields||0===e.fields.length||e.fields.indexOf(t.name)>=0}))},getRuleContext:function(){return this.config.ruleContext},runRule:function runRule(context,script){context=context||{},context.console=console,context.Date=Date,context.Math=Math;var appendScript="";for(var v in context)appendScript+="var ".concat(v," = this.").concat(v,";\n");appendScript=appendScript?appendScript+"\n":"";var func=function func(script){return eval(script)};func.call(context,appendScript+script)}},script$5={name:"DocTemplateSectionModal",props:{section:Object,mode:{type:String,default:"ins"},onAfterOk:{type:Function,default:function(){}}},data:function(){return{id:"rb-doc-template-section-modal",label:{}}},computed:{title:function(){return"ins"===this.mode?"Добавление секции":"Редактирование секции"}},watch:{section:function(){this.section&&(this.label=this.section)}},methods:{onOk:function(){var t=this;this.section=this.label,this.onAfterOk&&this.onAfterOk(),this.$nextTick((function(){t.$bvModal.hide(t.id)}))}},created:function(){this.section&&(this.label=this.section)}};function normalizeComponent(t,e,n,o,r,i,a,l,s,c){"boolean"!=typeof a&&(s=l,l=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(t&&t.render&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,r&&(u.functional=!0)),o&&(u._scopeId=o),i?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,s(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=d):e&&(d=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,l(t))}),d)if(u.functional){const t=u.render;u.render=function(e,n){return d.call(n),t(e,n)}}else{const t=u.beforeCreate;u.beforeCreate=t?[].concat(t,d):[d]}return n}var __vue_script__$5=script$5,__vue_render__$5=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-modal",{attrs:{id:"rb-doc-template-section-modal","modal-class":"rb-doc-template-section-modal","ok-title":"Сохранить изменения","cancel-variant":"outline-gray","cancel-title":"Отмена",title:t.title},on:{ok:function(e){return e.preventDefault(),t.onOk.apply(null,arguments)}}},[n("b-form",{on:{submit:function(e){return e.preventDefault(),t.onOk.apply(null,arguments)}}},[n("b-form-row",[n("b-col",{attrs:{lg:"12"}},[n("b-form-group",{attrs:{label:"Наименование секции"}},[n("rb-multi-lang-input",{model:{value:t.label,callback:function(e){t.label=e},expression:"label"}})],1)],1)],1)],1)],1)},__vue_staticRenderFns__$5=[],__vue_inject_styles__$5=void 0,__vue_scope_id__$5=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$5=!1,__vue_component__$6=normalizeComponent({render:__vue_render__$5,staticRenderFns:__vue_staticRenderFns__$5},__vue_inject_styles__$5,__vue_script__$5,__vue_scope_id__$5,__vue_is_functional_template__$5,__vue_module_identifier__$5,!1,void 0,void 0,void 0),DocTemplateSectionModal=__vue_component__$6,commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return commonjsRequire(t,null==e?n.path:e)}},n.exports),n.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
|
|
2
2
|
/**!
|
|
3
3
|
* Sortable 1.10.2
|
|
4
4
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -115,24 +115,20 @@ function _nonIterableRest() {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
var found = null;
|
|
118
|
-
formConfig.sections.
|
|
118
|
+
formConfig.sections.forEach(function (r) {
|
|
119
|
+
console.info(r);
|
|
120
|
+
|
|
119
121
|
if (r.columns) {
|
|
120
|
-
r.columns.
|
|
122
|
+
r.columns.forEach(function (c) {
|
|
121
123
|
c.fields.forEach(function (f) {
|
|
124
|
+
console.info(f.name);
|
|
125
|
+
|
|
122
126
|
if (f.name === fieldName) {
|
|
123
127
|
found = f;
|
|
124
128
|
}
|
|
125
129
|
});
|
|
126
|
-
|
|
127
|
-
if (found) {
|
|
128
|
-
return false;
|
|
129
|
-
}
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
if (found) {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
132
|
});
|
|
137
133
|
return found;
|
|
138
134
|
},
|
|
@@ -824,7 +820,7 @@ var __vue_inject_styles__$5 = undefined;
|
|
|
824
820
|
var __vue_scope_id__$5 = undefined;
|
|
825
821
|
/* module identifier */
|
|
826
822
|
|
|
827
|
-
var __vue_module_identifier__$5 = "data-v-
|
|
823
|
+
var __vue_module_identifier__$5 = "data-v-4f837662";
|
|
828
824
|
/* functional template */
|
|
829
825
|
|
|
830
826
|
var __vue_is_functional_template__$5 = false;
|
|
@@ -6396,7 +6392,7 @@ var __vue_inject_styles__$4 = undefined;
|
|
|
6396
6392
|
var __vue_scope_id__$4 = undefined;
|
|
6397
6393
|
/* module identifier */
|
|
6398
6394
|
|
|
6399
|
-
var __vue_module_identifier__$4 = "data-v-
|
|
6395
|
+
var __vue_module_identifier__$4 = "data-v-0746865a";
|
|
6400
6396
|
/* functional template */
|
|
6401
6397
|
|
|
6402
6398
|
var __vue_is_functional_template__$4 = false;
|
|
@@ -6855,7 +6851,7 @@ var __vue_inject_styles__$3 = undefined;
|
|
|
6855
6851
|
var __vue_scope_id__$3 = undefined;
|
|
6856
6852
|
/* module identifier */
|
|
6857
6853
|
|
|
6858
|
-
var __vue_module_identifier__$3 = "data-v-
|
|
6854
|
+
var __vue_module_identifier__$3 = "data-v-5e23bff5";
|
|
6859
6855
|
/* functional template */
|
|
6860
6856
|
|
|
6861
6857
|
var __vue_is_functional_template__$3 = false;
|
|
@@ -7315,7 +7311,7 @@ var __vue_inject_styles__$2 = undefined;
|
|
|
7315
7311
|
var __vue_scope_id__$2 = undefined;
|
|
7316
7312
|
/* module identifier */
|
|
7317
7313
|
|
|
7318
|
-
var __vue_module_identifier__$2 = "data-v-
|
|
7314
|
+
var __vue_module_identifier__$2 = "data-v-cc4d6922";
|
|
7319
7315
|
/* functional template */
|
|
7320
7316
|
|
|
7321
7317
|
var __vue_is_functional_template__$2 = false;
|
|
@@ -7751,7 +7747,7 @@ var __vue_inject_styles__$1 = undefined;
|
|
|
7751
7747
|
var __vue_scope_id__$1 = undefined;
|
|
7752
7748
|
/* module identifier */
|
|
7753
7749
|
|
|
7754
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
7750
|
+
var __vue_module_identifier__$1 = "data-v-44fffe29";
|
|
7755
7751
|
/* functional template */
|
|
7756
7752
|
|
|
7757
7753
|
var __vue_is_functional_template__$1 = false;
|
|
@@ -7862,11 +7858,11 @@ var DocTemplateFieldSidebar = __vue_component__$2;var script = {
|
|
|
7862
7858
|
},
|
|
7863
7859
|
removeSection: function removeSection(section, index) {
|
|
7864
7860
|
this.formConfig.sections.splice(index, 1);
|
|
7865
|
-
/*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
|
|
7866
|
-
onOk: (event, modal) => {
|
|
7867
|
-
this.formConfig.sections.splice(index, 1);
|
|
7868
|
-
UtModal.closeModal(modal);
|
|
7869
|
-
}
|
|
7861
|
+
/*UtModal.showYesNoDialog('Вы действительно хотите удалить секцию?', {
|
|
7862
|
+
onOk: (event, modal) => {
|
|
7863
|
+
this.formConfig.sections.splice(index, 1);
|
|
7864
|
+
UtModal.closeModal(modal);
|
|
7865
|
+
}
|
|
7870
7866
|
});*/
|
|
7871
7867
|
},
|
|
7872
7868
|
multipleFieldAreOnFormConfig: function multipleFieldAreOnFormConfig(field) {
|
|
@@ -8191,7 +8187,7 @@ var __vue_inject_styles__ = undefined;
|
|
|
8191
8187
|
var __vue_scope_id__ = undefined;
|
|
8192
8188
|
/* module identifier */
|
|
8193
8189
|
|
|
8194
|
-
var __vue_module_identifier__ = "data-v-
|
|
8190
|
+
var __vue_module_identifier__ = "data-v-69af8b42";
|
|
8195
8191
|
/* functional template */
|
|
8196
8192
|
|
|
8197
8193
|
var __vue_is_functional_template__ = false;
|
package/dist/scss/_global.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.cursor-pointer {
|
|
2
|
-
cursor: pointer;
|
|
3
|
-
}
|
|
1
|
+
.cursor-pointer {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
// DocTemplateFacetList
|
|
2
|
-
$rb-facet-list-border-color: $border-color !default;
|
|
3
|
-
|
|
4
|
-
// DocTemplateConstructor
|
|
5
|
-
$rb-doc-template-constructor-title-color: #333 !default;
|
|
6
|
-
$rb-doc-template-constructor-title-font-size: 16px !default;
|
|
7
|
-
$rb-doc-template-section-bg: #E9EAEA !default;
|
|
8
|
-
$rb-doc-template-constructor-form-column-border-color: #D5D5D6;
|
|
9
|
-
|
|
10
|
-
// DocTemplateFieldSidebar
|
|
11
|
-
$rb-doc-template-field-sidebar-font-size-lg: 1rem !default;
|
|
12
|
-
$rb-doc-template-field-sidebar-top: 72px !default;
|
|
13
|
-
$rb-doc-template-field-sidebar-close-button-left: -46px !default;
|
|
14
|
-
|
|
15
|
-
// DocForm
|
|
16
|
-
$rb-doc-form-font-size-lg: 1rem !default;
|
|
17
|
-
$rb-doc-form-legend-line-height: $line-height-base !default;
|
|
1
|
+
// DocTemplateFacetList
|
|
2
|
+
$rb-facet-list-border-color: $border-color !default;
|
|
3
|
+
|
|
4
|
+
// DocTemplateConstructor
|
|
5
|
+
$rb-doc-template-constructor-title-color: #333 !default;
|
|
6
|
+
$rb-doc-template-constructor-title-font-size: 16px !default;
|
|
7
|
+
$rb-doc-template-section-bg: #E9EAEA !default;
|
|
8
|
+
$rb-doc-template-constructor-form-column-border-color: #D5D5D6;
|
|
9
|
+
|
|
10
|
+
// DocTemplateFieldSidebar
|
|
11
|
+
$rb-doc-template-field-sidebar-font-size-lg: 1rem !default;
|
|
12
|
+
$rb-doc-template-field-sidebar-top: 72px !default;
|
|
13
|
+
$rb-doc-template-field-sidebar-close-button-left: -46px !default;
|
|
14
|
+
|
|
15
|
+
// DocForm
|
|
16
|
+
$rb-doc-form-font-size-lg: 1rem !default;
|
|
17
|
+
$rb-doc-form-legend-line-height: $line-height-base !default;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
.rb-doc-form {
|
|
2
|
-
h4 {
|
|
3
|
-
font-weight: bold;
|
|
4
|
-
font-size: $rb-doc-form-font-size-lg;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.rb-form-section {
|
|
8
|
-
padding-bottom: 10px;
|
|
9
|
-
padding-top: 10px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.rb-form-column {
|
|
13
|
-
flex: 1;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.rb-form-column:first-child {
|
|
17
|
-
margin-left: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.rb-form-column:last-child {
|
|
21
|
-
margin-right: 0;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.rb-form-column {
|
|
25
|
-
margin-left: 10px;
|
|
26
|
-
margin-right: 10px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
legend.col-form-label {
|
|
30
|
-
max-width: 100%;
|
|
31
|
-
display: block;
|
|
32
|
-
overflow: hidden;
|
|
33
|
-
text-overflow: ellipsis;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
.rb-doc-form {
|
|
2
|
+
h4 {
|
|
3
|
+
font-weight: bold;
|
|
4
|
+
font-size: $rb-doc-form-font-size-lg;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.rb-form-section {
|
|
8
|
+
padding-bottom: 10px;
|
|
9
|
+
padding-top: 10px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.rb-form-column {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.rb-form-column:first-child {
|
|
17
|
+
margin-left: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.rb-form-column:last-child {
|
|
21
|
+
margin-right: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.rb-form-column {
|
|
25
|
+
margin-left: 10px;
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
legend.col-form-label {
|
|
30
|
+
max-width: 100%;
|
|
31
|
+
display: block;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
.rb-doc-template-constructor {
|
|
2
|
-
height: 100%;
|
|
3
|
-
|
|
4
|
-
h4 {
|
|
5
|
-
color: $rb-doc-template-constructor-title-color;
|
|
6
|
-
font-weight: bold;
|
|
7
|
-
font-size: $rb-doc-template-constructor-title-font-size;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.rb-form-constructor {
|
|
11
|
-
height: 100%;
|
|
12
|
-
overflow-y: auto;
|
|
13
|
-
background-color: white;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.rb-constructor-toolbar {
|
|
17
|
-
padding: 16px 16px 16px 16px;
|
|
18
|
-
background-color: white;
|
|
19
|
-
border-bottom: 1px solid $border-color;
|
|
20
|
-
|
|
21
|
-
h4 {
|
|
22
|
-
margin-bottom: 0;
|
|
23
|
-
line-height: 38px;
|
|
24
|
-
margin-right: 10px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.btn {
|
|
28
|
-
margin-left: 10px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.rb-constructor-body {
|
|
33
|
-
padding: 16px;
|
|
34
|
-
|
|
35
|
-
.card {
|
|
36
|
-
border-width: 2px;
|
|
37
|
-
border-style: dashed;
|
|
38
|
-
background-color: $rb-doc-template-section-bg;
|
|
39
|
-
|
|
40
|
-
.card-header, .card-body {
|
|
41
|
-
background-color: $rb-doc-template-section-bg;
|
|
42
|
-
border-color: $border-color;
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.rb-form-card {
|
|
48
|
-
margin-bottom: 20px;
|
|
49
|
-
|
|
50
|
-
.rb-form-column {
|
|
51
|
-
flex: 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.card-header {
|
|
55
|
-
border-bottom-width: 0;
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: row;
|
|
58
|
-
|
|
59
|
-
.rb-text {
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
line-height: 24px;
|
|
62
|
-
font-weight: bold;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.rb-icon {
|
|
66
|
-
line-height: 24px;
|
|
67
|
-
font-size: 16px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.rb-form-column {
|
|
73
|
-
.form-group:hover {
|
|
74
|
-
legend.col-form-label .rb-actions {
|
|
75
|
-
visibility: visible;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
legend.col-form-label {
|
|
80
|
-
font-size: $font-size-base;
|
|
81
|
-
font-weight: bold;
|
|
82
|
-
margin-bottom: 12px;
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: row;
|
|
85
|
-
color: $rb-doc-template-constructor-title-color;
|
|
86
|
-
|
|
87
|
-
.rb-text {
|
|
88
|
-
flex: 1;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.rb-actions {
|
|
92
|
-
visibility: hidden;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.form-control:disabled,
|
|
97
|
-
.btn.disabled {
|
|
98
|
-
background-color: white;
|
|
99
|
-
opacity: 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.rb-form-column {
|
|
104
|
-
padding: 10px;
|
|
105
|
-
border: 2px dashed $rb-doc-template-constructor-form-column-border-color;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.rb-form-column:not(.rb-single-column) {
|
|
109
|
-
margin: 0 10px;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
1
|
+
.rb-doc-template-constructor {
|
|
2
|
+
height: 100%;
|
|
3
|
+
|
|
4
|
+
h4 {
|
|
5
|
+
color: $rb-doc-template-constructor-title-color;
|
|
6
|
+
font-weight: bold;
|
|
7
|
+
font-size: $rb-doc-template-constructor-title-font-size;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.rb-form-constructor {
|
|
11
|
+
height: 100%;
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
background-color: white;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.rb-constructor-toolbar {
|
|
17
|
+
padding: 16px 16px 16px 16px;
|
|
18
|
+
background-color: white;
|
|
19
|
+
border-bottom: 1px solid $border-color;
|
|
20
|
+
|
|
21
|
+
h4 {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
line-height: 38px;
|
|
24
|
+
margin-right: 10px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.btn {
|
|
28
|
+
margin-left: 10px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rb-constructor-body {
|
|
33
|
+
padding: 16px;
|
|
34
|
+
|
|
35
|
+
.card {
|
|
36
|
+
border-width: 2px;
|
|
37
|
+
border-style: dashed;
|
|
38
|
+
background-color: $rb-doc-template-section-bg;
|
|
39
|
+
|
|
40
|
+
.card-header, .card-body {
|
|
41
|
+
background-color: $rb-doc-template-section-bg;
|
|
42
|
+
border-color: $border-color;
|
|
43
|
+
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.rb-form-card {
|
|
48
|
+
margin-bottom: 20px;
|
|
49
|
+
|
|
50
|
+
.rb-form-column {
|
|
51
|
+
flex: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.card-header {
|
|
55
|
+
border-bottom-width: 0;
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: row;
|
|
58
|
+
|
|
59
|
+
.rb-text {
|
|
60
|
+
font-size: 16px;
|
|
61
|
+
line-height: 24px;
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.rb-icon {
|
|
66
|
+
line-height: 24px;
|
|
67
|
+
font-size: 16px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rb-form-column {
|
|
73
|
+
.form-group:hover {
|
|
74
|
+
legend.col-form-label .rb-actions {
|
|
75
|
+
visibility: visible;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
legend.col-form-label {
|
|
80
|
+
font-size: $font-size-base;
|
|
81
|
+
font-weight: bold;
|
|
82
|
+
margin-bottom: 12px;
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: row;
|
|
85
|
+
color: $rb-doc-template-constructor-title-color;
|
|
86
|
+
|
|
87
|
+
.rb-text {
|
|
88
|
+
flex: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rb-actions {
|
|
92
|
+
visibility: hidden;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.form-control:disabled,
|
|
97
|
+
.btn.disabled {
|
|
98
|
+
background-color: white;
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.rb-form-column {
|
|
104
|
+
padding: 10px;
|
|
105
|
+
border: 2px dashed $rb-doc-template-constructor-form-column-border-color;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.rb-form-column:not(.rb-single-column) {
|
|
109
|
+
margin: 0 10px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
.rb-facets-sidebar {
|
|
2
|
-
height: 100%;
|
|
3
|
-
width: 264px;
|
|
4
|
-
overflow-y: auto;
|
|
5
|
-
background-color: white;
|
|
6
|
-
border-right: 1px solid $rb-facet-list-border-color;
|
|
7
|
-
|
|
8
|
-
h4 {
|
|
9
|
-
padding: 24px 16px 16px 16px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
h6 {
|
|
13
|
-
padding-left: 16px;
|
|
14
|
-
padding-right: 16px;
|
|
15
|
-
font-weight: 500;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
form {
|
|
19
|
-
padding-left: 16px;
|
|
20
|
-
padding-right: 16px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.rb-facet-label {
|
|
24
|
-
font-weight: bold;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.rb-facet-label-sub-text {
|
|
28
|
-
font-size: 13px;
|
|
29
|
-
color: #AAABAD;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.rb-facet-list {
|
|
33
|
-
.rb-facet {
|
|
34
|
-
padding: 10px 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
& > .rb-facet:not(:last-child) {
|
|
38
|
-
border-bottom: 1px solid $rb-facet-list-border-color;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.list-group-item {
|
|
42
|
-
border-radius: 0;
|
|
43
|
-
border: none;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
.rb-facets-sidebar {
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 264px;
|
|
4
|
+
overflow-y: auto;
|
|
5
|
+
background-color: white;
|
|
6
|
+
border-right: 1px solid $rb-facet-list-border-color;
|
|
7
|
+
|
|
8
|
+
h4 {
|
|
9
|
+
padding: 24px 16px 16px 16px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
h6 {
|
|
13
|
+
padding-left: 16px;
|
|
14
|
+
padding-right: 16px;
|
|
15
|
+
font-weight: 500;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
form {
|
|
19
|
+
padding-left: 16px;
|
|
20
|
+
padding-right: 16px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.rb-facet-label {
|
|
24
|
+
font-weight: bold;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.rb-facet-label-sub-text {
|
|
28
|
+
font-size: 13px;
|
|
29
|
+
color: #AAABAD;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rb-facet-list {
|
|
33
|
+
.rb-facet {
|
|
34
|
+
padding: 10px 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& > .rb-facet:not(:last-child) {
|
|
38
|
+
border-bottom: 1px solid $rb-facet-list-border-color;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.list-group-item {
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
border: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|