voom-presenters 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +54 -0
- data/.ruby-version +1 -0
- data/Gemfile +11 -0
- data/Gemfile.lock +104 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/ROADMAP.md +21 -0
- data/Rakefile +6 -0
- data/app/demo/component_status.pom +76 -0
- data/app/demo/components.pom +19 -0
- data/app/demo/components/badges.pom +25 -0
- data/app/demo/components/buttons.pom +51 -0
- data/app/demo/components/cards.pom +79 -0
- data/app/demo/components/chips.pom +91 -0
- data/app/demo/components/dialogs.pom +27 -0
- data/app/demo/components/drawers.pom +34 -0
- data/app/demo/components/expansion_panels.pom +21 -0
- data/app/demo/components/fabs-mini.pom +18 -0
- data/app/demo/components/fabs.pom +16 -0
- data/app/demo/components/footers.pom +36 -0
- data/app/demo/components/forms.pom +30 -0
- data/app/demo/components/headers.pom +37 -0
- data/app/demo/components/hidden_fields.pom +20 -0
- data/app/demo/components/icons.pom +94 -0
- data/app/demo/components/layouts.pom +44 -0
- data/app/demo/components/lists.pom +124 -0
- data/app/demo/components/menus.pom +43 -0
- data/app/demo/components/nav/drawer.pom +5 -0
- data/app/demo/components/nav/menu.pom +15 -0
- data/app/demo/components/selects.pom +30 -0
- data/app/demo/components/snackbar.pom +24 -0
- data/app/demo/components/snackbar_attached.pom +6 -0
- data/app/demo/components/tables.pom +39 -0
- data/app/demo/components/text_areas.pom +19 -0
- data/app/demo/components/text_fields.pom +57 -0
- data/app/demo/components/toggles.pom +29 -0
- data/app/demo/components/tooltips.pom +120 -0
- data/app/demo/event/actions.rb +86 -0
- data/app/demo/event/actions/dialog/show_dialog.pom +9 -0
- data/app/demo/event/actions/dialog/trigger.pom +86 -0
- data/app/demo/event/actions/nav/drawer.pom +5 -0
- data/app/demo/event/actions/nav/menu.pom +19 -0
- data/app/demo/event/autocomplete.pom +27 -0
- data/app/demo/event/field_level.pom +22 -0
- data/app/demo/event/form_level.pom +26 -0
- data/app/demo/event/nav/drawer.pom +5 -0
- data/app/demo/event/nav/menu.pom +14 -0
- data/app/demo/event/new_text.pom +6 -0
- data/app/demo/events.pom +98 -0
- data/app/demo/helpers/indented_grid.rb +14 -0
- data/app/demo/index.pom +19 -0
- data/app/demo/markdown.pom +73 -0
- data/app/demo/nav/top_nav.pom +42 -0
- data/app/demo/shared/code.pom +20 -0
- data/app/demo/shared/context_list.pom +29 -0
- data/app/demo/shared/debug.pom +17 -0
- data/app/demo/styles.pom +26 -0
- data/bin/console +22 -0
- data/bin/setup +8 -0
- data/component-status.yml +219 -0
- data/config.ru +21 -0
- data/lib/voom-presenters.rb +9 -0
- data/lib/voom/container_methods.rb +40 -0
- data/lib/voom/logger_methods.rb +11 -0
- data/lib/voom/parameters.rb +73 -0
- data/lib/voom/presenters-engine.rb +40 -0
- data/lib/voom/presenters.rb +13 -0
- data/lib/voom/presenters/api/app.rb +53 -0
- data/lib/voom/presenters/api/router.rb +94 -0
- data/lib/voom/presenters/app.rb +55 -0
- data/lib/voom/presenters/container_item.rb +16 -0
- data/lib/voom/presenters/demo/echo.rb +29 -0
- data/lib/voom/presenters/demo/search-terms.yml +50 -0
- data/lib/voom/presenters/demo/search.rb +29 -0
- data/lib/voom/presenters/dsl.rb +60 -0
- data/lib/voom/presenters/dsl/components/action.rb +35 -0
- data/lib/voom/presenters/dsl/components/avatar.rb +27 -0
- data/lib/voom/presenters/dsl/components/badge.rb +21 -0
- data/lib/voom/presenters/dsl/components/base.rb +78 -0
- data/lib/voom/presenters/dsl/components/button.rb +49 -0
- data/lib/voom/presenters/dsl/components/card.rb +119 -0
- data/lib/voom/presenters/dsl/components/checkbox.rb +16 -0
- data/lib/voom/presenters/dsl/components/chip.rb +48 -0
- data/lib/voom/presenters/dsl/components/content.rb +33 -0
- data/lib/voom/presenters/dsl/components/date_time.rb +17 -0
- data/lib/voom/presenters/dsl/components/dialog.rb +50 -0
- data/lib/voom/presenters/dsl/components/drawer.rb +40 -0
- data/lib/voom/presenters/dsl/components/event.rb +101 -0
- data/lib/voom/presenters/dsl/components/event_base.rb +20 -0
- data/lib/voom/presenters/dsl/components/expansion_panel.rb +46 -0
- data/lib/voom/presenters/dsl/components/footer.rb +25 -0
- data/lib/voom/presenters/dsl/components/form.rb +42 -0
- data/lib/voom/presenters/dsl/components/grid.rb +64 -0
- data/lib/voom/presenters/dsl/components/header.rb +33 -0
- data/lib/voom/presenters/dsl/components/hidden_field.rb +25 -0
- data/lib/voom/presenters/dsl/components/icon.rb +21 -0
- data/lib/voom/presenters/dsl/components/icon_base.rb +24 -0
- data/lib/voom/presenters/dsl/components/icon_toggle.rb +21 -0
- data/lib/voom/presenters/dsl/components/image.rb +36 -0
- data/lib/voom/presenters/dsl/components/input.rb +19 -0
- data/lib/voom/presenters/dsl/components/list.rb +39 -0
- data/lib/voom/presenters/dsl/components/lists/action.rb +72 -0
- data/lib/voom/presenters/dsl/components/lists/line.rb +83 -0
- data/lib/voom/presenters/dsl/components/lists/separator.rb +16 -0
- data/lib/voom/presenters/dsl/components/menu.rb +66 -0
- data/lib/voom/presenters/dsl/components/mixins/append.rb +20 -0
- data/lib/voom/presenters/dsl/components/mixins/attaches.rb +18 -0
- data/lib/voom/presenters/dsl/components/mixins/avatar.rb +18 -0
- data/lib/voom/presenters/dsl/components/mixins/buttons.rb +15 -0
- data/lib/voom/presenters/dsl/components/mixins/chips.rb +21 -0
- data/lib/voom/presenters/dsl/components/mixins/common.rb +50 -0
- data/lib/voom/presenters/dsl/components/mixins/content.rb +15 -0
- data/lib/voom/presenters/dsl/components/mixins/dialogs.rb +19 -0
- data/lib/voom/presenters/dsl/components/mixins/event.rb +19 -0
- data/lib/voom/presenters/dsl/components/mixins/expansion_panels.rb +15 -0
- data/lib/voom/presenters/dsl/components/mixins/grids.rb +15 -0
- data/lib/voom/presenters/dsl/components/mixins/helpers.rb +20 -0
- data/lib/voom/presenters/dsl/components/mixins/icons.rb +17 -0
- data/lib/voom/presenters/dsl/components/mixins/images.rb +15 -0
- data/lib/voom/presenters/dsl/components/mixins/menus.rb +15 -0
- data/lib/voom/presenters/dsl/components/mixins/selects.rb +17 -0
- data/lib/voom/presenters/dsl/components/mixins/snackbars.rb +18 -0
- data/lib/voom/presenters/dsl/components/mixins/text_fields.rb +35 -0
- data/lib/voom/presenters/dsl/components/mixins/toggles.rb +40 -0
- data/lib/voom/presenters/dsl/components/mixins/tooltips.rb +18 -0
- data/lib/voom/presenters/dsl/components/mixins/typography.rb +37 -0
- data/lib/voom/presenters/dsl/components/page.rb +29 -0
- data/lib/voom/presenters/dsl/components/radio_button.rb +14 -0
- data/lib/voom/presenters/dsl/components/select.rb +64 -0
- data/lib/voom/presenters/dsl/components/snackbar.rb +32 -0
- data/lib/voom/presenters/dsl/components/switch.rb +14 -0
- data/lib/voom/presenters/dsl/components/table.rb +102 -0
- data/lib/voom/presenters/dsl/components/text_area.rb +20 -0
- data/lib/voom/presenters/dsl/components/text_field.rb +74 -0
- data/lib/voom/presenters/dsl/components/toggle_base.rb +26 -0
- data/lib/voom/presenters/dsl/components/tooltip.rb +25 -0
- data/lib/voom/presenters/dsl/components/typography.rb +25 -0
- data/lib/voom/presenters/dsl/definer.rb +13 -0
- data/lib/voom/presenters/dsl/definition.rb +31 -0
- data/lib/voom/presenters/dsl/invalid_presenter.rb +8 -0
- data/lib/voom/presenters/dsl/lockable.rb +15 -0
- data/lib/voom/presenters/dsl/user_interface.rb +135 -0
- data/lib/voom/presenters/errors/parameter_validation.rb +10 -0
- data/lib/voom/presenters/errors/unprocessable.rb +8 -0
- data/lib/voom/presenters/helpers.rb +18 -0
- data/lib/voom/presenters/helpers/currency.rb +14 -0
- data/lib/voom/presenters/helpers/date.rb +22 -0
- data/lib/voom/presenters/helpers/errors.rb +11 -0
- data/lib/voom/presenters/helpers/inflector.rb +16 -0
- data/lib/voom/presenters/helpers/rails.rb +60 -0
- data/lib/voom/presenters/helpers/route.rb +11 -0
- data/lib/voom/presenters/helpers/time.rb +27 -0
- data/lib/voom/presenters/settings.rb +35 -0
- data/lib/voom/presenters/version.rb +5 -0
- data/lib/voom/presenters/web_client/app.rb +128 -0
- data/lib/voom/presenters/web_client/markdown_render.rb +16 -0
- data/lib/voom/presenters/web_client/router.rb +96 -0
- data/lib/voom/serializer.rb +43 -0
- data/lib/voom/symbol/to_str.rb +29 -0
- data/lib/voom/trace.rb +19 -0
- data/presenters.gemspec +37 -0
- data/public/.gitignore +2 -0
- data/public/bundle.css +11413 -0
- data/public/bundle.js +16456 -0
- data/public/dialog-polyfill.js +738 -0
- data/public/favicon.ico +0 -0
- data/public/img/demo/dog.png +0 -0
- data/public/img/demo/image_card.jpg +0 -0
- data/public/img/demo/rx.png +0 -0
- data/public/img/demo/welcome_card.jpg +0 -0
- data/public/img/settings/blue.png +0 -0
- data/public/img/settings/green.png +0 -0
- data/public/img/settings/orange.png +0 -0
- data/public/img/settings/purple.png +0 -0
- data/public/img/settings/red.png +0 -0
- data/public/img/settings/teal.png +0 -0
- data/public/img/settings/white.png +0 -0
- data/public/img/settings/yellow.png +0 -0
- data/public/scripts.js +289 -0
- data/public/style-bundle.js +73 -0
- data/public/styles.css +16 -0
- data/views/mdc/.gitignore +1 -0
- data/views/mdc/assets/js/app.js +10 -0
- data/views/mdc/assets/js/components/base-component.js +5 -0
- data/views/mdc/assets/js/components/button.js +15 -0
- data/views/mdc/assets/js/components/cards.js +3 -0
- data/views/mdc/assets/js/components/checkboxes.js +15 -0
- data/views/mdc/assets/js/components/chips.js +12 -0
- data/views/mdc/assets/js/components/date-time.js +6 -0
- data/views/mdc/assets/js/components/dialogs.js +32 -0
- data/views/mdc/assets/js/components/events.js +151 -0
- data/views/mdc/assets/js/components/events/autocomplete.js +96 -0
- data/views/mdc/assets/js/components/events/base.js +41 -0
- data/views/mdc/assets/js/components/events/dialog.js +25 -0
- data/views/mdc/assets/js/components/events/errors.js +142 -0
- data/views/mdc/assets/js/components/events/loads.js +22 -0
- data/views/mdc/assets/js/components/events/navigates.js +17 -0
- data/views/mdc/assets/js/components/events/posts.js +99 -0
- data/views/mdc/assets/js/components/events/replaces.js +82 -0
- data/views/mdc/assets/js/components/events/selects.js +28 -0
- data/views/mdc/assets/js/components/events/snackbar.js +23 -0
- data/views/mdc/assets/js/components/events/toggle_visiblity.js +19 -0
- data/views/mdc/assets/js/components/forms.js +57 -0
- data/views/mdc/assets/js/components/icon-toggles.js +21 -0
- data/views/mdc/assets/js/components/initialize.js +34 -0
- data/views/mdc/assets/js/components/lists.js +4 -0
- data/views/mdc/assets/js/components/menus.js +31 -0
- data/views/mdc/assets/js/components/mixins/event-handler.js +13 -0
- data/views/mdc/assets/js/components/selects.js +45 -0
- data/views/mdc/assets/js/components/snackbar.js +32 -0
- data/views/mdc/assets/js/components/text-fields.js +77 -0
- data/views/mdc/assets/js/dialog-polyfill.js +738 -0
- data/views/mdc/assets/js/material.js +3996 -0
- data/views/mdc/assets/js/utils/urls.js +54 -0
- data/views/mdc/assets/scss/app.scss +31 -0
- data/views/mdc/assets/scss/components/avatar.scss +41 -0
- data/views/mdc/assets/scss/components/button.scss +47 -0
- data/views/mdc/assets/scss/components/card.scss +54 -0
- data/views/mdc/assets/scss/components/checkbox.scss +5 -0
- data/views/mdc/assets/scss/components/chip.scss +30 -0
- data/views/mdc/assets/scss/components/datetime.scss +0 -0
- data/views/mdc/assets/scss/components/dialog.scss +3 -0
- data/views/mdc/assets/scss/components/expansion-panel.scss +153 -0
- data/views/mdc/assets/scss/components/fab.scss +8 -0
- data/views/mdc/assets/scss/components/grid.scss +10 -0
- data/views/mdc/assets/scss/components/icon-toggles.scss +9 -0
- data/views/mdc/assets/scss/components/icon.scss +34 -0
- data/views/mdc/assets/scss/components/image.scss +24 -0
- data/views/mdc/assets/scss/components/list.scss +9 -0
- data/views/mdc/assets/scss/components/menu.scss +17 -0
- data/views/mdc/assets/scss/components/select.scss +16 -0
- data/views/mdc/assets/scss/components/snackbar.scss +5 -0
- data/views/mdc/assets/scss/components/switch.scss +6 -0
- data/views/mdc/assets/scss/components/table-pagination.scss +65 -0
- data/views/mdc/assets/scss/components/textfield.scss +1 -0
- data/views/mdc/assets/scss/components/typography.scss +25 -0
- data/views/mdc/assets/scss/material.blue_grey-orange.min.css +8 -0
- data/views/mdc/assets/scss/styles.scss +11 -0
- data/views/mdc/assets/scss/theme.scss +5 -0
- data/views/mdc/body/drawer.erb +18 -0
- data/views/mdc/body/drawers/menu.erb +25 -0
- data/views/mdc/body/footer.erb +1 -0
- data/views/mdc/body/footers/large.erb +27 -0
- data/views/mdc/body/footers/menu_item.erb +6 -0
- data/views/mdc/body/footers/small.erb +14 -0
- data/views/mdc/body/header.erb +25 -0
- data/views/mdc/body/snackbar.erb +10 -0
- data/views/mdc/components/avatar.erb +24 -0
- data/views/mdc/components/badge.erb +2 -0
- data/views/mdc/components/body.erb +2 -0
- data/views/mdc/components/button.erb +17 -0
- data/views/mdc/components/buttons/button.erb +20 -0
- data/views/mdc/components/buttons/fab.erb +22 -0
- data/views/mdc/components/buttons/icon.erb +24 -0
- data/views/mdc/components/card.erb +49 -0
- data/views/mdc/components/checkbox.erb +22 -0
- data/views/mdc/components/chip.erb +31 -0
- data/views/mdc/components/content.erb +11 -0
- data/views/mdc/components/date_time.erb +30 -0
- data/views/mdc/components/dialog.erb +27 -0
- data/views/mdc/components/display.erb +2 -0
- data/views/mdc/components/event.erb +18 -0
- data/views/mdc/components/expansion_panel.erb +11 -0
- data/views/mdc/components/form.erb +15 -0
- data/views/mdc/components/grid.erb +24 -0
- data/views/mdc/components/headline.erb +2 -0
- data/views/mdc/components/hidden_field.erb +1 -0
- data/views/mdc/components/icon.erb +30 -0
- data/views/mdc/components/icon_toggle.erb +15 -0
- data/views/mdc/components/image.erb +7 -0
- data/views/mdc/components/link.erb +14 -0
- data/views/mdc/components/list.erb +14 -0
- data/views/mdc/components/list/actions.erb +6 -0
- data/views/mdc/components/list/actions/button.erb +1 -0
- data/views/mdc/components/list/actions/checkbox.erb +1 -0
- data/views/mdc/components/list/actions/icon.erb +1 -0
- data/views/mdc/components/list/actions/icon_toggle.erb +1 -0
- data/views/mdc/components/list/actions/radio_button.erb +1 -0
- data/views/mdc/components/list/actions/switch.erb +1 -0
- data/views/mdc/components/list/avatar.erb +5 -0
- data/views/mdc/components/list/checkbox.erb +5 -0
- data/views/mdc/components/list/icon.erb +5 -0
- data/views/mdc/components/list/info.erb +1 -0
- data/views/mdc/components/list/line.erb +34 -0
- data/views/mdc/components/list/menu.erb +23 -0
- data/views/mdc/components/list/separator.erb +1 -0
- data/views/mdc/components/menu.erb +29 -0
- data/views/mdc/components/modal.erb +15 -0
- data/views/mdc/components/radio_button.erb +11 -0
- data/views/mdc/components/render.erb +4 -0
- data/views/mdc/components/select.erb +22 -0
- data/views/mdc/components/snackbar.erb +17 -0
- data/views/mdc/components/static.erb +7 -0
- data/views/mdc/components/subheading.erb +2 -0
- data/views/mdc/components/switch.erb +13 -0
- data/views/mdc/components/table.erb +13 -0
- data/views/mdc/components/table/header.erb +7 -0
- data/views/mdc/components/table/pagination.erb +24 -0
- data/views/mdc/components/table/row.erb +14 -0
- data/views/mdc/components/text_area.erb +8 -0
- data/views/mdc/components/text_field.erb +27 -0
- data/views/mdc/components/title.erb +4 -0
- data/views/mdc/components/tooltip.erb +5 -0
- data/views/mdc/components/typography.erb +13 -0
- data/views/mdc/init-depends.sh +2 -0
- data/views/mdc/layout.erb +50 -0
- data/views/mdc/package-lock.json +11524 -0
- data/views/mdc/package.json +39 -0
- data/views/mdc/web.erb +1 -0
- data/views/mdc/webpack.config.js +47 -0
- metadata +539 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
export class VUrls {
|
2
|
+
|
3
|
+
paramsArrayToHash(params) {
|
4
|
+
var results = {};
|
5
|
+
// Map params to object/hash
|
6
|
+
for (let param of params) {
|
7
|
+
results[param[0]] = param[1];
|
8
|
+
}
|
9
|
+
return results;
|
10
|
+
}
|
11
|
+
|
12
|
+
buildURL(baseUrl) {
|
13
|
+
var url = baseUrl;
|
14
|
+
for (var i = 1; i < arguments.length; i++) {
|
15
|
+
var args = arguments[i];
|
16
|
+
if (Array.isArray(args)) {
|
17
|
+
for (let arg of args) {
|
18
|
+
url += this.seperator(url) + this.encodeQueryParam(arg[0], arg[1]);
|
19
|
+
}
|
20
|
+
} else if (typeof args === 'object') {
|
21
|
+
url += this.seperator(url) + this.serialize(arguments[i]);
|
22
|
+
} else {
|
23
|
+
url += this.seperator(url) + args;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return url;
|
27
|
+
}
|
28
|
+
|
29
|
+
seperator(url) {
|
30
|
+
if (url.endsWith('?')) {
|
31
|
+
return '';
|
32
|
+
}
|
33
|
+
return url.includes("?") ? '&' : '?';
|
34
|
+
}
|
35
|
+
|
36
|
+
serialize(obj, prefix) {
|
37
|
+
var str = [],
|
38
|
+
p;
|
39
|
+
for (p in obj) {
|
40
|
+
if (obj.hasOwnProperty(p)) {
|
41
|
+
var k = prefix ? prefix + "[" + p + "]" : p,
|
42
|
+
v = obj[p];
|
43
|
+
str.push((v !== null && typeof v === "object") ?
|
44
|
+
this.serialize(v, k) :
|
45
|
+
this.encodeQueryParam(k, v));
|
46
|
+
}
|
47
|
+
}
|
48
|
+
return str.join("&");
|
49
|
+
}
|
50
|
+
|
51
|
+
encodeQueryParam(k, v) {
|
52
|
+
return encodeURIComponent(k) + "=" + encodeURIComponent(v);
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@import 'material.blue_grey-orange.min';
|
2
|
+
@import "theme";
|
3
|
+
|
4
|
+
// MDC
|
5
|
+
@import "components/fab";
|
6
|
+
@import "components/button";
|
7
|
+
@import "components/checkbox";
|
8
|
+
@import "components/grid";
|
9
|
+
@import "components/textfield";
|
10
|
+
@import "components/list";
|
11
|
+
@import "components/icon-toggles";
|
12
|
+
@import "components/menu";
|
13
|
+
@import "components/typography";
|
14
|
+
@import "components/select";
|
15
|
+
@import "components/chip";
|
16
|
+
@import "components/card";
|
17
|
+
@import "components/snackbar";
|
18
|
+
|
19
|
+
// Custom
|
20
|
+
@import "components/expansion-panel"; // MDL derivative
|
21
|
+
//@import "components/table-pagination"; // WIP
|
22
|
+
@import "components/avatar";
|
23
|
+
@import "components/dialog";
|
24
|
+
@import "components/switch";
|
25
|
+
@import "components/image";
|
26
|
+
@import "components/icon";
|
27
|
+
@import "components/datetime";
|
28
|
+
|
29
|
+
@import "styles";
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
.v-avatar {
|
3
|
+
margin-left: 0;
|
4
|
+
width: 40px;
|
5
|
+
height: 40px;
|
6
|
+
border-radius: 50%;
|
7
|
+
color: white;
|
8
|
+
align-items: center;
|
9
|
+
justify-content: center;
|
10
|
+
display: inline-flex;
|
11
|
+
flex-shrink: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.v-card-media {
|
15
|
+
.v-avatar {
|
16
|
+
background-color: var(--mdc-theme-text-icon-on-background, rgba(0, 0, 0, 0.38));
|
17
|
+
margin-right: 8px;
|
18
|
+
margin: 8px;
|
19
|
+
}
|
20
|
+
.v-avatar + .v-card-title {
|
21
|
+
margin-top: 8px;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.v-avatar-position-left {
|
26
|
+
float:left;
|
27
|
+
}
|
28
|
+
|
29
|
+
.v-avatar-position-top {
|
30
|
+
position: absolute;
|
31
|
+
top: 0;
|
32
|
+
}
|
33
|
+
|
34
|
+
.v-avatar-position-right {
|
35
|
+
float:right;
|
36
|
+
}
|
37
|
+
|
38
|
+
.v-avatar-position-bottom {
|
39
|
+
position: absolute;
|
40
|
+
bottom: 0;
|
41
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
@import "@material/button/mdc-button";
|
2
|
+
|
3
|
+
.mdc-button.v-secondary-filled-button {
|
4
|
+
@include mdc-button-filled-accessible($mdc-theme-secondary);
|
5
|
+
}
|
6
|
+
|
7
|
+
|
8
|
+
.mdc-button.v-secondary-text-button {
|
9
|
+
@include mdc-button-ink-color($mdc-theme-secondary);
|
10
|
+
@include mdc-states(secondary);
|
11
|
+
}
|
12
|
+
|
13
|
+
.v-button-position-left {
|
14
|
+
float: left;
|
15
|
+
}
|
16
|
+
|
17
|
+
.v-button-text-align-left {
|
18
|
+
padding-left: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.v-button-position-right {
|
22
|
+
float: right;
|
23
|
+
}
|
24
|
+
|
25
|
+
|
26
|
+
v-card-title-position-left {
|
27
|
+
position: absolute;
|
28
|
+
left: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
.v-button-icon-position-top {
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
.v-button-icon-position-right {
|
37
|
+
position: absolute;
|
38
|
+
right: 0;
|
39
|
+
}
|
40
|
+
|
41
|
+
.v-button-icon-position-bottom {
|
42
|
+
position: absolute;
|
43
|
+
bottom: 0;
|
44
|
+
|
45
|
+
}
|
46
|
+
|
47
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
@import "@material/card/mdc-card";
|
2
|
+
|
3
|
+
.v-card {
|
4
|
+
position: relative;
|
5
|
+
|
6
|
+
}
|
7
|
+
|
8
|
+
.v-card-media {
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
|
12
|
+
.v-card-content {
|
13
|
+
padding: 10px 10px 0px 10px;
|
14
|
+
}
|
15
|
+
|
16
|
+
.v-card-title {
|
17
|
+
padding: 10px 10px 0px 10px;
|
18
|
+
}
|
19
|
+
|
20
|
+
.v-card-title-position-left {
|
21
|
+
position: absolute;
|
22
|
+
left: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
.v-card-title-position-top {
|
26
|
+
position: absolute;
|
27
|
+
top: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
.v-card-title-position-right {
|
31
|
+
position: absolute;
|
32
|
+
right: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.v-card-title-position-bottom {
|
36
|
+
position: absolute;
|
37
|
+
bottom: 0;
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
//.v-card-overflow-menu {
|
42
|
+
// position: absolute;
|
43
|
+
// right: 16px;
|
44
|
+
// top: 16px;
|
45
|
+
//}
|
46
|
+
|
47
|
+
.v-card-media-image, .v-card-media-avatar {
|
48
|
+
}
|
49
|
+
|
50
|
+
.v-card__media-menu{
|
51
|
+
.v-button-icon-position-top {
|
52
|
+
top: 8px;
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@import "@material/chips/mdc-chips";
|
2
|
+
|
3
|
+
.mdc-chip__icon.v-icon-position-left {
|
4
|
+
float: none;
|
5
|
+
padding-right: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
.mdc-chip__icon.v-icon-position-top {
|
9
|
+
//position: absolute;
|
10
|
+
//top: 0;
|
11
|
+
}
|
12
|
+
|
13
|
+
.mdc-chip__icon.v-icon-position-right {
|
14
|
+
float: none;
|
15
|
+
padding-left: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.mdc-chip__icon.v-icon-position-bottom {
|
19
|
+
//position: absolute;
|
20
|
+
//bottom: 0;
|
21
|
+
}
|
22
|
+
|
23
|
+
.v-chip__primary {
|
24
|
+
background-color: $mdc-theme-primary;
|
25
|
+
@include mdc-button-ink-color(text-primary-on-dark);
|
26
|
+
}
|
27
|
+
|
28
|
+
.v-chip__secondary {
|
29
|
+
background-color: $mdc-theme-secondary;
|
30
|
+
}
|
File without changes
|
@@ -0,0 +1,153 @@
|
|
1
|
+
// https://codepen.io/rustemgareev/pen/dVyyYM/
|
2
|
+
$v-expansion-bg: #fff;
|
3
|
+
|
4
|
+
.v-expansion {
|
5
|
+
border-bottom: 1px solid rgba(0, 0, 0, .12);
|
6
|
+
|
7
|
+
&__summary {
|
8
|
+
padding-left: 24px;
|
9
|
+
padding-right: 24px;
|
10
|
+
height: 48px;
|
11
|
+
display: flex;
|
12
|
+
outline: none;
|
13
|
+
cursor: pointer;
|
14
|
+
|
15
|
+
&::-webkit-details-marker {
|
16
|
+
display: none;
|
17
|
+
}
|
18
|
+
|
19
|
+
&::after {
|
20
|
+
font-family: "Material Icons";
|
21
|
+
content: "\e313";
|
22
|
+
font-size: 24px;
|
23
|
+
font-weight: normal;
|
24
|
+
font-style: normal;
|
25
|
+
display: inline-flex;
|
26
|
+
flex-direction: column;
|
27
|
+
user-select: none;
|
28
|
+
justify-content: center;
|
29
|
+
transition: transform .2s, color .2s;
|
30
|
+
margin-left: auto;
|
31
|
+
// color: rgba(0, 0, 0, .38);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
&__header {
|
36
|
+
display: flex;
|
37
|
+
flex-direction: column;
|
38
|
+
justify-content: center;
|
39
|
+
font-size: 0.937rem;
|
40
|
+
font-weight: 500;
|
41
|
+
flex-basis: 30%;
|
42
|
+
margin-right: 1rem;
|
43
|
+
cursor: pointer;
|
44
|
+
}
|
45
|
+
|
46
|
+
&__subheader {
|
47
|
+
font-size: .75rem;
|
48
|
+
color: rgba(0, 0, 0, .54);
|
49
|
+
}
|
50
|
+
|
51
|
+
&__secondary-content {
|
52
|
+
display: flex;
|
53
|
+
flex-direction: column;
|
54
|
+
justify-content: center;
|
55
|
+
font-size: 0.9375rem;
|
56
|
+
font-weight: 500;
|
57
|
+
flex-basis: 30%;
|
58
|
+
color: rgba(0, 0, 0, .87);
|
59
|
+
margin-right: 16px;
|
60
|
+
}
|
61
|
+
|
62
|
+
&__content {
|
63
|
+
padding-left: 24px;
|
64
|
+
padding-right: 24px;
|
65
|
+
padding-top: 16px;
|
66
|
+
padding-bottom: 16px;
|
67
|
+
|
68
|
+
& + .v-expansion__actions {
|
69
|
+
border-top: 1px solid rgba(0, 0, 0, .12);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&__actions {
|
74
|
+
display: flex;
|
75
|
+
flex-direction: row-reverse;
|
76
|
+
padding-top: 16px;
|
77
|
+
padding-bottom: 16px;
|
78
|
+
}
|
79
|
+
|
80
|
+
&__action {
|
81
|
+
margin-right: 8px;
|
82
|
+
}
|
83
|
+
|
84
|
+
&[open] {
|
85
|
+
.v-expansion__summary::after {
|
86
|
+
transform: rotate(180deg);
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
// Open state
|
91
|
+
&[open] {
|
92
|
+
margin-top: 1rem;
|
93
|
+
margin-bottom: 1rem;
|
94
|
+
|
95
|
+
&:first-child {
|
96
|
+
margin-top: 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
&:last-child {
|
100
|
+
margin-bottom: 0;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
.v-expansion {
|
106
|
+
display: block;
|
107
|
+
// margin: 0;
|
108
|
+
transition: margin 225ms cubic-bezier(.4,0,.2,1);
|
109
|
+
|
110
|
+
background-color: $v-expansion-bg;
|
111
|
+
box-sizing: content-box;
|
112
|
+
color: rgba(0,0,0,.87);
|
113
|
+
}
|
114
|
+
|
115
|
+
.v-expansion-header {
|
116
|
+
display: flex;
|
117
|
+
flex-direction: row;
|
118
|
+
align-items: center;
|
119
|
+
height: 48px;
|
120
|
+
padding: 0 24px;
|
121
|
+
font-size: 15px;
|
122
|
+
font-weight: 400;
|
123
|
+
outline: none;
|
124
|
+
|
125
|
+
&::-webkit-details-marker {
|
126
|
+
display:none;
|
127
|
+
}
|
128
|
+
|
129
|
+
&__content {
|
130
|
+
display: flex;
|
131
|
+
flex: 1;
|
132
|
+
flex-direction: row;
|
133
|
+
overflow: hidden;
|
134
|
+
}
|
135
|
+
|
136
|
+
&__title {
|
137
|
+
display: flex;
|
138
|
+
flex-grow: 1;
|
139
|
+
margin-right: 16px;
|
140
|
+
}
|
141
|
+
|
142
|
+
&__description {
|
143
|
+
display: flex;
|
144
|
+
flex-grow: 1;
|
145
|
+
margin-right: 16px;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
.v-expansion-panel {
|
150
|
+
&__content {
|
151
|
+
padding: 0 24px 16px;
|
152
|
+
}
|
153
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
@import "@material/layout-grid/mdc-layout-grid";
|
2
|
+
|
3
|
+
@each $size in map-keys($mdc-layout-grid-columns) {
|
4
|
+
@include mdc-layout-grid-media-query_($size) {
|
5
|
+
$gutter: map-get($mdc-layout-grid-default-gutter, $size);
|
6
|
+
.v-nested_grid {
|
7
|
+
padding: $gutter/2 0 $gutter/2 0;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
}
|