@nixweb/nixloc-ui 0.0.119 → 0.0.122

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.
Files changed (122) hide show
  1. package/docs/src/component/template/ModeloRelatorioView.drawio +160 -0
  2. package/docs/src/store/modulos/relatorio.drawio +37 -0
  3. package/package.json +77 -75
  4. package/public/index.html +2 -4
  5. package/public/styles/app.css +1 -2
  6. package/src/component/forms/{Botao.vue → Button.vue} +53 -57
  7. package/src/component/forms/CheckboxGroup.vue +63 -0
  8. package/src/component/forms/{CheckboxUnico.vue → CheckboxSimple.vue} +6 -6
  9. package/src/component/forms/{Cor.vue → Color.vue} +9 -9
  10. package/src/component/forms/DateTime.vue +53 -53
  11. package/src/component/forms/{BotaoDropdown.vue → Dropdown.vue} +50 -50
  12. package/src/component/forms/EditorHtml.vue +123 -0
  13. package/src/component/forms/FileUpload.vue +189 -0
  14. package/src/component/forms/InputDecimal.vue +137 -0
  15. package/src/component/forms/InputNumber.vue +149 -0
  16. package/src/component/forms/InputPassword.vue +135 -0
  17. package/src/component/forms/InputText.vue +157 -0
  18. package/src/component/forms/Modal.vue +15 -15
  19. package/src/component/forms/RadioGroup.vue +50 -0
  20. package/src/component/forms/Select.vue +337 -0
  21. package/src/component/forms/SelectStatic.vue +120 -0
  22. package/src/component/forms/TextArea.vue +126 -0
  23. package/src/component/forms/Toggle.vue +13 -13
  24. package/src/component/layout/{Conta.vue → Account.vue} +28 -28
  25. package/src/component/layout/{Alerta.vue → Alert.vue} +22 -22
  26. package/src/component/layout/Badge.vue +23 -23
  27. package/src/component/layout/{BarraFixa.vue → FixedBar.vue} +16 -16
  28. package/src/component/layout/{CarregandoTelaInteira.vue → LoadingFullPage.vue} +3 -3
  29. package/src/component/layout/Menu.vue +66 -66
  30. package/src/component/layout/{Moldura.vue → Molded.vue} +4 -4
  31. package/src/component/layout/Panel.vue +142 -0
  32. package/src/component/layout/Popover.vue +1 -1
  33. package/src/component/layout/{BarraRolagem.vue → Scrollbar.vue} +9 -11
  34. package/src/component/layout/Tag.vue +9 -9
  35. package/src/component/layout/Topo.vue +1 -1
  36. package/src/component/layout/Wizard.vue +3 -3
  37. package/src/component/shared/BotaoCarregarMais.vue +9 -9
  38. package/src/component/shared/BotaoConsulta.vue +9 -9
  39. package/src/component/shared/CabecalhoImpressao.vue +6 -6
  40. package/src/component/shared/CodigoEditor.vue +16 -16
  41. package/src/component/shared/Confirmacao.vue +28 -28
  42. package/src/component/shared/Dica.vue +10 -10
  43. package/src/component/shared/DocumentoEditor.vue +3 -3
  44. package/src/component/shared/DocumentoPreview.vue +2 -2
  45. package/src/component/shared/EsconderMostrar.vue +26 -26
  46. package/src/component/shared/ExportarExcel.vue +14 -14
  47. package/src/component/shared/ExportarPDF.vue +10 -10
  48. package/src/component/shared/FiltroHorizontal.vue +19 -19
  49. package/src/component/shared/LegendaParametro.vue +17 -17
  50. package/src/component/shared/{Carregando.vue → Loading.vue} +11 -11
  51. package/src/component/shared/Messages.vue +83 -0
  52. package/src/component/shared/Paginacao.vue +10 -10
  53. package/src/component/shared/Progresso.vue +2 -2
  54. package/src/component/shared/Registro.vue +2 -2
  55. package/src/component/shared/ResumoTabela.vue +6 -6
  56. package/src/component/shared/SalvarCancelar.vue +26 -26
  57. package/src/component/shared/{Pesquisa.vue → Search.vue} +36 -36
  58. package/src/component/shared/Tabela.vue +49 -49
  59. package/src/component/shared/TabelaBotao.vue +13 -13
  60. package/src/component/shared/Toast.vue +7 -7
  61. package/src/component/shared/{FiltroVertical.vue → VerticalFilter.vue} +14 -14
  62. package/src/component/shared/construtor-consulta/AdicionaFiltro.vue +191 -0
  63. package/src/component/shared/construtor-consulta/Campo.vue +127 -0
  64. package/src/component/shared/construtor-consulta/ComponenteDinamico.vue +109 -0
  65. package/src/component/shared/construtor-consulta/ConstrutorConsulta.vue +70 -0
  66. package/src/component/shared/construtor-consulta/ConverteParaOdata.js +80 -0
  67. package/src/component/shared/construtor-consulta/EscolherFiltro.vue +96 -0
  68. package/src/component/shared/{query-builder → construtor-consulta}/Filtro.vue +11 -16
  69. package/src/component/shared/construtor-consulta/ListaComponenteDinamico.vue +41 -0
  70. package/src/component/shared/{query-builder → construtor-consulta}/Rodape.vue +9 -9
  71. package/src/component/shared/{query-builder → construtor-consulta}/Tags.vue +7 -7
  72. package/src/component/shared/{query-builder → construtor-consulta}/utilities.js +0 -0
  73. package/src/component/template/ModeloAdicionarModificarView.vue +11 -11
  74. package/src/component/template/ModeloDocumentoView.vue +79 -79
  75. package/src/component/template/ModeloLista.vue +66 -66
  76. package/src/component/template/ModeloRelatorioListaView.vue +71 -68
  77. package/src/component/template/ModeloRelatorioView.vue +218 -200
  78. package/src/component/template/ModeloSubView.vue +13 -13
  79. package/src/component/template/ModeloView.vue +17 -17
  80. package/src/component/template/Relatorio.js +1 -5
  81. package/src/component/template/RelatorioAdicionarModificar.vue +44 -44
  82. package/src/component/value-objects/DadosContato.vue +27 -27
  83. package/src/component/value-objects/DadosPessoa.js +1 -1
  84. package/src/component/value-objects/DadosPessoa.vue +52 -52
  85. package/src/component/value-objects/Endereco.js +1 -1
  86. package/src/component/value-objects/Endereco.vue +83 -83
  87. package/src/config/dicas.js +1 -1
  88. package/src/config/token.js +2 -2
  89. package/src/store/modules/generic.js +489 -0
  90. package/src/store/modules/report.js +246 -0
  91. package/src/store/modules/user.js +38 -0
  92. package/src/store/modules/validation.js +39 -0
  93. package/src/store/store.js +4 -4
  94. package/public/js/menu.js +0 -11
  95. package/public/styles/menu.css +0 -1399
  96. package/src/component/forms/ArquivoUpload.vue +0 -199
  97. package/src/component/forms/CheckboxMultiplo.vue +0 -63
  98. package/src/component/forms/Decimal.vue +0 -137
  99. package/src/component/forms/Escolher.vue +0 -324
  100. package/src/component/forms/EscolherEstatico.vue +0 -139
  101. package/src/component/forms/Numero.vue +0 -153
  102. package/src/component/forms/Opcoes.vue +0 -51
  103. package/src/component/forms/Senha.vue +0 -139
  104. package/src/component/forms/Texto.vue +0 -161
  105. package/src/component/forms/TextoArea.vue +0 -126
  106. package/src/component/forms/TextoEditor.vue +0 -123
  107. package/src/component/layout/Painel.vue +0 -142
  108. package/src/component/shared/Mensagem.vue +0 -86
  109. package/src/component/shared/query-builder/Campo.vue +0 -116
  110. package/src/component/shared/query-builder/ConverteParaOdata.js +0 -73
  111. package/src/component/shared/query-builder/QueryBuilder.vue +0 -164
  112. package/src/component/shared/query-builder/components/CustomSelect.vue +0 -115
  113. package/src/component/shared/query-builder/components/QueryBuilderChildren.vue +0 -46
  114. package/src/component/shared/query-builder/components/QueryBuilderGroup.vue +0 -151
  115. package/src/component/shared/query-builder/components/QueryBuilderRule.vue +0 -81
  116. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapGroup.vue +0 -120
  117. package/src/component/shared/query-builder/layouts/Bootstrap/BootstrapRule.vue +0 -171
  118. package/src/component/shared/query-builder/main.js +0 -81
  119. package/src/store/modulos/generic.js +0 -494
  120. package/src/store/modulos/relatorio.js +0 -201
  121. package/src/store/modulos/usuario.js +0 -38
  122. package/src/store/modulos/validation.js +0 -39
