2 | $errorsBox
3 | $fieldLayout
4 | $searchButton $resetButton
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/document-print.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/document-print.png
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/document-save-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/document-save-5.png
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/text-x-source.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/text-x-source.png
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/user-properties.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/user-properties.png
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/ie11/_wtabset.scss:
--------------------------------------------------------------------------------
1 | // IE11 does weird stuff with tabcontent if the tabset has a flex layout
2 | .wc-tabset-type-top {
3 | display: block;
4 | }
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/template/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Template renderers.
3 | */
4 | package com.github.bordertech.wcomponents.template;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/address-book-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/address-book-new.png
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/address-book-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/address-book-open.png
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/image/open-in-browser-w.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/image/open-in-browser-w.png
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/_theme-vars.scss:
--------------------------------------------------------------------------------
1 | // Placeholder for theme use.
2 | // Override it in your theme to override default vars.
3 | // This is the first import in vars/_wc.scss.
4 |
--------------------------------------------------------------------------------
/wcomponents-theme/.eslintignore:
--------------------------------------------------------------------------------
1 | # Only ignore third-party scripts
2 | **/lib/**
3 | # We are no longer using the intern tests, so ignore them until they are all dealt with
4 | src/test/intern/
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/resource/fontawesome/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-theme/src/main/resource/fontawesome/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/respond/phone/_checkableselect.scss:
--------------------------------------------------------------------------------
1 |
2 | @if $wc-use-respond == true {
3 | [data-wc-colcount] {
4 | column-count: 1;
5 | column-gap: 0;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/application-pdf.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/application-pdf.png
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/audio-x-generic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/audio-x-generic.png
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/image-x-generic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/image-x-generic.png
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/text-x-generic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/text-x-generic.png
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/video-x-generic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/video-x-generic.png
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/com/github/bordertech/wcomponents/container/VelocityComponent_Test1.vm:
--------------------------------------------------------------------------------
1 | ## Simple hello world - invokes toString on the test object
2 | $!{VelocityComponent_Test_key}
--------------------------------------------------------------------------------
/wcomponents-lde/src/test/java/com/github/bordertech/wcomponents/lde/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains unit tests for the lde classes.
3 | */
4 | package com.github.bordertech.wcomponents.lde;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/intern/resources/domAttribute.html:
--------------------------------------------------------------------------------
1 |
2 | i don't know but i've been told
3 |
4 |
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/file/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the classes used by file upload.
3 | */
4 | package com.github.bordertech.wcomponents.file;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains general WComponent utility classes.
3 | */
4 | package com.github.bordertech.wcomponents.util;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/application-msword.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/application-msword.png
--------------------------------------------------------------------------------
/wcomponents-examples-lde/src/main/java/com/github/bordertech/wcomponents/examples/lde/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Proxy LDE Launchers.
3 | */
4 | package com.github.bordertech.wcomponents.examples.lde;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/clientValidation.txt:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the core components of the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/mock/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains mock classes for unit testing.
3 | */
4 | package com.github.bordertech.wcomponents.util.mock;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_wmessagebox.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | .wc-messagebox {
5 | > h1 > span {
6 | @include onscreen(1);
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/resource/note.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Tove
4 | Jani
5 | Reminder
6 | Don't forget me this weekend!
7 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/registry/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides classes to register a component tree.
3 | */
4 | package com.github.bordertech.wcomponents.registry;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/application-x-compress.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/application-x-compress.png
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/testapp/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the classes for the test application.
3 | */
4 | package com.github.bordertech.wcomponents.testapp;
5 |
--------------------------------------------------------------------------------
/wcomponents-lde/src/main/java/com/github/bordertech/wcomponents/lde/examples/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains a Hello World Servlet example.
3 | */
4 | package com.github.bordertech.wcomponents.lde.examples;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/dom/textContent.mjs:
--------------------------------------------------------------------------------
1 | // TODO don't need this anymore
2 | export default {
3 | get: element => element.textContent,
4 | set: (element, value) => element.textContent = value
5 | };
6 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-theme/src/main/resource/fontawesome/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/application-vnd.ms-excel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/application-vnd.ms-excel.png
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/util/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains unit tests for general WComponent utility classes.
3 | */
4 | package com.github.bordertech.wcomponents.util;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/theme/wcomponents-theme/version.properties:
--------------------------------------------------------------------------------
1 | ## Test build number
2 | build.number=TEST_BUILD_NUMBER
3 |
4 | ## Test wc project version
5 | wc.project.version=TEST_WC_PROJECT_VERSION
6 |
--------------------------------------------------------------------------------
/wcomponents-test-lib/src/main/java/com/github/bordertech/wcomponents/test/example/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains example selenium test cases.
3 | */
4 | package com.github.bordertech.wcomponents.test.example;
5 |
--------------------------------------------------------------------------------
/wcomponents-test-lib/src/main/java/com/github/bordertech/wcomponents/test/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains classes that help test WComponent applications.
3 | */
4 | package com.github.bordertech.wcomponents.test;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/container/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the interceptors used by the web containers.
3 | */
4 | package com.github.bordertech.wcomponents.container;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/subordinate/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains unit tests for the subordinate control.
3 | */
4 | package com.github.bordertech.wcomponents.subordinate;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/com/github/bordertech/wcomponents/container/VelocityComponent_Test2.vm:
--------------------------------------------------------------------------------
1 | ## Invokes a "bad" method on the test object
2 | $!{VelocityComponent_Test_key.badMethod()}
3 |
4 | Should not see this
--------------------------------------------------------------------------------
/wcomponents-examples/readme.txt:
--------------------------------------------------------------------------------
1 | This example project contains a variety of WComponent examples
2 |
3 | Individual examples can be run using the Launcher.
4 |
5 | The kitchen sink example can also be deployed as a portlet.
6 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/test/java/com/github/bordertech/wcomponents/examples/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains unit tests for the WComponents examples.
3 | */
4 | package com.github.bordertech.wcomponents.examples;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/.nycrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "all": true,
3 | "include": [
4 | "src/main/**/"
5 | ],
6 | "exclude": [
7 | "src/test/**/"
8 | ],
9 | "reporter": "lcov",
10 | "report-dir": "target/coverage"
11 | }
12 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/ie11/_wtree.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | // IE does not support max-content and width: auto is sub-optimal here.
4 | [role='tree'].wc_htree [role='group'] {
5 | min-width: 0;
6 | width: 10rem;
7 | }
8 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/nil/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides a null render output format for use in testing.
3 | */
4 | package com.github.bordertech.wcomponents.render.nil;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/thumbnail/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains classes for providing thumbnail images.
3 | */
4 | package com.github.bordertech.wcomponents.util.thumbnail;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/icons/thumbnails/application-vnd.ms-powerpoint.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-core/src/main/resources/icons/thumbnails/application-vnd.ms-powerpoint.png
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the unit tests for the core components of the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/menu/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the WMenu component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.menu;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/iconStack.moustache:
--------------------------------------------------------------------------------
1 |
2 | {{lower}}
3 | {{upper}}
4 |
5 |
--------------------------------------------------------------------------------
/wcomponents-lde/src/main/resources/wcomponents-app.properties:
--------------------------------------------------------------------------------
1 | include=wcomponents-lde.properties
2 |
3 | ## Testing properties -- only present in the class path when tests are being run.
4 | include=wcomponents-test.properties
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/edge/_wtree.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | // Edge does not support max-content and width: auto is sub-optimal here.
4 | [role='tree'].wc_htree [role='group'] {
5 | min-width: 0;
6 | width: 10rem;
7 | }
8 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/layout/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides classes which are used to visually arrange components in a UI.
3 | */
4 | package com.github.bordertech.wcomponents.layout;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/registry/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides unit tests for classes used to register a component tree.
3 | */
4 | package com.github.bordertech.wcomponents.registry;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/templates/Test_Velocity.vm:
--------------------------------------------------------------------------------
1 | id=${wc.id}
2 | param=${mytest}
3 | firstName=${wc.bean.firstName}
4 | lastName=${wc.bean.lastName}
5 | child=${child1}
6 | not1=[$!{notexist}]
7 | not2=[$!{wc.notexist}]
8 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/picker/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the classes used by the example picker.
3 | */
4 | package com.github.bordertech.wcomponents.examples.picker;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/table/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the WTable component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.table;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/ie11/_wmultifileupload.scss:
--------------------------------------------------------------------------------
1 | .wc-multifileupload .wc-file {
2 | // IE11 cannot calc 100% - 1.333em and set a right pad in em at the same
3 | // time. Useless POS.
4 | padding-right: 3px;
5 | }
6 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/mixins/_respond.scss:
--------------------------------------------------------------------------------
1 | // Got rid of most of these as part of the simplification process.
2 | @mixin respond-phonelike {
3 | @media only screen and (max-width: 773px) {
4 | @content;
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/autocomplete/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the autocomplete helpers for the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents.autocomplete;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/monitor/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the classes used for providing statics about the user context.
3 | */
4 | package com.github.bordertech.wcomponents.monitor;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/portlet/context/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the classes used by a portlet context.
3 | *
4 | */
5 | package com.github.bordertech.wcomponents.portlet.context;
6 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/autocomplete/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the autocomplete helpers for the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents.autocomplete;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/subordinate/builder/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains unit tests for the subordinate builder.
3 | */
4 | package com.github.bordertech.wcomponents.subordinate.builder;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/datatable/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of the WDataTable component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.datatable;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/layout/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using layouts in WComponents.
3 | */
4 | package com.github.bordertech.wcomponents.examples.layout;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/othersys/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the WLink component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.othersys;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/test.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/test.pdf
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_wfigure.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | figcaption {
5 | @include border-box;
6 | display: block;
7 | text-align: center;
8 | width: 100%;
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/servlet/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides support for running a WComponent application in a Servlet container.
3 | */
4 | package com.github.bordertech.wcomponents.servlet;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/validator/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the default validator implementations for validating user input.
3 | */
4 | package com.github.bordertech.wcomponents.validator;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/container/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the unit tests for the interceptors used by the web containers.
3 | */
4 | package com.github.bordertech.wcomponents.container;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/templates/Test_Handlebars.hbs:
--------------------------------------------------------------------------------
1 | id={{wc.id}}
2 | param={{mytest}}
3 | firstName={{wc.bean.firstName}}
4 | lastName={{wc.bean.lastName}}
5 | child={{child1}}
6 | not1=[{{notexist}}]
7 | not2=[{{wc.notexist}}]
8 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of the core components of the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents.examples;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/repeater/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the WRepeater component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.repeater;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/validation/basic/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of basic validation.
3 | */
4 | package com.github.bordertech.wcomponents.examples.validation.basic;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/Einstein.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/Einstein.jpg
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/TextDuplicator_Velocity2.vm:
--------------------------------------------------------------------------------
1 |
2 | $label
3 |
4 |
5 | $duplicateButton
6 | $clearButton
7 |
8 |
9 | $text
10 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_multiformcomponent.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | .wc_mfc {
5 | width: 100%;
6 |
7 | input,
8 | select {
9 | max-width: 90%;
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/subordinate/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides functionality for shifting some basic UI operations to the client.
3 | */
4 | package com.github.bordertech.wcomponents.subordinate;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/mock/servlet/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides mock Servlet API classes suitable for unit testing.
3 | */
4 | package com.github.bordertech.wcomponents.util.mock.servlet;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/layout/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides unit tests for classes which are used to visually arrange components in a UI.
3 | */
4 | package com.github.bordertech.wcomponents.layout;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/common/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains classes that are common to the WComponents examples.
3 | */
4 | package com.github.bordertech.wcomponents.examples.common;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/validation/fields/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of validating fields.
3 | */
4 | package com.github.bordertech.wcomponents.examples.validation.fields;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/jasmine.json:
--------------------------------------------------------------------------------
1 | {
2 | "spec_dir": "src/test/",
3 | "spec_files": [
4 | "spec/*[tT]est.*js"
5 | ],
6 | "helpers": [
7 | "helpers/*.mjs"
8 | ],
9 | "stopSpecOnExpectationFailure": false,
10 | "random": false
11 | }
12 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/error/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains classes for mapping from system level exceptions to user friendly message.
3 | */
4 | package com.github.bordertech.wcomponents.util.error;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/monitor/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains the unit tests for classes used for providing statics about the user context.
3 | */
4 | package com.github.bordertech.wcomponents.monitor;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/velocity/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the unit tests for WComponents using the Apache Velocity templating language.
3 | */
4 | package com.github.bordertech.wcomponents.velocity;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/validation/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using different types of validation.
3 | */
4 | package com.github.bordertech.wcomponents.examples.validation;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/validator/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains unit tests for the default validator implementations for validating user input.
3 | */
4 | package com.github.bordertech.wcomponents.validator;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples-lde/src/main/resources/wcomponents-app.properties:
--------------------------------------------------------------------------------
1 | #Default component. See https://github.com/BorderTech/wcomponents/issues/1005
2 | bordertech.wcomponents.lde.component.to.launch=com.github.bordertech.wcomponents.examples.picker.ExamplePicker
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/subordinate/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the WSubordinateControl component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.subordinate;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/theme/ajax/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using AJAX in the WComponents UI framework.
3 | */
4 | package com.github.bordertech.wcomponents.examples.theme.ajax;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/theme/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of the core components in the WComponents UI framework.
3 | */
4 | package com.github.bordertech.wcomponents.examples.theme;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/autocomplete/type/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains typed enums for the autocomplete helpers for the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents.autocomplete.type;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/validation/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides classes which can be used for validating user input entered into a WComponent UI.
3 | */
4 | package com.github.bordertech.wcomponents.validation;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/repeater/link/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the WRepeater component with WLink.
3 | */
4 | package com.github.bordertech.wcomponents.examples.repeater.link;
5 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/portlet-portrait.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/portlet-portrait.jpg
--------------------------------------------------------------------------------
/wcomponents-test-lib/src/main/java/com/github/bordertech/wcomponents/test/selenium/element/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the WComponent specific WebElements for Selenium.
3 | *
4 | */
5 | package com.github.bordertech.wcomponents.test.selenium.element;
6 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_wcollapsible.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | summary {
5 | > h1,
6 | > h2,
7 | > h3,
8 | > h4,
9 | > h5,
10 | > h6 {
11 | width: auto;
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/respond/phone/_wpanel.scss:
--------------------------------------------------------------------------------
1 |
2 | @if $wc-use-respond == true and $wc-respond-reduce-gap-when-narrow == true {
3 | .wc-panel-type-box,
4 | .wc-panel-type-feature,
5 | footer {
6 | padding: $wc-phone-gap-normal;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/intern/resources/fileAccepted.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides a rendering format used to output a WComponent UI for use within a web-browser.
3 | */
4 | package com.github.bordertech.wcomponents.render.webxml;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/validation/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides unit tests for the classes used for validating user input entered into a WComponent UI.
3 | */
4 | package com.github.bordertech.wcomponents.validation;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/com/github/bordertech/wcomponents/container/VelocityComponent_Test3.vm:
--------------------------------------------------------------------------------
1 | ## Missing template include
2 | #if ($VelocityComponent_Test_key)
3 | #include("VelocityComponent_Test_Missing_Template.vm")
4 | #end
5 |
6 | Should not see this
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/picker/wclogo_small.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/picker/wclogo_small.gif
--------------------------------------------------------------------------------
/wcomponents-test-lib/src/main/java/com/github/bordertech/wcomponents/test/selenium/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides a WComponent UI testing API using the Selenium 2.0 WebDriver framework.
3 | *
4 | */
5 | package com.github.bordertech.wcomponents.test.selenium;
6 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/transientcontainer/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using the TransientDataContainer component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.transientcontainer;
5 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_combo.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | .wc_inputwidth > .wc-input > [role='combobox'] {
5 | &,
6 | > [type='text'],
7 | > [role='textbox'] {
8 | width: auto;
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/autocomplete/segment/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains text-segment enums for the autocomplete helpers for the WComponent framework.
3 | */
4 | package com.github.bordertech.wcomponents.autocomplete.segment;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/visitor/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains visitor classes that can be used by TreeUtil to search for components in the component tree.
3 | */
4 | package com.github.bordertech.wcomponents.util.visitor;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/velocity/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the ability to render sections of WComponent UIs using the Apache Velocity
3 | * templating language.
4 | */
5 | package com.github.bordertech.wcomponents.velocity;
6 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/validation/repeater/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains examples of using validation with the WRepeater component.
3 | */
4 | package com.github.bordertech.wcomponents.examples.validation.repeater;
5 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/error/impl/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Contains classes for the default mapping from system level exceptions to user
3 | * friendly message.
4 | */
5 | package com.github.bordertech.wcomponents.util.error.impl;
6 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/servlet/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides unit tests for the classes used to support running a WComponent application
3 | * in a Servlet container.
4 | */
5 | package com.github.bordertech.wcomponents.servlet;
6 |
--------------------------------------------------------------------------------
/wcomponents-test-lib/src/main/java/com/github/bordertech/wcomponents/test/selenium/server/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the WComponent specific functionality for wrapping/starting a server.
3 | *
4 | */
5 | package com.github.bordertech.wcomponents.test.selenium.server;
6 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/cat.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/cat.gif
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/dog.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/dog.gif
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/fish.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/fish.gif
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/goat.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/goat.gif
--------------------------------------------------------------------------------
/wcomponents-lde/src/main/java/com/github/bordertech/wcomponents/lde/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the ability to running a WComponent application in a Servlet container
3 | * directly from any development environment.
4 | */
5 | package com.github.bordertech.wcomponents.lde;
6 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_wtabset.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | [role='tablist'] {
5 | &[aria-multiselectable] {
6 | > [role='tab'] {
7 | @include border-box;
8 | width: 100%;
9 | }
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/llama.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/llama.gif
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/rabbit.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BorderTech/wcomponents/HEAD/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/petstore/resources/images/rabbit.gif
--------------------------------------------------------------------------------
/wcomponents-test-lib/src/main/java/com/github/bordertech/wcomponents/test/selenium/driver/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the WComponent specific functionality for wrapping/creating Selenium WebDriver.
3 | *
4 | */
5 | package com.github.bordertech.wcomponents.test.selenium.driver;
6 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/ie11/_wmenu.scss:
--------------------------------------------------------------------------------
1 | // The opener iconography for WMenu type BAR, type FLYOUT, type COLUMN.
2 |
3 |
4 | .wc-submenu-o > .wc-decoratedlabel::after {
5 | .wc_menu_bar &,
6 | .wc-menu-type-column & {
7 | display: inline-block;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/common/_draggable.scss:
--------------------------------------------------------------------------------
1 | // Components which implement the wc/ui/draggable JavaScript pseudo-interface.
2 | // As at 1.4.0 these are WDialog, WMultiFileWidget's/WImage's image editor,
3 | // and WTree as htree.
4 | [data-wc-draggable='true'] {
5 | cursor: move;
6 | }
7 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/intern/resources/ajaxTriggerManager.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/render/webxml/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides the unit tests for the classes used in rendering format used to output a WComponent UI
3 | * for use within a web-browser.
4 | */
5 | package com.github.bordertech.wcomponents.render.webxml;
6 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/theme/wcomponents-theme/ThemeServlet_Testfile.xsl:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/ForwardExample.vm:
--------------------------------------------------------------------------------
1 |
2 | This example demonstrates the use of the "forward" feature.
3 |
4 |
5 | Enter a URL in the entry field and then press the Forward button to go to that url.
6 |
7 | URL: $urlField $forwardBtn
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/respond/phone/_wtabset.scss:
--------------------------------------------------------------------------------
1 |
2 | @if $wc-use-respond == true and $wc-respond-reduce-gap-when-narrow == true {
3 | // Do not make role='tab' smaller because the padding is part of the hit zone.
4 | [role='tabpanel'] {
5 | padding: $wc-phone-gap-normal;
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/wcomponents-test.properties:
--------------------------------------------------------------------------------
1 | bordertech.wcomponents.factory.impl.com.github.bordertech.wcomponents.util.LookupTable=com.github.bordertech.wcomponents.TestLookupTable
2 |
3 | # Resource bundle base name for internationalisation tests
4 | bordertech.wcomponents.i18n.baseName=i18n/test
5 |
--------------------------------------------------------------------------------
/wcomponents-test-lib/spotbugs-exclude-filter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/com/github/bordertech/wcomponents/velocity/NoTemplateLayout.vm:
--------------------------------------------------------------------------------
1 |
5 | * This interface is used to mark components which are able to respond to the user "dropping" items via drag and
6 | * drop.
7 | *
8 | * @author Rick Brown
9 | * @since 1.0.0
10 | */
11 | public interface DropZone extends WComponent {
12 | }
13 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/WBeanContainer.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * An extension of WBeanComponent which supports children.
5 | *
6 | * @author Yiannis Paschalidis
7 | * @deprecated Use {@link WContainer} instead.
8 | */
9 | @Deprecated
10 | public class WBeanContainer extends WContainer {
11 | // Deprecated
12 | }
13 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/WSeparator.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * WSeparator provides spacing between items in a WMenu or WSubMenu. It is not a general purpose component.
5 | *
6 | * @author Yiannis Paschalidis
7 | * @since 1.0.0
8 | */
9 | public class WSeparator extends AbstractWComponent implements MenuItem {
10 | }
11 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/wcomponents.properties:
--------------------------------------------------------------------------------
1 | ## Version properties
2 | include=wcomponents-version.properties
3 |
4 | ## Main WComponent properties
5 | include=com/github/bordertech/wcomponents/web.properties
6 |
7 | ## Testing properties -- only present in the class path when tests are being run.
8 | include=wcomponents-test.properties
9 | include=wcomponents-test-lib-test.properties
10 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/picker/TreePicker.vm:
--------------------------------------------------------------------------------
1 |
2 | $!logo
3 |
4 | $!selectOtherPanel
5 |
6 |
7 |
8 | $!messages
9 | $!mainPanel
10 |
--------------------------------------------------------------------------------
/wcomponents-lde/src/main/resources/wcomponents-lde.properties:
--------------------------------------------------------------------------------
1 | ## Version properties
2 | include=wcomponents-lde-version.properties
3 |
4 | ## Load theme via WServlet
5 | bordertech.wcomponents.theme.content.path=
6 |
7 | ## Enable shutdown by default.
8 | bordertech.wcomponents.lde.shutdown.enabled=true
9 | ## do not cache templates in LDE
10 | bordertech.wcomponents.handlebars.cache.enabled=false
11 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/wcdebug/_indicator.scss:
--------------------------------------------------------------------------------
1 | // A mechanism to indicate the application is in debug mandatory-holder
2 |
3 | body {
4 | &::before {
5 | background-color: $wc-debug-indicator-bg;
6 | color: $wc-debug-indicator-fg;
7 | content: 'Client debug/diagnostic mode: document has ' attr(data-wc-nodeCount) ' elements.';
8 | display: block;
9 | padding: .5rem;
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/wcomponents-lde/src/main/resources/com/github/bordertech/wcomponents/lde/DevToolkit_footer.vm:
--------------------------------------------------------------------------------
1 | ## This velocity template is used by the com.github.bordertech.wcomponents.lde.DevToolkit class to output the
2 | ## controls necessary for the developer toolkit UI. It must not rely on any java WComponents or
3 | ## XML in the "ui" namespace.
4 | ##
5 | ## This template renders content after the wrapped WComponent UI.
6 | ##
7 |
8 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/layout/LayoutManager.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.layout;
2 |
3 | import java.io.Serializable;
4 |
5 | /**
6 | * The LayoutManager interfaces describes classes which can arrange components within a container.
7 | *
8 | * @author Yiannis Paschalidis
9 | * @since 1.0.0
10 | */
11 | public interface LayoutManager extends Serializable {
12 | }
13 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/_libs.scss:
--------------------------------------------------------------------------------
1 | // #############################################################################
2 | // The only purpose of this file is to include external libraries which for
3 | // whatever reason we have to build from source in WComponents. This file should
4 | // only include libraries which cannot be loaded asynchronously.
5 | // #############################################################################
6 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/isNumeric.mjs:
--------------------------------------------------------------------------------
1 | /**
2 | * Indicates if an input is numeric (eg "7" but not "seven").
3 | *
4 | * @function module:wc/isNumeric
5 | * @param {*} [n] The input to test.
6 | * @returns {Boolean} true if n is numeric.
7 | */
8 | function isNum(n) {
9 | let result = false;
10 | if (n !== null) {
11 | n *= 1;
12 | result = !isNaN(n);
13 | }
14 | return result;
15 | }
16 | export default isNum;
17 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/_theme.scss:
--------------------------------------------------------------------------------
1 | // #############################################################################
2 | // Theme Placeholder.
3 | // #############################################################################
4 | // Make a file with this name in your theme and use it to import your theme Sass
5 | // partials to use the old WComponents build mechanism to build a themed version
6 | // of the wcomponents default theme.
7 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/common/_typography.scss:
--------------------------------------------------------------------------------
1 | // #############################################################################
2 | // FONTS.
3 | // #############################################################################
4 |
5 | @if $wc-default-font != '' {
6 | body {
7 | font-family: $wc-default-font;
8 | }
9 | }
10 |
11 | @if $wc-mono-font != '' {
12 | pre {
13 | font-family: $wc-mono-font;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/wcomponents-xslt/src/main/xslt/wc.ui.skiplinks.xsl:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/common/_back-to-top.scss:
--------------------------------------------------------------------------------
1 | // The back to top of page link.
2 | // #############################################################################
3 | // This CSS is unnecessary if the JavaScript module "wc/ui/backToTop" is not
4 | // included in your theme's "wc/common" meta-module.
5 | .wc_btt {
6 | bottom: $wc-gap-large;
7 | opacity: .5;
8 | position: fixed;
9 | right: $wc-gap-large;
10 | text-decoration: none;
11 | }
12 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/has.mjs:
--------------------------------------------------------------------------------
1 | /*
2 | * This module is a remnant of a more fully featured has implementation.
3 | * See: https://dojotoolkit.org/reference-guide/1.10/dojo/sniff.html
4 | */
5 | const n = globalThis.navigator,
6 | dua = n.userAgent;
7 |
8 | const features = {
9 | ff: /Gecko\/(\S+)/.test(dua),
10 | edge: /Edg.*\/(\S+)/.test(dua),
11 | webkit: /AppleWebKit\/(\S+)/.test(dua)
12 | };
13 | export default feature => features[feature];
14 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/intern/resources/intern-chai.js:
--------------------------------------------------------------------------------
1 | /**
2 | * This module exists to provide AMD compatibility when moving from intern 3 to 4.
3 | */
4 | define(function() {
5 | var chai;
6 | return {
7 | load: function (id, parentRequire, callback/* , config */) {
8 | chai = chai || intern.getPlugin("chai");
9 | if (id === "assert") {
10 | callback(chai.assert);
11 | } else {
12 | callback(chai);
13 | }
14 | }
15 | };
16 | });
17 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/DeviceType.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.util;
2 |
3 | /**
4 | * The user's device type.
5 | *
6 | * @author Jonathan Austin
7 | * @since 1.2.5
8 | */
9 | public enum DeviceType {
10 | /**
11 | * Not a mobile or tablet device.
12 | */
13 | NORMAL,
14 | /**
15 | * Is a mobile device.
16 | */
17 | MOBILE,
18 | /**
19 | * Is a tablet.
20 | */
21 | TABLET
22 | }
23 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/picker/sourceView.vm:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 | $src
8 |
9 |
10 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/string/sprintf.mjs:
--------------------------------------------------------------------------------
1 | /**
2 | * This module exists to abstract away the underlying printf implementation.
3 | * sprintf attaches itself to "window" if it can find nothing else.
4 | * It is not a native ES module.
5 | */
6 | import "sprintf-js/src/sprintf.js";
7 |
8 | /**
9 | * @param {any[]} args
10 | * @returns {string}
11 | */
12 | export default function(...args) {
13 | // @ts-ignore
14 | return window.sprintf(...args);
15 | }
16 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/components/_audiovideo.scss:
--------------------------------------------------------------------------------
1 | // #############################################################################
2 | // styles for WAudio and WVideo when the media is not able to be handled by the
3 | // user agent natively.
4 | // #############################################################################
5 |
6 | .wc-src,
7 | .wc-track {
8 | display: inline-block;
9 |
10 | & + & {
11 | margin-left: $wc-gap-normal;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/MessageContainer.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * MessageContainer - Interface for a {@link WComponent} that displays {@link WMessages}.
5 | *
6 | * @author Yiannis Paschalidis
7 | * @since 1.0.0
8 | */
9 | public interface MessageContainer {
10 |
11 | /**
12 | * @return the WMessages contained by this MessageContainer.
13 | */
14 | WMessages getMessages();
15 | }
16 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/WSkipLinks.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * WSkipLinks is a component which has a heading and a list of internal links. These links will move the cursor point to
5 | * the first focusable element within a WPanel which has an accessKey set.
6 | *
7 | * @author Yiannis Paschalidis
8 | * @since 1.0.0
9 | */
10 | public class WSkipLinks extends AbstractWComponent {
11 | }
12 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/i18n/example.properties:
--------------------------------------------------------------------------------
1 | # Developers should use distinct message ids rather than text.
2 | ENTER_NAME_PROMPT=Your name
3 | SUBMIT_FORM=Submit
4 | HELLO_NAME=Hello {0}
5 | Output=Output
6 | DATE_PROMPT=Date of birth
7 | CLIENT_SIDE_PROMPT=Use client side validation?
8 |
9 | # Alternatively, internationalisation can be implemented by simply providing a translation of default text
10 | Internationalisation\ example=Internationalisation example
11 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/components/_collapsibletoggle.scss:
--------------------------------------------------------------------------------
1 | // The expand and collapse all buttons and their wrapper.
2 | // Common for WCollapsibleToggle and WTable's RowExpansion's expandAll.
3 | .wc_coltog {
4 | @include tight-box;
5 | list-style-type: none;
6 |
7 | > li {
8 | display: inline-block;
9 |
10 | + li {
11 | margin-left: $wc-gap-normal;
12 | }
13 | }
14 |
15 | button > .fa::before {
16 | @include margin($pos: right);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/fix/uc/_wtable.scss:
--------------------------------------------------------------------------------
1 |
2 |
3 | @if $wc-use-respond == true {
4 | .wc_table_bottom_controls,
5 | .wc_table_top_controls {
6 |
7 | > div {
8 | display: block;
9 | }
10 |
11 | .wc_table_pag_cont {
12 | > span,
13 | > label {
14 | display: block;
15 | }
16 | }
17 | }
18 |
19 | @if $wc-use-respond-table == true {
20 | [sortable] > thead th > .fa {
21 | float: right;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/wc-edge.scss:
--------------------------------------------------------------------------------
1 | // Fixes for Microsoft Edge
2 |
3 | // IMPORTS of all required variables.
4 | // #############################################################################
5 | // Import WComponent vars
6 | @import 'vars/wc';
7 | // Import WComponent mixins once rather than per use.
8 | @import 'mixins/common';
9 |
10 | // #############################################################################
11 | // Edge specific files
12 | @import 'fix/edge/wtree';
13 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/common/_list.scss:
--------------------------------------------------------------------------------
1 | // Styles applied to list output of many components.
2 | // See also ../components/_layout.scss for listlayout styles
3 |
4 |
5 | // represents a list with no bullets
6 | .wc_list_nb {
7 | @include tight-box;
8 | list-style-type: none;
9 | }
10 |
11 | // text mode option and optgroup emulation
12 | .wc_inoptgroup {
13 | text-indent: $wc-gap-large;
14 | }
15 |
16 | // opt group emulator
17 | .wc-optgroup {
18 | font-weight: bold;
19 | }
20 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WFieldWarningIndicatorRenderer.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.render.webxml;
2 |
3 | import com.github.bordertech.wcomponents.validation.WFieldWarningIndicator;
4 |
5 | /**
6 | * Layout manager for the {@link WFieldWarningIndicator} component.
7 | *
8 | * @author Jonathan Austin
9 | * @since 1.0.0
10 | */
11 | final class WFieldWarningIndicatorRenderer extends AbstractWFieldIndicatorRenderer {
12 | }
13 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/array/diff.mjs:
--------------------------------------------------------------------------------
1 | /**
2 | * Returns the difference between two arrays.
3 | * @param arr1 The array to compare against.
4 | * @param arr2 The array to compare.
5 | * @returns {Array} The items found in arr1 but not in arr2.
6 | */
7 | export default function diff(arr1, arr2) {
8 | if (arr1 && arr2 && Array.isArray(arr1) && Array.isArray(arr2)) {
9 | return arr1.filter(function(item) {
10 | return arr2.indexOf(item) < 0;
11 | });
12 | }
13 | return [];
14 | }
15 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/java/com/github/bordertech/wcomponents/TestSampleException.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * This class assists in the unit testing of WComponents.
5 | *
6 | * @author Anthony O'Connor
7 | * @since 1.0.0
8 | */
9 | public class TestSampleException extends Exception {
10 |
11 | /**
12 | * constructor.
13 | *
14 | * @param message sample message.
15 | */
16 | public TestSampleException(final String message) {
17 | super(message);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/wcdebug/_script.scss:
--------------------------------------------------------------------------------
1 | // CSS to highlight console.warn and cosole.error output
2 | body {
3 | &.wc_loggedwarn {
4 | background-color: $wc-debug-color-warning;
5 |
6 | &::before {
7 | content: 'Warnings in the console, do not panic';
8 | }
9 | }
10 |
11 | &.wc_loggederror { //the error style MUST TRUMP the warn style
12 | background-color: $wc-debug-color-error;
13 |
14 | &::before {
15 | content: 'Script error! Danger! Panic!';
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/Option.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * Describes an option in a list-type control, e.g. {@link WDropdown}, {@link WMultiSelect} etc.
5 | *
6 | * @author Yiannis Paschalidis
7 | * @since 1.0.0
8 | */
9 | public interface Option {
10 |
11 | /**
12 | * @return the code for this option.
13 | */
14 | String getCode();
15 |
16 | /**
17 | * @return the textual description of this option.
18 | */
19 | String getDesc();
20 | }
21 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/components/_clipboard.scss:
--------------------------------------------------------------------------------
1 | // #############################################################################
2 | // clipboard
3 | // #############################################################################
4 |
5 | button.wc-clipboard {
6 | margin-left: $wc-gap-normal;
7 | display: none;
8 | opacity: 50%;
9 | &:hover {
10 | opacity: 100%;
11 | }
12 | &:focus {
13 | opacity: 100%;
14 | }
15 | }
16 |
17 | body.wc-clipwrite button.wc-clipboard {
18 | display: inline-block;
19 | }
20 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/MenuItemGroup.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * A menu item that can group other menu items.
5 | *
6 | * Even though MenuItemGroup extends MenuContainer, it is not allowed to have a nested MenuItemGroup.
7 | *
8 | *
9 | * @author Jonathan Austin
10 | * @since 1.0.2
11 | * @deprecated menu groups are not compatible with WCAG 2.0.
12 | */
13 | @Deprecated
14 | public interface MenuItemGroup extends MenuItem, MenuContainer {
15 | }
16 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/SelectionToggleable.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * Components that have a selection which can be toggled by {@link WSelectToggle}
5 | * must implement this interface.
6 | */
7 | public interface SelectionToggleable {
8 |
9 | /**
10 | * Sets the selections for this component.
11 | *
12 | * @param selected if true, select everything. If false, deselect everything.
13 | */
14 | void toggleSelection(boolean selected);
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/servlet/NoContextException.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.servlet;
2 |
3 | import com.github.bordertech.wcomponents.util.SystemException;
4 |
5 | /**
6 | * A request was received that expected a User Context to already exist.
7 | */
8 | public class NoContextException extends SystemException {
9 |
10 | /**
11 | * @param message the error message
12 | */
13 | public NoContextException(final String message) {
14 | super(message);
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/WButtonExample.vm:
--------------------------------------------------------------------------------
1 |
Examples of the various ways WButton can be configured.
2 | $plainBtn
3 |
4 | $linkBtn [this button has been set as the default button when you hit enter while in the text field]
5 |
6 | $imageBtn
7 |
8 | $iconBtn
9 |
10 | $disableBtn $dynamicChangeBtn
11 |
12 | $textFld [A text field to enter a value and check if the value is posted to the server when one of the buttons is pressed]
13 |
14 | $textAreaFld
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/syntaxHighlight.css:
--------------------------------------------------------------------------------
1 | .javaSourceKeyword,
2 | .javaSourceComment,
3 | .javaSourceJavadoc,
4 | .javaSourceString,
5 | .javaSourceText
6 | {
7 | font:12px/1.25 monospace;
8 | white-space:pre;
9 | }
10 |
11 | span.javaSourceKeyword {
12 | color: #009;
13 | font-weight: bold;
14 | }
15 |
16 | span.javaSourceComment {
17 | color: #060;
18 | }
19 |
20 | span.javaSourceJavadoc {
21 | color: #767676;
22 | }
23 |
24 | span.javaSourceString {
25 | color: #c00;
26 | }
27 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/container/TargetableIdException.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.container;
2 |
3 | import com.github.bordertech.wcomponents.util.SystemException;
4 |
5 | /**
6 | * An invalid Targetable ID was provided on the request.
7 | */
8 | public class TargetableIdException extends SystemException {
9 |
10 | /**
11 | * @param message the Targetable ID error message
12 | */
13 | public TargetableIdException(final String message) {
14 | super(message);
15 | }
16 |
17 | }
18 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/webxml/WFieldErrorIndicatorRenderer.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.render.webxml;
2 |
3 | import com.github.bordertech.wcomponents.Renderer;
4 | import com.github.bordertech.wcomponents.validation.WFieldErrorIndicator;
5 |
6 | /**
7 | * {@link Renderer} for the {@link WFieldErrorIndicator} component.
8 | *
9 | * @author Jonathan Austin
10 | * @since 1.0.0
11 | */
12 | final class WFieldErrorIndicatorRenderer extends AbstractWFieldIndicatorRenderer {
13 | }
14 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/WHorizontalRuleExample.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.examples;
2 |
3 | import com.github.bordertech.wcomponents.WContainer;
4 | import com.github.bordertech.wcomponents.WHorizontalRule;
5 |
6 | /**
7 | *
8 | * @author Mark Reeves
9 | */
10 | public class WHorizontalRuleExample extends WContainer {
11 |
12 | /**
13 | * Create a WHorzontalRuleExample.
14 | */
15 | public WHorizontalRuleExample() {
16 | add(new WHorizontalRule());
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/ui/table.mjs:
--------------------------------------------------------------------------------
1 | /**
2 | * Meta-module used to group all table functionality for ease of inclusion. You could explicitly include those table
3 | * aspects you use in your application but they are not big. You do not use this module directly - it is only used as a
4 | * faux-layer.
5 | */
6 |
7 | import "wc/ui/table/action.mjs";
8 | import "wc/ui/table/pagination.mjs";
9 | import "wc/ui/rowAnalog.mjs";
10 | import "wc/ui/table/rowExpansion.mjs";
11 | import "wc/ui/table/sort.mjs";
12 | import "wc/ui/selectToggle.mjs";
13 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/schema/ui/v1/comment.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/respond/phone/_image-edit.scss:
--------------------------------------------------------------------------------
1 |
2 | @if $wc-use-respond == true {
3 | .wc_img_editor {
4 | .wc-row > div {
5 | text-align: center;
6 | }
7 |
8 | .wc_img_controls {
9 | @include flex($wrap: wrap, $align-content: space-between);
10 |
11 | > div,
12 | > fieldset {
13 | margin: $wc-gap-small;
14 |
15 | &:first-child {
16 | margin-left: 0;
17 | }
18 |
19 | &:last-child {
20 | margin-right: 0;
21 | }
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/WebModel.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | import java.io.Serializable;
4 |
5 | /**
6 | * The interface for objects that store user specific session state for web components. The WebComponent and WebModel
7 | * interfaces are not normally used directly, they just identify some common features between WComponents and
8 | * InterceptorComponents.
9 | *
10 | * @author Martin Shevchenko
11 | * @since 1.0.0
12 | */
13 | public interface WebModel extends Serializable {
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/IntegrityException.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * An IntegrityException is usually thrown to indicate a misconfiguration of a WComponent.
5 | *
6 | * @author Martin Shevchenko.
7 | * @since 1.0.0
8 | */
9 | public class IntegrityException extends IllegalStateException {
10 |
11 | /**
12 | * Creates an IntegrityException.
13 | *
14 | * @param message the message.
15 | */
16 | public IntegrityException(final String message) {
17 | super(message);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/intern/resources/myXsl.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/common/README.md:
--------------------------------------------------------------------------------
1 | # Common Sass source
2 |
3 | These files comprise Sass which generates CSS which is used by more than one type of WComponent. The
4 | partials are added from `../_common.scss`. The CSS in these files is _mostly_ structural so one
5 | probably doesn't want to override or exclude them.
6 |
7 | The files are broken up into common units so if one **knows** that the common CSS will never be
8 | used the import can be removed. This can be dangerous.
9 |
10 | Sass for individual WComponents is found in the source folder `../components/`.
11 |
--------------------------------------------------------------------------------
/wcomponents-xslt/src/main/xslt/wc.html.ie9minus.xsl:
--------------------------------------------------------------------------------
1 |
5 |
10 |
11 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/theme/wcomponents-xslt/xslt/all.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/BeanTableDataModel.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | import com.github.bordertech.wcomponents.WTable.BeanBoundTableModel;
4 |
5 | /**
6 | * The BeanTableDataModel provides a link between a bean (bound to a table), and the table model API.
7 | *
8 | * @author Yiannis Paschalidis
9 | * @since 1.0.0
10 | *
11 | * @deprecated Use {@link WTable} and {@link BeanBoundTableModel} instead.
12 | */
13 | @Deprecated
14 | public interface BeanTableDataModel extends TableDataModel, BeanProviderBound {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/wcomponents-core/src/test/resources/theme/wcomponents-xslt/xslt/all_debug.xsl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/FatalErrorPageFactoryImpl.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * Default implementation of {@link FatalErrorPageFactory}.
5 | *
6 | * @author Martin Shevchenko
7 | * @since 1.0.0
8 | */
9 | public class FatalErrorPageFactoryImpl implements FatalErrorPageFactory {
10 |
11 | /**
12 | * {@inheritDoc}
13 | */
14 | @Override
15 | public WComponent createErrorPage(final boolean developerFriendly, final Throwable throwable) {
16 | return new FatalErrorPage(developerFriendly, throwable);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/schema/ui/v1/version.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/java/com/github/bordertech/wcomponents/examples/validation/basic/BasicFieldsValidationExample.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.examples.validation.basic;
2 |
3 | import com.github.bordertech.wcomponents.examples.validation.ValidationContainer;
4 |
5 | /**
6 | * Basic field validation example.
7 | *
8 | * @author Martin Shevchenko
9 | */
10 | public class BasicFieldsValidationExample extends ValidationContainer {
11 |
12 | /**
13 | * Construct example.
14 | */
15 | public BasicFieldsValidationExample() {
16 | super(new BasicFields());
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/Diagnosable.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | import com.github.bordertech.wcomponents.validation.Diagnostic;
4 | import java.util.List;
5 |
6 | /**
7 | * Marks a component as being able to store diagnostic information.
8 | * @author Mark Reeves
9 | */
10 | public interface Diagnosable extends WComponent {
11 |
12 | /**
13 | * @param severity the diagnostic level we are interested in
14 | * @return the list of diagnostics for the component.
15 | */
16 | List getDiagnostics(final int severity);
17 | }
18 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/autocomplete/segment/AutocompleteSegment.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.autocomplete.segment;
2 |
3 | /**
4 | * Provides a common interface for the enumerations of segments of an {@code autocomplete} attribute which is useful when a component exists in
5 | * several auto-fill control groups.
6 | *
7 | * @author Mark Reeves
8 | * @since 1.5.3
9 | */
10 | public interface AutocompleteSegment {
11 |
12 | /**
13 | * @return the {@code autocomplete} attribute value for the enum member.
14 | */
15 | String getValue();
16 | }
17 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/components/_wtimeoutwarning.scss:
--------------------------------------------------------------------------------
1 | // #############################################################################
2 | // WTimeoutWarning is an alert dialog used to inform of impending doom.
3 | // #############################################################################
4 |
5 | // timeout warning container is generated and identified.
6 | // sass-lint:disable no-ids
7 | #wc_session_container {
8 | @include fit-content($fallback: 25rem);
9 | bottom: 0;
10 | max-width: 100%;
11 | position: fixed;
12 | right: 0;
13 | z-index: $wc-z-index-unloading-message;
14 | }
15 |
--------------------------------------------------------------------------------
/wcomponents-theme/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowJs": true,
4 | "checkJs": true,
5 | "noEmit": true,
6 | "baseUrl": ".",
7 | "lib": ["es2019", "dom"],
8 | "target": "ES2020",
9 | "module": "NodeNext",
10 | "moduleResolution": "NodeNext",
11 | "esModuleInterop": true,
12 | "types": ["node", "jasmine", "dom", "@testing-library/jasmine-dom", "jasmine-ajax"],
13 | "typeRoots": [
14 | "node_modules/@types"
15 | ],
16 | "allowSyntheticDefaultImports": true,
17 | "resolveJsonModule": true,
18 | "paths": {
19 | "wc/*": ["src/main/js/wc/*"]
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/render/nil/NullRenderContext.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.render.nil;
2 |
3 | import com.github.bordertech.wcomponents.RenderContext;
4 |
5 | /**
6 | * The NullRenderContext produces no output and is useful for testing.
7 | *
8 | * @author Yiannis Paschalidis
9 | * @since 1.0.0
10 | */
11 | public class NullRenderContext implements RenderContext {
12 |
13 | /**
14 | * {@inheritDoc}
15 | */
16 | @Override
17 | public String getRenderPackage() {
18 | return "com.github.bordertech.wcomponents.render.nil";
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/date/isLeapYear.mjs:
--------------------------------------------------------------------------------
1 | /**
2 | * Provides a means to determine if a particular year is a leap year.
3 | *
4 | * @function
5 | * @alias module:wc/date/isLeapYear
6 | * @param {Number} year The 4 digit year to check. To convert a 2 digit year into a 4 digit one see
7 | * {@link module:wc/date/expandYear}.
8 | * @returns {Boolean} true if year is a leap year.
9 | */
10 | function isLeapYear (year) {
11 | const yearDivisibleBy4 = (year % 4 === 0);
12 | return yearDivisibleBy4 && ((year % 100 !== 0) || (year % 400 === 0));
13 | }
14 | export default isLeapYear;
15 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/sass/respond/phone/_layout.scss:
--------------------------------------------------------------------------------
1 |
2 | @if $wc-use-respond == true {
3 | // Default responsive design for rows and columns
4 | // opt-in for ColumnLayout by setting class "wc-respond" on its
5 | // containing WPanel.
6 | // opt in for WRow/WColumn by setting class "wc-respond" the WRow.
7 | .wc-row.wc-respond {
8 | display: block;
9 |
10 | > .wc-column {
11 | display: block;
12 | padding-left: 0;
13 | padding-right: 0;
14 | width: 100%;
15 |
16 | + .wc-column {
17 | margin-top: $wc-gap-small;
18 | }
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/dom/getEventOffset.mjs:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * Determine the left and top coordinates of a mouse event (click, mousedown etc.).
4 | *
5 | * @function
6 | * @alias module:wc/dom/getEventOffset
7 | * @param {MouseEvent} $event The event.
8 | * @returns {{ X: number, Y: number }} An object encapsulating the offset.
9 | */
10 | function getOffset({ pageX, pageY, view, clientX, clientY }) {
11 | return {
12 | X: pageX || (clientX + view.document.documentElement.scrollLeft),
13 | Y: pageY || (clientY + view.document.documentElement.scrollTop)
14 | };
15 | }
16 | export default getOffset;
17 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/main/js/wc/ui/getForm.mjs:
--------------------------------------------------------------------------------
1 | /**
2 | * Finds the form for this element.
3 | * @param {Element|HTMLInputElement} [el] Will find the form that contains this element.
4 | * If null, the first form in the DOM.
5 | * @param {boolean} [forceAncestor] Weird arg - if true, el is mandatory.
6 | * @return {HTMLFormElement|null}
7 | */
8 | export default function(el, forceAncestor) {
9 | if (!el) {
10 | if (!forceAncestor) {
11 | return document.querySelector("form");
12 | }
13 | return null;
14 | }
15 | if (el["form"]) {
16 | return el["form"];
17 | }
18 | return el.closest("form");
19 | }
20 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/util/ComparableComparator.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents.util;
2 |
3 | import java.io.Serializable;
4 | import java.util.Comparator;
5 |
6 | /**
7 | * A simple comparator which compares comparables.
8 | *
9 | * @author Yiannis Paschalidis
10 | */
11 | public final class ComparableComparator implements Comparator>, Serializable {
12 |
13 | /**
14 | * {@inheritDoc}
15 | */
16 | @Override
17 | public int compare(final Comparable> obj1, final Comparable> obj2) {
18 | return Util.compareAllowNull(obj1, obj2);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/AjaxTrigger.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | *
5 | * This interface is used to mark components which are able to trigger an AJAX request.
6 | *
7 | *
8 | * NOTE: Components must not implement this interface unless they already support client-side AJAX triggering.
9 | * Implementing this interface does
10 | * NOT automatically enable a component to be used an AJAX trigger.
11 | *
12 | * @author Yiannis Paschalidis
13 | * @since 1.0.0
14 | */
15 | public interface AjaxTrigger extends WComponent {
16 | }
17 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/resources/schema/ui/v1/session.xsd:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/wcomponents-examples/src/main/resources/com/github/bordertech/wcomponents/examples/initImageEditExample.hbs:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/Audio.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | * Represents an audio clip. Implementations can choose whether to explicitly store the byte[] or fetch it from some
5 | * sort of streaming resource as needed to service the {@link #getBytes} and {@link #getStream} methods as needed.
6 | *
7 | * @author Yiannis Paschalidis
8 | * @since 1.0.0
9 | */
10 | public interface Audio extends ContentStreamAccess {
11 |
12 | /**
13 | * @return the length of the video clip, in seconds, or <= 0 if unknown (e.g. streaming).
14 | */
15 | int getDuration();
16 | }
17 |
--------------------------------------------------------------------------------
/wcomponents-theme/src/test/spec/wc.date.isLeapYear.test.mjs:
--------------------------------------------------------------------------------
1 | import isLeapYear from "wc/date/isLeapYear.mjs";
2 |
3 | describe("wc/date/isLeapYear", function() {
4 | it("returns true for valid leap years", function () {
5 | let leapYears = [1904, 1988, 2000, 2024, 2160, 2596, 3996];
6 | for (let i = 0; i < leapYears.length; i++)
7 | expect(isLeapYear(leapYears[i])).toBeTrue();
8 | });
9 |
10 | it("returns false for non-leap years", function () {
11 | let nonLeapYears = [1900, 1963, 2002, 2026, 2543, 2634, 3000];
12 | for (let i = 0; i < nonLeapYears.length; i++)
13 | expect(isLeapYear(nonLeapYears[i])).toBeFalse();
14 | });
15 | });
16 |
--------------------------------------------------------------------------------
/wcomponents-core/src/main/java/com/github/bordertech/wcomponents/AjaxTarget.java:
--------------------------------------------------------------------------------
1 | package com.github.bordertech.wcomponents;
2 |
3 | /**
4 | *
5 | * This interface is used to mark components which are to be individually targeted for replacement with AJAX.
6 | *
7 | *
8 | * NOTE: Components must not implement this interface unless they already support client-side AJAX targeting.
9 | * Implementing this interface does
10 | * NOT automatically enable a component to be used an AJAX target.
5 | * This interface is used to mark components which can be targeted by a Subordinate control.
6 | *
7 | *
8 | * NOTE: Components must not implement this interface unless they already support client-side Subordinate
9 | * targeting. Implementing this interface does
10 | * NOT automatically enable a component to be used an Subordinate target.
5 | * This interface is used to mark components which are able to trigger a client-side Subordinate.
6 | *
7 | *
8 | * NOTE: Components must not implement this interface unless they already support triggering client-side
9 | * Subordinates. Implementing this interface does
10 | * NOT automatically enable a component to be used an Subordinate trigger.