@sgcloud-sgsistemas/base 1.0.0
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/README.md +505 -0
- package/app.js +686 -0
- package/assets/img/custom-icon.svg +1 -0
- package/assets/img/logo-finance.png +0 -0
- package/assets/img/logo.png +0 -0
- package/assets/img/logo_company.png +0 -0
- package/assets/img/perfil.png +0 -0
- package/config/postcss.config.js +14 -0
- package/config/webpack.config.common.js +53 -0
- package/config/webpack.config.dev.js +50 -0
- package/config/webpack.config.prod.js +49 -0
- package/index.html +115 -0
- package/package.json +64 -0
- package/resources/audio/mouth-pop.mp3 +0 -0
- package/src/index.js +1 -0
- package/src/modules/base/components/container/container.style.scss +7 -0
- package/src/modules/base/components/container/container.template.html +2 -0
- package/src/modules/base/components/container/index.js +9 -0
- package/src/modules/base/components/content-container/content-container.style.scss +36 -0
- package/src/modules/base/components/content-container/content-container.template.html +8 -0
- package/src/modules/base/components/content-container/index.js +9 -0
- package/src/modules/base/controllers/base.controller.js +39 -0
- package/src/modules/base/index.js +42 -0
- package/src/modules/base/providers/theme.provider.js +12 -0
- package/src/modules/base/providers/themes.list.js +233 -0
- package/src/modules/base/styles/base.animations.scss +43 -0
- package/src/modules/base/styles/base.flex.scss +45 -0
- package/src/modules/base/styles/base.style.scss +169 -0
- package/src/modules/base/templates/base.template.html +6 -0
- package/src/modules/footer/components/footer/footer.controller.js +17 -0
- package/src/modules/footer/components/footer/footer.style.scss +0 -0
- package/src/modules/footer/components/footer/footer.template.html +25 -0
- package/src/modules/footer/components/footer/index.js +13 -0
- package/src/modules/footer/controllers/footer.controller.js +13 -0
- package/src/modules/footer/index.js +19 -0
- package/src/modules/footer/services/footer.service.js +24 -0
- package/src/modules/footer/styles/footer.animations.scss +11 -0
- package/src/modules/footer/styles/footer.style.scss +28 -0
- package/src/modules/footer/templates/footer.template.html +1 -0
- package/src/modules/pageloader/controllers/pageloader.controller.js +60 -0
- package/src/modules/pageloader/index.js +15 -0
- package/src/modules/pageloader/services/pageloader.service.js +15 -0
- package/src/modules/pageloader/styles/pageloader.style.scss +67 -0
- package/src/modules/pageloader/templates/pageloader.template.html +9 -0
- package/src/modules/side-content/components/btn/btn.controller.js +55 -0
- package/src/modules/side-content/components/btn/btn.style.scss +48 -0
- package/src/modules/side-content/components/btn/btn.template.html +18 -0
- package/src/modules/side-content/components/btn/index.js +17 -0
- package/src/modules/side-content/controllers/side-content.controller.js +93 -0
- package/src/modules/side-content/index.js +17 -0
- package/src/modules/side-content/services/side-content.service.js +49 -0
- package/src/modules/side-content/styles/side-content.style.scss +73 -0
- package/src/modules/side-content/templates/side-content.template.html +25 -0
- package/src/modules/side-menu/components/btn/btn.controller.js +13 -0
- package/src/modules/side-menu/components/btn/btn.style.scss +75 -0
- package/src/modules/side-menu/components/btn/btn.template.html +43 -0
- package/src/modules/side-menu/components/btn/index.js +26 -0
- package/src/modules/side-menu/components/category/category.style.scss +47 -0
- package/src/modules/side-menu/components/category/category.template.html +23 -0
- package/src/modules/side-menu/components/category/index.js +13 -0
- package/src/modules/side-menu/components/html/html.controller.js +5 -0
- package/src/modules/side-menu/components/html/html.template.html +3 -0
- package/src/modules/side-menu/components/html/index.js +14 -0
- package/src/modules/side-menu/components/item/index.js +29 -0
- package/src/modules/side-menu/components/item/item.template.html +40 -0
- package/src/modules/side-menu/components/link/index.js +18 -0
- package/src/modules/side-menu/components/link/link.controller.js +48 -0
- package/src/modules/side-menu/components/link/link.style.scss +10 -0
- package/src/modules/side-menu/components/link/link.template.html +21 -0
- package/src/modules/side-menu/components/quick-menu/index.js +14 -0
- package/src/modules/side-menu/components/quick-menu/quick-menu.controller.js +67 -0
- package/src/modules/side-menu/components/quick-menu/quick-menu.style.scss +151 -0
- package/src/modules/side-menu/components/quick-menu/quick-menu.template.html +44 -0
- package/src/modules/side-menu/components/sub-category/index.js +20 -0
- package/src/modules/side-menu/components/sub-category/sub-category.controller.js +16 -0
- package/src/modules/side-menu/components/sub-category/sub-category.style.scss +48 -0
- package/src/modules/side-menu/components/sub-category/sub-category.template.html +47 -0
- package/src/modules/side-menu/controllers/sideMenu.js +71 -0
- package/src/modules/side-menu/index.js +33 -0
- package/src/modules/side-menu/services/sideMenu.js +12 -0
- package/src/modules/side-menu/styles/side-menu.style.scss +86 -0
- package/src/modules/side-menu/templates/side-menu.template.html +30 -0
- package/src/modules/themes/themes.style.scss +227 -0
- package/src/modules/top-notifications/components/notification/index.js +17 -0
- package/src/modules/top-notifications/components/notification/notification.controller.js +168 -0
- package/src/modules/top-notifications/components/notification/notification.style.scss +210 -0
- package/src/modules/top-notifications/components/notification/notification.template.html +22 -0
- package/src/modules/top-notifications/controllers/top-notifications.controller.js +33 -0
- package/src/modules/top-notifications/index.js +18 -0
- package/src/modules/top-notifications/services/top-notifications.services.js +108 -0
- package/src/modules/top-notifications/styles/top-notifications.style.scss +0 -0
- package/src/modules/top-notifications/templates/top-notifications.template.html +5 -0
- package/src/modules/topbar/components/cashier/cashier.controller.js +17 -0
- package/src/modules/topbar/components/cashier/cashier.styles.scss +79 -0
- package/src/modules/topbar/components/cashier/cashier.template.html +32 -0
- package/src/modules/topbar/components/cashier/index.js +14 -0
- package/src/modules/topbar/components/cashier/service/cashier.service.js +43 -0
- package/src/modules/topbar/components/environment/environment.html +24 -0
- package/src/modules/topbar/components/environment/environment.js +16 -0
- package/src/modules/topbar/components/environment/environment.scss +137 -0
- package/src/modules/topbar/components/environment/index.js +11 -0
- package/src/modules/topbar/components/environment/service/environment.service.js +19 -0
- package/src/modules/topbar/components/notifications/index.js +13 -0
- package/src/modules/topbar/components/notifications/notifications.controller.js +108 -0
- package/src/modules/topbar/components/notifications/notifications.styles.scss +282 -0
- package/src/modules/topbar/components/notifications/notifications.template.html +154 -0
- package/src/modules/topbar/components/search/components/input/index.js +19 -0
- package/src/modules/topbar/components/search/components/input/input.controller.js +19 -0
- package/src/modules/topbar/components/search/components/input/input.style.scss +74 -0
- package/src/modules/topbar/components/search/components/input/input.template.html +8 -0
- package/src/modules/topbar/components/search/components/result-line/index.js +16 -0
- package/src/modules/topbar/components/search/components/result-line/result-line.controller.js +69 -0
- package/src/modules/topbar/components/search/components/result-line/result-line.style.scss +58 -0
- package/src/modules/topbar/components/search/components/result-line/result-line.template.html +29 -0
- package/src/modules/topbar/components/search/controllers/search.controller.js +298 -0
- package/src/modules/topbar/components/search/index.js +21 -0
- package/src/modules/topbar/components/search/styles/search.style.scss +114 -0
- package/src/modules/topbar/components/search/templates/search.template.html +48 -0
- package/src/modules/topbar/components/user/components/btn/btn.style.scss +35 -0
- package/src/modules/topbar/components/user/components/btn/btn.template.html +36 -0
- package/src/modules/topbar/components/user/components/btn/index.js +15 -0
- package/src/modules/topbar/components/user/components/link/index.js +18 -0
- package/src/modules/topbar/components/user/components/link/link.controller.js +15 -0
- package/src/modules/topbar/components/user/components/link/link.style.scss +13 -0
- package/src/modules/topbar/components/user/components/link/link.template.html +26 -0
- package/src/modules/topbar/components/user/components/loading/index.js +14 -0
- package/src/modules/topbar/components/user/components/loading/loading.animations.scss +9 -0
- package/src/modules/topbar/components/user/components/loading/loading.style.scss +12 -0
- package/src/modules/topbar/components/user/components/loading/loading.template.html +3 -0
- package/src/modules/topbar/components/user/controllers/user.controller.js +200 -0
- package/src/modules/topbar/components/user/index.js +27 -0
- package/src/modules/topbar/components/user/services/user.service.js +14 -0
- package/src/modules/topbar/components/user/styles/user.animations.scss +27 -0
- package/src/modules/topbar/components/user/styles/user.style.scss +997 -0
- package/src/modules/topbar/components/user/templates/user.template.html +252 -0
- package/src/modules/topbar/controllers/topbar.controller.js +27 -0
- package/src/modules/topbar/index.js +31 -0
- package/src/modules/topbar/services/base-notification-service.js +40 -0
- package/src/modules/topbar/styles/topbar.style.scss +211 -0
- package/src/modules/topbar/templates/topbar.template.html +93 -0
package/app.js
ADDED
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
angular.module('app', ['mbg.base', 'ui.router'])
|
|
2
|
+
.controller('appController', (baseNotificationService, $scope, MbgNotification, MbgPageLoader, $timeout, MbgSideContent, CashierService, $state, environmentService) => {
|
|
3
|
+
|
|
4
|
+
environmentService.setIsDemo(true)
|
|
5
|
+
|
|
6
|
+
baseNotificationService.setNotifications([
|
|
7
|
+
{
|
|
8
|
+
time: `17 de abril 2019`,
|
|
9
|
+
icon: `far fa-envelope`,
|
|
10
|
+
title: `Nova transferencia`,
|
|
11
|
+
body: `<b>Miranda SDK</b> te enviou <b>18</b> itens`,
|
|
12
|
+
actions: [
|
|
13
|
+
{
|
|
14
|
+
label: `Conferir`,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: `Aceitar`
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: `Recusar`
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
onClick: (notification, action) => {
|
|
24
|
+
console.log(notification, action)
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
time: `17 de abril 2019`,
|
|
29
|
+
icon: `far fa-envelope`,
|
|
30
|
+
title: `Uma nova transferencia`,
|
|
31
|
+
body: `Recebemos 5 itens da marisa filial 05`,
|
|
32
|
+
onClick: (notification) => {
|
|
33
|
+
console.log(`foi`, notification)
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
time: `17 de abril 2019`,
|
|
38
|
+
icon: `far fa-envelope`,
|
|
39
|
+
title: `Uma nova transferencia`,
|
|
40
|
+
body: `Recebemos 5 itens da marisa filial 05`,
|
|
41
|
+
onClick: (notification) => {
|
|
42
|
+
console.log(`foi`, notification)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
])
|
|
46
|
+
|
|
47
|
+
$scope.configBase = {
|
|
48
|
+
theme: 'cssVariable'
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const logoutOption = {
|
|
52
|
+
label: 'Sair',
|
|
53
|
+
iconSrc: 'fontawesome',
|
|
54
|
+
icon: 'fas fa-sign-out-alt',
|
|
55
|
+
iconSize: '22',
|
|
56
|
+
actionType: 'link',
|
|
57
|
+
action: '#logout'
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
$scope.configTopbar = {
|
|
61
|
+
logo: 'assets/img/logo.png',
|
|
62
|
+
logoActionType: 'state',
|
|
63
|
+
logoAction: 'app.teste',
|
|
64
|
+
disabledUserFocus: true,
|
|
65
|
+
usersBirthday: {
|
|
66
|
+
countShow: () => true,
|
|
67
|
+
getUsers: async () => {
|
|
68
|
+
return [{}, {}]
|
|
69
|
+
},
|
|
70
|
+
onClick: (users) => {
|
|
71
|
+
console.log(users)
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
user: {
|
|
75
|
+
name: 'Amália Fernandes',
|
|
76
|
+
avatar: 'assets/img/perfil.png',
|
|
77
|
+
links: [
|
|
78
|
+
{
|
|
79
|
+
label: 'Testar Loader',
|
|
80
|
+
iconSrc: 'fontawesome',
|
|
81
|
+
icon: 'fas fa-exchange-alt',
|
|
82
|
+
iconSize: '22',
|
|
83
|
+
actionType: 'function',
|
|
84
|
+
action: () => {
|
|
85
|
+
$timeout(() => {
|
|
86
|
+
MbgPageLoader.createPromise();
|
|
87
|
+
|
|
88
|
+
$timeout(() => {
|
|
89
|
+
MbgPageLoader.endPromise();
|
|
90
|
+
}, 3000000);
|
|
91
|
+
}, 10);
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
label: 'Trocar de Conta',
|
|
96
|
+
iconSrc: 'fontawesome',
|
|
97
|
+
icon: 'fas fa-exchange-alt',
|
|
98
|
+
iconSize: '22',
|
|
99
|
+
actionType: 'internal',
|
|
100
|
+
action: 'changeAccount'
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
label: 'Ir para o Finance',
|
|
104
|
+
iconSrc: 'fontawesome',
|
|
105
|
+
icon: 'fas fa-suitcase',
|
|
106
|
+
iconSize: '22',
|
|
107
|
+
actionType: 'link',
|
|
108
|
+
action: '#trocarconta'
|
|
109
|
+
},
|
|
110
|
+
logoutOption
|
|
111
|
+
],
|
|
112
|
+
actualOrganization: {
|
|
113
|
+
name: 'Spotify',
|
|
114
|
+
subTitle: 'Spotify Limitada ME.',
|
|
115
|
+
avatar: 'assets/img/logo_company.png',
|
|
116
|
+
editAction: () => {
|
|
117
|
+
console.log('EDITAR');
|
|
118
|
+
},
|
|
119
|
+
inviteAction: 'app.home',
|
|
120
|
+
editActionType: 'function',
|
|
121
|
+
inviteActionType: 'state',
|
|
122
|
+
info: [
|
|
123
|
+
{ title: 'Razão Social', text: 'Spotify Stream Digital World' },
|
|
124
|
+
{ title: 'Nome Fantasia', text: 'Spotify Brasil' }
|
|
125
|
+
],
|
|
126
|
+
links: [
|
|
127
|
+
{
|
|
128
|
+
label: 'Ir para o Finance',
|
|
129
|
+
iconSrc: 'fontawesome',
|
|
130
|
+
icon: 'fas fa-suitcase',
|
|
131
|
+
iconSize: '22',
|
|
132
|
+
actionType: 'link',
|
|
133
|
+
action: '#trocarconta'
|
|
134
|
+
},
|
|
135
|
+
logoutOption
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
otherOrganizations: [
|
|
139
|
+
{
|
|
140
|
+
name: 'Apple Inc',
|
|
141
|
+
logo: 'https://hcil.umd.edu/wp-content/uploads/2015/12/Apple-logo.png'
|
|
142
|
+
}, {
|
|
143
|
+
name: 'Dell',
|
|
144
|
+
logo: 'https://upload.wikimedia.org/wikipedia/commons/1/18/Dell_logo_2016.svg'
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
changeOrganizationAction: (organizationSelected) => {
|
|
148
|
+
console.log(organizationSelected);
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
search: {
|
|
152
|
+
indexFields: [{ name: 'name' }],
|
|
153
|
+
data: [
|
|
154
|
+
{
|
|
155
|
+
type: 'static',
|
|
156
|
+
data: [
|
|
157
|
+
{
|
|
158
|
+
type: 'Clientes',
|
|
159
|
+
name: 'Alfredo Peres',
|
|
160
|
+
empresa: 'Mobiage',
|
|
161
|
+
cpf: '029.202.594-54',
|
|
162
|
+
action: '#clientes/029.202.594-54',
|
|
163
|
+
actionType: 'link'
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
type: 'Clientes',
|
|
167
|
+
name: 'Thiago Martins',
|
|
168
|
+
cpf: '208.290.390-45',
|
|
169
|
+
action: () => {
|
|
170
|
+
// console.log('Thiago Martins');
|
|
171
|
+
},
|
|
172
|
+
actionType: 'function'
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
type: 'static',
|
|
178
|
+
data: 'sideMenuLinks'
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
$scope.teste = () => {
|
|
185
|
+
CashierService.updateCashier({
|
|
186
|
+
open: true,
|
|
187
|
+
date: '12/07/18',
|
|
188
|
+
name: 'PDV do Luis',
|
|
189
|
+
openState: (() => {
|
|
190
|
+
$state.go('app.teste');
|
|
191
|
+
}),
|
|
192
|
+
closeState: (() => {
|
|
193
|
+
$state.go('app.home');
|
|
194
|
+
})
|
|
195
|
+
});
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
$timeout(() => {
|
|
199
|
+
$scope.configMenu.keys = ['CRUD_NOTIFICATION', 'Tributação']
|
|
200
|
+
$scope.configMenu.quickMenu = {
|
|
201
|
+
enabled: true,
|
|
202
|
+
buttonText: 'asdasd2s',
|
|
203
|
+
links: [{
|
|
204
|
+
label: 'Mudar 2',
|
|
205
|
+
iconSrc: 'fontawesome',
|
|
206
|
+
icon: 'far fa-user',
|
|
207
|
+
action: () => {
|
|
208
|
+
|
|
209
|
+
},
|
|
210
|
+
actionType: 'function'
|
|
211
|
+
}, {
|
|
212
|
+
label: 'Produtos',
|
|
213
|
+
iconSrc: 'fontawesome',
|
|
214
|
+
icon: 'far fa-sticky-note',
|
|
215
|
+
action: '#produtos',
|
|
216
|
+
actionType: 'link'
|
|
217
|
+
}]
|
|
218
|
+
}
|
|
219
|
+
}, 5000)
|
|
220
|
+
|
|
221
|
+
$scope.configMenu = {
|
|
222
|
+
keys: ['CRUD_NOTIFICATION', 'CAIXA', 'Tributação'],
|
|
223
|
+
// authAccess: () => new Promise((resolve, reject) => {
|
|
224
|
+
// $timeout(() => {
|
|
225
|
+
// resolve(false)
|
|
226
|
+
// }, 2000)
|
|
227
|
+
// }),
|
|
228
|
+
quickMenu: {
|
|
229
|
+
enabled: true,
|
|
230
|
+
enableAutoToggle: true,
|
|
231
|
+
buttonText: 'Cadastro',
|
|
232
|
+
links: [{
|
|
233
|
+
label: 'Mudar',
|
|
234
|
+
iconSrc: 'fontawesome',
|
|
235
|
+
icon: 'far fa-user',
|
|
236
|
+
action: () => {
|
|
237
|
+
|
|
238
|
+
},
|
|
239
|
+
actionType: 'function'
|
|
240
|
+
}, {
|
|
241
|
+
label: 'Produtos',
|
|
242
|
+
iconSrc: 'fontawesome',
|
|
243
|
+
icon: 'far fa-sticky-note',
|
|
244
|
+
action: '#produtos',
|
|
245
|
+
actionType: 'link'
|
|
246
|
+
}]
|
|
247
|
+
},
|
|
248
|
+
structure: [
|
|
249
|
+
{
|
|
250
|
+
type: 'sub-category',
|
|
251
|
+
iconSrc: 'fontawesome',
|
|
252
|
+
icon: 'fas fa-ambulance',
|
|
253
|
+
label: 'Estoque',
|
|
254
|
+
showItens: 2,
|
|
255
|
+
children: [
|
|
256
|
+
{
|
|
257
|
+
type: 'btn',
|
|
258
|
+
label: 'Notificação',
|
|
259
|
+
key: 'CRUD_NOTIFICATION',
|
|
260
|
+
tag: {
|
|
261
|
+
label: 'Novo',
|
|
262
|
+
color: '#8600b8'
|
|
263
|
+
},
|
|
264
|
+
actionType: 'function',
|
|
265
|
+
action: () => {
|
|
266
|
+
MbgNotification.openNotification({
|
|
267
|
+
type: 'info',
|
|
268
|
+
variation: 'fixed',
|
|
269
|
+
message: 'Olá Mundo',
|
|
270
|
+
duration: 4000
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
type: 'btn',
|
|
276
|
+
label: 'Notificação Float',
|
|
277
|
+
actionType: 'function',
|
|
278
|
+
action: () => {
|
|
279
|
+
MbgNotification.openNotification({
|
|
280
|
+
type: 'info',
|
|
281
|
+
variation: 'float',
|
|
282
|
+
message: 'Olá Mundo',
|
|
283
|
+
duration: 4000
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
type: 'btn',
|
|
289
|
+
label: 'Notificação Toast',
|
|
290
|
+
actionType: 'function',
|
|
291
|
+
action: () => {
|
|
292
|
+
MbgNotification.openNotification({
|
|
293
|
+
type: 'info',
|
|
294
|
+
variation: 'toast',
|
|
295
|
+
message: 'Olá Mundo',
|
|
296
|
+
duration: 4000
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
type: 'btn',
|
|
302
|
+
label: 'Notificação',
|
|
303
|
+
actionType: 'function',
|
|
304
|
+
action: () => {
|
|
305
|
+
window.servico_de_correios_da_topage = 1;
|
|
306
|
+
// window.servico_de_correios_da_topage = window.servico_de_correios_da_topage || 0;
|
|
307
|
+
switch (window.servico_de_correios_da_topage) {
|
|
308
|
+
case 0: {
|
|
309
|
+
MbgNotification.openNotification({
|
|
310
|
+
type: 'info',
|
|
311
|
+
variation: 'fixed',
|
|
312
|
+
duration: 'fixed',
|
|
313
|
+
text: 'Olá Mundo',
|
|
314
|
+
actionButton: true,
|
|
315
|
+
actionText: 'fechar',
|
|
316
|
+
action: (teste) => {
|
|
317
|
+
MbgNotification.closeFixedNotif(teste.id);
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
case 1: {
|
|
323
|
+
MbgNotification.openNotification({
|
|
324
|
+
type: 'warn',
|
|
325
|
+
variation: 'fixed',
|
|
326
|
+
duration: 99999999999,
|
|
327
|
+
actionText: 'Ir para retransmissão',
|
|
328
|
+
text: 'É necessário realizar a retransmissão.',
|
|
329
|
+
actionButton: true
|
|
330
|
+
});
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
case 2: {
|
|
334
|
+
MbgNotification.openNotification({
|
|
335
|
+
type: 'error',
|
|
336
|
+
variation: 'fixed',
|
|
337
|
+
duration: 4000,
|
|
338
|
+
text: 'Olá Mundo'
|
|
339
|
+
});
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
case 3: {
|
|
343
|
+
MbgNotification.openNotification({
|
|
344
|
+
type: 'success',
|
|
345
|
+
variation: 'float',
|
|
346
|
+
duration: 6000,
|
|
347
|
+
text: 'Olá Mundo'
|
|
348
|
+
});
|
|
349
|
+
break;
|
|
350
|
+
}
|
|
351
|
+
default: {
|
|
352
|
+
MbgNotification.openNotification({
|
|
353
|
+
type: 'info',
|
|
354
|
+
variation: 'float',
|
|
355
|
+
message: 'Olá Mundo',
|
|
356
|
+
duration: 4000
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
window.servico_de_correios_da_topage += 1;
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
type: 'btn', label: 'Teste', actionType: 'state', action: 'app.teste({id:131231})'
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
type: 'btn', label: 'Footer', actionType: 'state', action: 'app.footer'
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
type: 'btn', label: 'Promoções', actionType: 'link', action: '#5'
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
type: 'btn', label: 'Troca', actionType: 'link', action: '#6'
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
type: 'btn', label: 'Consignado', actionType: 'link', action: '#7'
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
type: 'btn', label: 'Catálogo', actionType: 'link', action: '#8'
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
type: 'btn', label: 'Consulta', actionType: 'link', action: '#9'
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
type: 'category',
|
|
388
|
+
label: 'Menu',
|
|
389
|
+
children: [
|
|
390
|
+
{
|
|
391
|
+
type: 'sub-category',
|
|
392
|
+
label: 'Financeiro',
|
|
393
|
+
children: [
|
|
394
|
+
{
|
|
395
|
+
type: 'btn', key: 'CAIXA', label: 'Conta caixa', actionType: 'link', action: '#10'
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
type: 'btn', label: 'Abertura PDV', actionType: 'link', action: '#11'
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
type: 'btn', label: 'Fechamento', actionType: 'link', action: '#12'
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
type: 'btn', label: 'Pagar', actionType: 'link', action: '#13'
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
type: 'btn', label: 'Receber', actionType: 'link', action: '#14'
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
type: 'sub-category',
|
|
413
|
+
label: 'Fiscal',
|
|
414
|
+
children: [
|
|
415
|
+
{
|
|
416
|
+
type: 'btn', key: 'Tributação', label: 'Tributação', actionType: 'link', action: '#15'
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
type: 'btn', key: 'Notas', label: 'Notas', actionType: 'link', action: '#16'
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
type: 'category',
|
|
427
|
+
label: '',
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
type: 'html',
|
|
431
|
+
html:
|
|
432
|
+
`<div class="suporte">
|
|
433
|
+
<i class="far fa-question-circle"></i><br>
|
|
434
|
+
<strong> Suporte 24hrs </strong>
|
|
435
|
+
<a href="mailto:contato@kigi.com.br"> contato@kigi.com.br </a></br>
|
|
436
|
+
<a href="tel:08800 989 0803"> 08800 989 0803 </a>
|
|
437
|
+
</div>
|
|
438
|
+
`
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
type: 'html',
|
|
442
|
+
html: '<div class="versao">1.21.1-SNAPSHOT</div>'
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
type: 'category',
|
|
446
|
+
label: 'Categoria',
|
|
447
|
+
children: [
|
|
448
|
+
{
|
|
449
|
+
type: 'sub-category',
|
|
450
|
+
label: 'Sub-Categoria',
|
|
451
|
+
children: [
|
|
452
|
+
{
|
|
453
|
+
type: 'btn',
|
|
454
|
+
label: 'Item comum',
|
|
455
|
+
action: 'http://www.google.com',
|
|
456
|
+
actionType: 'link'
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
type: 'btn',
|
|
460
|
+
label: 'Texto que quebra em duas linhas',
|
|
461
|
+
action: '#',
|
|
462
|
+
actionType: 'link'
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
type: 'btn',
|
|
466
|
+
iconSrc: 'fontawesome',
|
|
467
|
+
icon: 'fas fa-heart',
|
|
468
|
+
label: 'Font Awesome',
|
|
469
|
+
action: '#',
|
|
470
|
+
actionType: 'link'
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
type: 'btn',
|
|
474
|
+
iconSrc: 'material',
|
|
475
|
+
icon: 'movie',
|
|
476
|
+
label: 'Material Design',
|
|
477
|
+
action: '#',
|
|
478
|
+
actionType: 'link'
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
type: 'btn',
|
|
482
|
+
iconSrc: 'https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg',
|
|
483
|
+
label: 'Custom Icon',
|
|
484
|
+
action: '#',
|
|
485
|
+
actionType: 'link'
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
type: 'btn',
|
|
489
|
+
i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zRRFgEdD4JSoEUEFAU+k51mi+NzlMSz5Tse1LoRQs2hMX6nmNBotWUfadhaxHmKZIUxD8V1KEonYwGWHIosWcHRB76ou3lgzQZEMxSs/1lUklLKkUhrwABtD4LZoV0PvfX4fJa1KFxStgAI3/Fq2XZj2vPbfd0ybSXszCK2AAjf/a5sa01GHxEhhA47+2KD0bgcVbYBQ0gdhcLR7jNB5q88a0X9Z23ckRLMZuuPMWGAUNBjf9lZV9erwGRkHj2hq/EFNYkgDT6UrLqlVZaFp3Cf3MCxEkg66tKOpMhGmJNrifxm3Rh57VHRK8t2Rt8hoqBuTQ/5zSlLofyqoyB0xTXkNl51H0Q/aqymOMiwXLJDAtFo2WPEUVjaeoXDzBaXXQTAOjoMkJd7dp8FUESJGDBQMwiDbcVVZRpcrx5ADM47kNVdEK6LdWogr7LUEAzNbgBCrawKaZ0bSyYOx3MgAw24NTEG32QYG02S+ntjUEMMhvbIFSTHORdQDDI7+hiBNqQyHIL1AADKwaQAEwVooDFHEwY2BrleQx49PW6wBGDzg5ZdfGEXXqU1lmCBYft1oHMOlEnXGhYbs7xyChaSxzPkUTAGMensaGqoGHkacByYIPuQmA4QdPXjzcbDVw9G0QIOfF5r6bmdxBAcDYtW500H6TeYYRiCJIRQFSyVIUATBuADSgwCGIDiiA8gbyoMYGs3SsiM0ScMXHhB3AZMvODaijeTGPfrHz4h4NEBpqRIpaVm0Va2AgCAIwEARgIAjAQBCAgSAAA0EABoIgAANBAAaCAAwEMdD/BBgADkLhtx8d5+cAAAAASUVORK5CYII=',
|
|
490
|
+
label: 'Custom Base 64 Icon',
|
|
491
|
+
action: '#',
|
|
492
|
+
actionType: 'link'
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
type: 'btn',
|
|
496
|
+
iconSrc: 'fontawesome',
|
|
497
|
+
icon: 'fas fa-ambulance',
|
|
498
|
+
iconSize: '25',
|
|
499
|
+
label: 'Custom Size Icon FA',
|
|
500
|
+
action: '#',
|
|
501
|
+
actionType: 'link'
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
type: 'btn',
|
|
505
|
+
iconSrc: 'material',
|
|
506
|
+
icon: 'weekend',
|
|
507
|
+
iconSize: '25',
|
|
508
|
+
label: 'Custom Size Icon MD',
|
|
509
|
+
action: '#',
|
|
510
|
+
actionType: 'link'
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
]
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
};
|
|
518
|
+
})
|
|
519
|
+
.run(($state, $timeout, MbgSideContent, CashierService) => {
|
|
520
|
+
$state.go('app.components');
|
|
521
|
+
$timeout(() => {
|
|
522
|
+
CashierService.updateCashier({
|
|
523
|
+
open: false,
|
|
524
|
+
date: '12/07/18',
|
|
525
|
+
openState: (() => {
|
|
526
|
+
$state.go('app.teste');
|
|
527
|
+
}),
|
|
528
|
+
closeState: (() => {
|
|
529
|
+
$state.go('app.home');
|
|
530
|
+
})
|
|
531
|
+
});
|
|
532
|
+
}, 2000);
|
|
533
|
+
MbgSideContent.add({
|
|
534
|
+
iconColor: 'white',
|
|
535
|
+
btnBgColor: '#d6df24',
|
|
536
|
+
onOpen: () => {
|
|
537
|
+
console.log('Abriu');
|
|
538
|
+
},
|
|
539
|
+
onClose: () => {
|
|
540
|
+
console.log('Fechou');
|
|
541
|
+
}
|
|
542
|
+
});
|
|
543
|
+
MbgSideContent.add({
|
|
544
|
+
template: '<h3> Example Template 2 </h3>',
|
|
545
|
+
iconColor: 'white',
|
|
546
|
+
onOpen: () => {
|
|
547
|
+
console.log('Abriu');
|
|
548
|
+
},
|
|
549
|
+
onClose: () => {
|
|
550
|
+
console.log('Fechou');
|
|
551
|
+
},
|
|
552
|
+
bgHide: false,
|
|
553
|
+
});
|
|
554
|
+
})
|
|
555
|
+
.config(($stateProvider) => {
|
|
556
|
+
$stateProvider.state({
|
|
557
|
+
name: 'app',
|
|
558
|
+
abstract: true,
|
|
559
|
+
template: `
|
|
560
|
+
<mbg-base config="configBase">
|
|
561
|
+
<mb-environment></mb-environment>
|
|
562
|
+
<mb-topbar config="configTopbar" config-menu="configMenu"></mb-topbar>
|
|
563
|
+
<mb-container>
|
|
564
|
+
<mb-sidemenu config="configMenu"></mb-sidemenu>
|
|
565
|
+
<mb-content>
|
|
566
|
+
<ui-view></ui-view>
|
|
567
|
+
</mb-content>
|
|
568
|
+
</mb-container>
|
|
569
|
+
<mb-side-content></mb-side-content>
|
|
570
|
+
<mb-pageloader></mb-pageloader>
|
|
571
|
+
</mbg-base>
|
|
572
|
+
<mb-notifications></mb-notifications>
|
|
573
|
+
`
|
|
574
|
+
});
|
|
575
|
+
$stateProvider.state({
|
|
576
|
+
name: 'app.home',
|
|
577
|
+
url: '/',
|
|
578
|
+
template: `
|
|
579
|
+
|
|
580
|
+
`
|
|
581
|
+
});
|
|
582
|
+
$stateProvider.state({
|
|
583
|
+
name: 'app.components',
|
|
584
|
+
url: '/components',
|
|
585
|
+
controller: function ($scope) {
|
|
586
|
+
},
|
|
587
|
+
template: ` <br><br><br><br>
|
|
588
|
+
<form name="myForm" style="padding: 0 54px;">
|
|
589
|
+
<div class="row">
|
|
590
|
+
|
|
591
|
+
<div class="col-md-3">
|
|
592
|
+
<label>Money: {{ valor }}</label>
|
|
593
|
+
<mb-input-money
|
|
594
|
+
ng-model="valor"
|
|
595
|
+
ng-required="true"
|
|
596
|
+
placeholder="Digite o valor total">
|
|
597
|
+
</mb-input-money>
|
|
598
|
+
</div>
|
|
599
|
+
|
|
600
|
+
<div class="col-md-3">
|
|
601
|
+
<label>CPF: {{ cpf }}</label>
|
|
602
|
+
<mb-input-cpf
|
|
603
|
+
ng-model="cpf"
|
|
604
|
+
ng-required="true"
|
|
605
|
+
placeholder="Digite o número do CPF">
|
|
606
|
+
</mb-input-cpf>
|
|
607
|
+
</div>
|
|
608
|
+
|
|
609
|
+
<div class="col-md-3">
|
|
610
|
+
<label>CNPJ: {{ cnpj }}</label>
|
|
611
|
+
<mb-input-cnpj
|
|
612
|
+
ng-model="cnpj"
|
|
613
|
+
ng-required="true"
|
|
614
|
+
placeholder="Digite o número do CNPJ">
|
|
615
|
+
</mb-input-cnpj>
|
|
616
|
+
</div>
|
|
617
|
+
|
|
618
|
+
<div class="col-md-3">
|
|
619
|
+
<label>CPF/CNPJ: {{ cpfcnpj }}</label>
|
|
620
|
+
<mb-input-cpfcnpj
|
|
621
|
+
ng-model="cpfcnpj"
|
|
622
|
+
ng-required="true"
|
|
623
|
+
placeholder="Digite o número do CPF ou CNPJ">
|
|
624
|
+
</mb-input-cpfcnpj>
|
|
625
|
+
</div>
|
|
626
|
+
|
|
627
|
+
</div>
|
|
628
|
+
|
|
629
|
+
<div class="row" style="margin-top: 34px;">
|
|
630
|
+
|
|
631
|
+
<div class="col-md-3">
|
|
632
|
+
<label>Telefone: {{ phone }}</label>
|
|
633
|
+
<mb-input-phone
|
|
634
|
+
ng-model="phone"
|
|
635
|
+
ng-required="true"
|
|
636
|
+
placeholder="Digite seu número de telefone">
|
|
637
|
+
</mb-input-phone>
|
|
638
|
+
</div>
|
|
639
|
+
|
|
640
|
+
<div class="col-md-3">
|
|
641
|
+
<label>Nome: {{ name }}</label>
|
|
642
|
+
<mb-input-name
|
|
643
|
+
ng-model="name"
|
|
644
|
+
ng-init="name = 'block'"
|
|
645
|
+
ng-required="true"
|
|
646
|
+
placeholder="Digite seu nome completo">
|
|
647
|
+
</mb-input-name>
|
|
648
|
+
</div>
|
|
649
|
+
|
|
650
|
+
<div class="col-md-3">
|
|
651
|
+
<label>Texto: {{ text }}</label>
|
|
652
|
+
|
|
653
|
+
<mb-input-text
|
|
654
|
+
ng-model="text"
|
|
655
|
+
ng-required="true"
|
|
656
|
+
ng-disabled="name === 'Block'"
|
|
657
|
+
placeholder="Digite qualquer texto">
|
|
658
|
+
</mb-input-text>
|
|
659
|
+
|
|
660
|
+
</div>
|
|
661
|
+
|
|
662
|
+
</div>
|
|
663
|
+
</form>
|
|
664
|
+
`
|
|
665
|
+
});
|
|
666
|
+
$stateProvider.state({
|
|
667
|
+
name: 'app.teste',
|
|
668
|
+
url: '/teste',
|
|
669
|
+
template: `
|
|
670
|
+
<button ng-click="teste()">clica ae</button>
|
|
671
|
+
<div class="conteudoTeste">TESTE</div>
|
|
672
|
+
<div class="conteudoTeste"></div>
|
|
673
|
+
<div class="conteudoTeste"></div>
|
|
674
|
+
<div class="conteudoTeste"></div>
|
|
675
|
+
<div class="conteudoTeste"></div>
|
|
676
|
+
`
|
|
677
|
+
});
|
|
678
|
+
$stateProvider.state({
|
|
679
|
+
name: 'app.footer',
|
|
680
|
+
url: '/footer',
|
|
681
|
+
template: `
|
|
682
|
+
<div class="conteudoTeste">Footer</div>
|
|
683
|
+
<mb-footer></mb-footer>
|
|
684
|
+
`
|
|
685
|
+
});
|
|
686
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 246.96 240.56"><path d="M52.26,54.7H26.52v-23h81.11v23H81.89v64.92H52.26Z" transform="translate(-26.52 -29.72)"/><path d="M188.36,97.27v22.35H115.28V31.73h71.45V54.08H144.41V64.37h37.17V85.72H144.41V97.27Z" transform="translate(-26.52 -29.72)"/><path d="M211.27,119.18a56.91,56.91,0,0,1-17-6.6L203.8,91a60.84,60.84,0,0,0,14.06,5.84A55.13,55.13,0,0,0,232.8,99c4.1,0,7-.39,8.79-1.19a3.83,3.83,0,0,0,2.64-3.58q0-2.76-3.46-4.14a74.31,74.31,0,0,0-11.36-3,128.64,128.64,0,0,1-16.95-4.59,28.9,28.9,0,0,1-11.8-8q-5-5.58-5-15.13a26.13,26.13,0,0,1,4.64-15.07q4.65-6.78,13.88-10.67t22.41-3.89a81.69,81.69,0,0,1,17.76,1.94,55.86,55.86,0,0,1,15.39,5.72L260.8,58.85q-12.93-6.52-24.48-6.53t-11.43,5.52q0,2.64,3.39,4a71.37,71.37,0,0,0,11.18,2.82,116.19,116.19,0,0,1,17,4.33,29.53,29.53,0,0,1,12,8q5.09,5.52,5.08,15.06a25.83,25.83,0,0,1-4.64,15q-4.65,6.72-13.88,10.67t-22.41,4A92.35,92.35,0,0,1,211.27,119.18Z" transform="translate(-26.52 -29.72)"/><path d="M93.5,205.37H67.76v-23h81.11v23H123.13v64.91H93.5Z" transform="translate(-26.52 -29.72)"/><path d="M229.6,247.93v22.35H156.53V182.39H228v22.35H185.66V215h37.16v21.34H185.66v11.55Z" transform="translate(-26.52 -29.72)"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|