@@ -1,171 +0,0 @@
1
- <template>
2
- <!-- eslint-disable vue/no-v-html -->
3
- <div class="vqb-rule card">
4
- <div class="form-inline">
5
- <label :class="rule.classeCss" class="mr-5">
6
- <i :class="rule.icone"></i>
7
- <span style="margin-left: 10px">{{ rule.label }} </span>
8
- </label>
9
-
10
- <!-- List of operands (optional) -->
11
- <select
12
- v-if="typeof rule.operands !== 'undefined'"
13
- v-model="query.operand"
14
- class="form-control mr-2"
15
- >
16
- <option v-for="operand in rule.operands" :key="operand">
17
- {{ operand }}
18
- </option>
19
- </select>
20
-
21
- <!-- List of operators (e.g. =, !=, >, <) -->
22
- <select
23
- v-if="typeof rule.operators !== 'undefined' && rule.operators.length > 1"
24
- v-model="query.operator"
25
- class="form-control mr-2"
26
- >
27
- <option v-for="operator in rule.operators" :key="operator" :value="operator">
28
- {{ operator }}
29
- </option>
30
- </select>
31
-
32
- <!-- Basic text input -->
33
- <input
34
- v-if="rule.inputType === 'text'"
35
- v-model="query.value"
36
- class="form-control"
37
- type="text"
38
- :placeholder="labels.textInputPlaceholder"
39
- />
40
-
41
- <!-- Basic number input -->
42
- <input
43
- v-if="rule.inputType === 'number'"
44
- v-model="query.value"
45
- class="form-control"
46
- type="number"
47
- />
48
-
49
- <!-- Datepicker -->
50
- <input
51
- v-if="rule.inputType === 'date'"
52
- v-model="query.value"
53
- class="form-control"
54
- type="date"
55
- />
56
-
57
- <!-- Custom component input -->
58
- <div v-if="isCustomComponent" class="vqb-custom-component-wrap">
59
- <DateTime
60
- v-if="rule.component == 'datetime'"
61
- :format="rule.props.format"
62
- :type="rule.props.type"
63
- :range="rule.props.range"
64
- :value="query.value"
65
- @input="updateQuery"
66
- />
67
- </div>
68
-
69
- <!-- Checkbox input -->
70
- <template v-if="rule.inputType === 'checkbox'">
71
- <div
72
- v-for="choice in rule.choices"
73
- :key="choice.value"
74
- class="form-check form-check-inline"
75
- >
76
- <input
77
- :id="'depth' + depth + '-' + rule.id + '-' + index + '-' + choice.value"
78
- v-model="query.value"
79
- type="checkbox"
80
- :value="choice.value"
81
- class="form-check-input"
82
- />
83
- <label
84
- class="form-check-label"
85
- :for="'depth' + depth + '-' + rule.id + '-' + index + '-' + choice.value"
86
- >
87
- {{ choice.label }}
88
- </label>
89
- </div>
90
- </template>
91
-
92
- <!-- Radio input -->
93
- <template v-if="rule.inputType === 'radio'">
94
- <div
95
- v-for="choice in rule.choices"
96
- :key="choice.value"
97
- class="form-check form-check-inline"
98
- >
99
- <input
100
- :id="'depth' + depth + '-' + rule.id + '-' + index + '-' + choice.value"
101
- v-model="query.value"
102
- :name="'depth' + depth + '-' + rule.id + '-' + index"
103
- type="radio"
104
- :value="choice.value"
105
- class="form-check-input"
106
- />
107
- <label
108
- class="form-check-label"
109
- :for="'depth' + depth + '-' + rule.id + '-' + index + '-' + choice.value"
110
- >
111
- {{ choice.label }}
112
- </label>
113
- </div>
114
- </template>
115
-
116
- <!-- Select without groups -->
117
- <select
118
- v-if="rule.inputType === 'select' && !hasOptionGroups"
119
- v-model="query.value"
120
- class="form-control"
121
- :multiple="rule.type === 'multi-select'"
122
- >
123
- <option v-for="option in selectOptions" :key="option.value" :value="option.value">
124
- {{ option.label }}
125
- </option>
126
- </select>
127
-
128
- <!-- Select with groups -->
129
- <select
130
- v-if="rule.inputType === 'select' && hasOptionGroups"
131
- v-model="query.value"
132
- class="form-control"
133
- :multiple="rule.type === 'multi-select'"
134
- >
135
- <optgroup
136
- v-for="(option, option_key) in selectOptions"
137
- :key="option_key"
138
- :label="option_key"
139
- >
140
- <option
141
- v-for="sub_option in option"
142
- :key="sub_option.value"
143
- :value="sub_option.value"
144
- >
145
- {{ sub_option.label }}
146
- </option>
147
- </optgroup>
148
- </select>
149
-
150
- <!-- Remove rule button -->
151
- <button
152
- type="button"
153
- class="close ml-auto"
154
- @click="remove"
155
- v-html="labels.removeRule"
156
- ></button>
157
- </div>
158
- </div>
159
- </template>
160
-
161
- <script>
162
- import QueryBuilderRule from "../../components/QueryBuilderRule";
163
- import DateTime from "@nixweb/nixloc-ui/src/component/forms/DateTime";
164
-
165
- export default {
166
- extends: QueryBuilderRule,
167
- components: {
168
- DateTime,
169
- },
170
- };
171
- </script>
@@ -1,81 +0,0 @@
1
- import Vue from 'vue'
2
- import VueQueryBuilder from '@nixweb/nixloc-ui/src/component/shared/QueryBuilder/VueQueryBuilder.vue'
3
-
4
- Vue.config.productionTip = false
5
-
6
- let rules = [
7
- {
8
- type: "text",
9
- id: "first-name",
10
- label: "First Name",
11
- },
12
- {
13
- type: "text",
14
- id: "last-name",
15
- label: "Last Name",
16
- },
17
- {
18
- type: "radio",
19
- id: "plan-type",
20
- label: "Plan Type",
21
- choices: [
22
- {label: "Standard", value: "standard"},
23
- {label: "Premium", value: "premium"}
24
- ]
25
- },
26
- {
27
- type: "checkbox",
28
- id: "sizes",
29
- label: "Sizes",
30
- choices: [
31
- {label: "Small", value: "small"},
32
- {label: "Medium", value: "medium"},
33
- {label: "Large", value: "large"}
34
- ]
35
- },
36
- {
37
- type: "text",
38
- id: "date",
39
- inputType:"date",
40
- label: "Date",
41
- operands: ['Start Date', 'End Date']
42
- },
43
- {
44
- type: "select",
45
- id: 'select',
46
- label: 'Color',
47
- operators: ['=', '<>'],
48
- choices: [
49
- {label: "red", value: 'Red'},
50
- {label: "orange", value: 'Orange'},
51
- {label: "yellow", value: 'Yellow'},
52
- {label: "green", value: 'Green'},
53
- {label: "blue", value: 'Blue'},
54
- {label: "indigo", value: 'Indigo'},
55
- {label: "violet", value: 'Violet'},
56
- ]
57
- },
58
- ];
59
-
60
- new Vue({
61
- el: '#app',
62
-
63
- components: { VueQueryBuilder },
64
-
65
- data: {
66
- rules: rules,
67
- output: {},
68
- },
69
-
70
- computed: {
71
- outputFormatted: function() {
72
- return JSON.stringify(this.output, null, 2);
73
- }
74
- },
75
-
76
- methods: {
77
- updateQuery: function(value){
78
- this.output = value;
79
- }
80
- }
81
- });