@mediafly/js-ui 50.5.0 → 51.1.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.node-version +1 -1
- package/.semaphore/promotion-deploy-docs.yml +35 -0
- package/.semaphore/scripts/notify_jira.sh +115 -0
- package/.semaphore/semaphore.yml +91 -0
- package/CHANGELOG.md +25 -346
- package/README.md +7 -4
- package/archive/old-changelog.md +347 -0
- package/lib/checkbox/checkbox.html +2 -0
- package/lib/color-input/spectrum-color-picker.js +1 -2
- package/lib/color-input/spectrum-color-picker.js.map +1 -1
- package/lib/constants/constants.js +0 -1
- package/lib/constants/constants.js.map +1 -1
- package/lib/date-input/date-input.js +2 -3
- package/lib/date-input/date-input.js.map +1 -1
- package/lib/date-input/validate-date.js +1 -2
- package/lib/date-input/validate-date.js.map +1 -1
- package/lib/date-time-zone-picker/date-time-zone-picker.js +1 -2
- package/lib/date-time-zone-picker/date-time-zone-picker.js.map +1 -1
- package/lib/date-time-zone-picker/datepicker.html +17 -18
- package/lib/date-time-zone-picker/timepicker.html +19 -9
- package/lib/first-time-motivator/first-time-motivator.js +3 -4
- package/lib/first-time-motivator/first-time-motivator.js.map +1 -1
- package/lib/fonts.css +1 -1
- package/lib/gesture-handler/gesture-handler.js +14 -6
- package/lib/gesture-handler/gesture-handler.js.map +1 -1
- package/lib/hover-tooltip/hover-tooltip.js +7 -4
- package/lib/hover-tooltip/hover-tooltip.js.map +1 -1
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -5
- package/lib/index.js.map +1 -1
- package/lib/jsui.module.css +46 -49
- package/lib/loading-indicator/loading-indicator.component.html +6 -6
- package/lib/metadata-form/metadata-form.component.d.ts +1 -0
- package/lib/metadata-form/metadata-form.component.js +32 -0
- package/lib/metadata-form/metadata-form.component.js.map +1 -1
- package/lib/metadata-form/metadata-form.html +1 -1
- package/lib/rich-text/rich-text.component.d.ts +3 -2
- package/lib/rich-text/rich-text.component.js +8 -0
- package/lib/rich-text/rich-text.component.js.map +1 -1
- package/lib/styles.css +176 -369
- package/lib/time-input/time-input.html +1 -1
- package/lib/time-input/time-input.js +2 -3
- package/lib/time-input/time-input.js.map +1 -1
- package/lib/time-input/validate-time.js +1 -2
- package/lib/time-input/validate-time.js.map +1 -1
- package/lib/tree/tree.js +3 -4
- package/lib/tree/tree.js.map +1 -1
- package/lib/tsconfig.deploy.tsbuildinfo +26 -155
- package/package.json +1 -2
- package/src/components/checkbox/checkbox.html +2 -0
- package/src/components/color-input/spectrum-color-picker.js +2 -3
- package/src/components/constants/constants.js +0 -1
- package/src/components/date-input/date-input.js +2 -3
- package/src/components/date-input/validate-date.js +1 -2
- package/src/components/date-time-zone-picker/date-time-zone-picker.less +20 -19
- package/src/components/date-time-zone-picker/date-time-zone-picker.ts +10 -7
- package/src/components/date-time-zone-picker/datepicker.html +17 -18
- package/src/components/date-time-zone-picker/timepicker.html +19 -9
- package/src/components/feedback/feedback.less +1 -1
- package/src/components/first-time-motivator/first-time-motivator.ts +4 -5
- package/src/components/font-selector/font-selector.less +2 -1
- package/src/components/gesture-handler/{gesture-handler.js → gesture-handler.ts} +18 -6
- package/src/components/hover-tooltip/hover-tooltip.ts +7 -4
- package/src/components/index.less +0 -1
- package/src/components/index.ts +0 -5
- package/src/components/legacy/mediafly-bootstrap.css +0 -5
- package/src/components/less/fonts/mfly-webfont.less +1 -1
- package/src/components/less/objects/buttons.less +12 -63
- package/src/components/less/objects/buttons.module.css +8 -2
- package/src/components/less/objects/containers.less +2 -2
- package/src/components/less/objects/forms.less +31 -245
- package/src/components/less/objects/labels.less +5 -1
- package/src/components/less/objects/radios-checkboxes.less +2 -1
- package/src/components/less/utilities/reset.less +1 -1
- package/src/components/less/utilities/utilities.less +2 -0
- package/src/components/less/variables/colors.less +39 -44
- package/src/components/less/variables/effects.less +3 -7
- package/src/components/less/variables.module.css +37 -46
- package/src/components/less/vendor/pikaday.css +12 -8
- package/src/components/loading-indicator/loading-indicator.component.html +6 -6
- package/src/components/metadata-form/metadata-form.component.ts +39 -0
- package/src/components/metadata-form/metadata-form.html +1 -1
- package/src/components/progress-bar/progress-bar.less +2 -1
- package/src/components/rich-text/rich-text.component.ts +8 -2
- package/src/components/time-input/time-input.html +1 -1
- package/src/components/time-input/time-input.js +3 -3
- package/src/components/time-input/validate-time.js +1 -2
- package/src/components/tree/tree.less +16 -8
- package/src/components/tree/tree.ts +5 -6
- package/src/fonts/mfly-webfont.woff +0 -0
- package/src/index.html +3 -2
- package/src/index.spec.js +0 -6
- package/Dockerfile +0 -42
- package/Jenkinsfile +0 -138
- package/lib/date-time-utilities/date-time-utilities.d.ts +0 -1
- package/lib/date-time-utilities/date-time-utilities.js +0 -79
- package/lib/date-time-utilities/date-time-utilities.js.map +0 -1
- package/lib/date-time-utilities/index.d.ts +0 -1
- package/lib/date-time-utilities/index.js +0 -4
- package/lib/date-time-utilities/index.js.map +0 -1
- package/lib/disable-context-menu/disable-context-menu.d.ts +0 -1
- package/lib/disable-context-menu/disable-context-menu.js +0 -23
- package/lib/disable-context-menu/disable-context-menu.js.map +0 -1
- package/lib/disable-context-menu/index.d.ts +0 -1
- package/lib/disable-context-menu/index.js +0 -4
- package/lib/disable-context-menu/index.js.map +0 -1
- package/lib/show-image-loader/index.d.ts +0 -1
- package/lib/show-image-loader/index.js +0 -4
- package/lib/show-image-loader/index.js.map +0 -1
- package/lib/show-image-loader/show-image-loader.d.ts +0 -1
- package/lib/show-image-loader/show-image-loader.js +0 -23
- package/lib/show-image-loader/show-image-loader.js.map +0 -1
- package/lib/slides/index.d.ts +0 -1
- package/lib/slides/index.js +0 -4
- package/lib/slides/index.js.map +0 -1
- package/lib/slides/slides.d.ts +0 -1
- package/lib/slides/slides.html +0 -17
- package/lib/slides/slides.js +0 -96
- package/lib/slides/slides.js.map +0 -1
- package/lib/time-conversion/index.d.ts +0 -1
- package/lib/time-conversion/index.js +0 -4
- package/lib/time-conversion/index.js.map +0 -1
- package/lib/time-conversion/time-conversion-factory.d.ts +0 -1
- package/lib/time-conversion/time-conversion-factory.js +0 -91
- package/lib/time-conversion/time-conversion-factory.js.map +0 -1
- package/src/components/date-time-utilities/date-time-utilities.js +0 -94
- package/src/components/date-time-utilities/index.ts +0 -1
- package/src/components/disable-context-menu/disable-context-menu.ts +0 -21
- package/src/components/disable-context-menu/index.ts +0 -1
- package/src/components/show-image-loader/index.ts +0 -1
- package/src/components/show-image-loader/show-image-loader.js +0 -22
- package/src/components/slides/index.ts +0 -1
- package/src/components/slides/slides.html +0 -17
- package/src/components/slides/slides.less +0 -155
- package/src/components/slides/slides.ts +0 -101
- package/src/components/time-conversion/index.ts +0 -1
- package/src/components/time-conversion/time-conversion-factory.ts +0 -114
- package/tsconfig.tsbuildinfo +0 -7221
package/.node-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
20.
|
|
1
|
+
20.17.0
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
version: v1.0
|
|
2
|
+
name: Deploy Docs
|
|
3
|
+
|
|
4
|
+
agent:
|
|
5
|
+
machine:
|
|
6
|
+
type: e2-standard-2
|
|
7
|
+
os_image: ubuntu2004
|
|
8
|
+
|
|
9
|
+
blocks:
|
|
10
|
+
- name: Deploy docs site
|
|
11
|
+
task:
|
|
12
|
+
prologue:
|
|
13
|
+
commands:
|
|
14
|
+
- checkout
|
|
15
|
+
secrets:
|
|
16
|
+
- name: engagement-integration
|
|
17
|
+
jobs:
|
|
18
|
+
- name: Deploy to AWS
|
|
19
|
+
commands:
|
|
20
|
+
- artifact pull workflow dist
|
|
21
|
+
- aws s3 sync ./dist s3://mediafly-js-ui/ --acl public-read --delete
|
|
22
|
+
|
|
23
|
+
- name: 'Notify Deployment to Jira'
|
|
24
|
+
run:
|
|
25
|
+
when: "branch = 'main'"
|
|
26
|
+
task:
|
|
27
|
+
prologue:
|
|
28
|
+
commands:
|
|
29
|
+
- checkout
|
|
30
|
+
secrets:
|
|
31
|
+
- name: jira-automation
|
|
32
|
+
jobs:
|
|
33
|
+
- name: Notify Jira
|
|
34
|
+
commands:
|
|
35
|
+
- bash .semaphore/scripts/notify_jira.sh production $SEMAPHORE_GIT_REPO_NAME
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# This script sends Deployment API information from SemaphoreCI to Jira by extracting all Jira issue keys
|
|
4
|
+
# from the Semaphore commit range (since last build), and sending them to Jira.
|
|
5
|
+
#
|
|
6
|
+
# It assumes GNU based bash, version 5.0.17(1)-release or later is installed running on ubuntu.
|
|
7
|
+
# Specifically, `grep` usage is based on a GNU based version:
|
|
8
|
+
# https://www.gnu.org/software/grep/manual/grep.pdf
|
|
9
|
+
#
|
|
10
|
+
# Information on the Jira Deployment API can be found at:
|
|
11
|
+
# https://developer.atlassian.com/cloud/jira/software/rest/api-group-deployments/#api-rest-deployments-0-1-bulk-post
|
|
12
|
+
|
|
13
|
+
echo
|
|
14
|
+
DEPLOYMENT_ENVIRONMENT=$1
|
|
15
|
+
ALLOWED_ENVIRONMENTS=("unmapped" "development" "testing" "staging" "production")
|
|
16
|
+
if [ -z "$DEPLOYMENT_ENVIRONMENT" ] || [[ ! " ${ALLOWED_ENVIRONMENTS[@]} " =~ " ${DEPLOYMENT_ENVIRONMENT} " ]]; then
|
|
17
|
+
echo "Error: DEPLOYMENT_ENVIRONMENT is invalid. Value was set to ${DEPLOYMENT_ENVIRONMENT}."
|
|
18
|
+
exit 1
|
|
19
|
+
fi
|
|
20
|
+
DEPLOYMENT_ID=$2
|
|
21
|
+
if [ -z "$DEPLOYMENT_ID" ]; then
|
|
22
|
+
echo "Error: DEPLOYMENT_ID is empty. It needs to have a value."
|
|
23
|
+
exit 1
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
echo "DEPLOYMENT_ENVIRONMENT=${DEPLOYMENT_ENVIRONMENT}"
|
|
27
|
+
echo "DEPLOYMENT_ID=${DEPLOYMENT_ID}"
|
|
28
|
+
echo "GH_TOKEN=$(if [[ -n $GH_TOKEN ]]; then echo -n 'EXISTS'; else echo -n 'DOES_NOT_EXIST'; fi)"
|
|
29
|
+
echo "SEMAPHORE_GIT_REPO_SLUG=${SEMAPHORE_GIT_REPO_SLUG}"
|
|
30
|
+
echo "SEMAPHORE_WORKFLOW_ID=${SEMAPHORE_WORKFLOW_ID}"
|
|
31
|
+
echo "SEMAPHORE_WORKFLOW_NUMBER=${SEMAPHORE_WORKFLOW_NUMBER}"
|
|
32
|
+
echo "SEMAPHORE_PIPELINE_ID=${SEMAPHORE_PIPELINE_ID}"
|
|
33
|
+
echo "SEMAPHORE_GIT_COMMIT_RANGE=${SEMAPHORE_GIT_COMMIT_RANGE}"
|
|
34
|
+
echo "SEMAPHORE_ORGANIZATION_URL=${SEMAPHORE_ORGANIZATION_URL}"
|
|
35
|
+
echo "SEMAPHORE_PROJECT_NAME=${SEMAPHORE_PROJECT_NAME}"
|
|
36
|
+
|
|
37
|
+
jira_ticket_all_matches_as_lines=$(git log "$SEMAPHORE_GIT_COMMIT_RANGE" | grep -Po '\b[A-Za-z]+-\d+\b' | tr '[:lower:]' '[:upper:]')
|
|
38
|
+
echo "jira_ticket_all_matches_as_lines=$jira_ticket_all_matches_as_lines"
|
|
39
|
+
|
|
40
|
+
# Remove duplicate issue key ids & put into a space delimited list of keys
|
|
41
|
+
JIRA_TICKETS=$(echo $(printf %s "$jira_ticket_all_matches_as_lines" | sort -u))
|
|
42
|
+
echo "JIRA_TICKETS=${JIRA_TICKETS}"
|
|
43
|
+
|
|
44
|
+
if [[ -n "${JIRA_TICKETS}" ]]; then
|
|
45
|
+
echo "Authenticating with Jira to retrieve access token..."
|
|
46
|
+
authTokenResponse=$(curl -s -L --request POST https://api.atlassian.com/oauth/token \
|
|
47
|
+
-H "Content-Type: application/json" \
|
|
48
|
+
--data-raw "{
|
|
49
|
+
\"audience\": \"api.atlassian.com\",
|
|
50
|
+
\"grant_type\": \"client_credentials\",
|
|
51
|
+
\"client_id\": \"${JIRA_CLIENT_ID}\",
|
|
52
|
+
\"client_secret\": \"${JIRA_CLIENT_SECRET}\"
|
|
53
|
+
}")
|
|
54
|
+
|
|
55
|
+
accessToken=$(echo $authTokenResponse | jq -r '.access_token')
|
|
56
|
+
if [[ "$accessToken" == "null" ]]; then
|
|
57
|
+
echo "Failed to retrieve access token from jira: ${authTokenResponse}"
|
|
58
|
+
echo "Exiting"
|
|
59
|
+
exit 1
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
echo "Jira authentication token retrieved."
|
|
63
|
+
|
|
64
|
+
echo "Packaging deployment information into api request..."
|
|
65
|
+
msSinceEpoch=$(date +%s | cut -b1-13)
|
|
66
|
+
lastUpdated=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
|
67
|
+
semaphoreWorkflowUrl="${SEMAPHORE_ORGANIZATION_URL}/workflows/${SEMAPHORE_WORKFLOW_ID}"
|
|
68
|
+
semaphorePipelineUrl="${semaphoreWorkflowUrl}?pipeline_id=${SEMAPHORE_PIPELINE_ID}"
|
|
69
|
+
|
|
70
|
+
JIRA_TICKETS_AS_COMMA_DELIMITED_LIST=$(echo $JIRA_TICKETS | sed 's| |", "|g;s|.*|"&"|')
|
|
71
|
+
deploymentData="{
|
|
72
|
+
\"deployments\": [
|
|
73
|
+
{
|
|
74
|
+
\"deploymentSequenceNumber\": \"${SEMAPHORE_WORKFLOW_NUMBER}\",
|
|
75
|
+
\"updateSequenceNumber\": \"${msSinceEpoch}\",
|
|
76
|
+
\"associations\": [ {
|
|
77
|
+
\"associationType\": \"issueIdOrKeys\",
|
|
78
|
+
\"values\": [${JIRA_TICKETS_AS_COMMA_DELIMITED_LIST}]
|
|
79
|
+
} ],
|
|
80
|
+
\"displayName\": \"${SEMAPHORE_PROJECT_NAME}-${SEMAPHORE_WORKFLOW_NUMBER}\",
|
|
81
|
+
\"url\": \"${semaphorePipelineUrl}\",
|
|
82
|
+
\"description\": \"Deploying ${SEMAPHORE_PROJECT_NAME}-${SEMAPHORE_WORKFLOW_NUMBER}\",
|
|
83
|
+
\"lastUpdated\": \"${lastUpdated}\",
|
|
84
|
+
\"state\": \"successful\",
|
|
85
|
+
\"pipeline\": {
|
|
86
|
+
\"id\": \"${SEMAPHORE_PROJECT_NAME}-deployment-to-${DEPLOYMENT_ENVIRONMENT}\",
|
|
87
|
+
\"displayName\": \"${SEMAPHORE_PROJECT_NAME}-deployment-to-${DEPLOYMENT_ENVIRONMENT}\",
|
|
88
|
+
\"url\": \"${semaphoreWorkflowUrl}\"
|
|
89
|
+
},
|
|
90
|
+
\"environment\": {
|
|
91
|
+
\"id\": \"${DEPLOYMENT_ID}\",
|
|
92
|
+
\"displayName\": \"${DEPLOYMENT_ID}\",
|
|
93
|
+
\"type\": \"${DEPLOYMENT_ENVIRONMENT}\"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}"
|
|
98
|
+
|
|
99
|
+
cloudId="02a6be27-7c36-424d-b25c-2c2915398b66" #https://mediafly.atlassian.net/_edge/tenant_info
|
|
100
|
+
deploymentsUrl="https://api.atlassian.com/jira/deployments/0.1/cloud/${cloudId}/bulk"
|
|
101
|
+
|
|
102
|
+
echo "${deploymentsUrl}"
|
|
103
|
+
echo "${deploymentData}"
|
|
104
|
+
|
|
105
|
+
echo "Sending deployment information to Jira:"
|
|
106
|
+
deployResponse=$(curl -s -L --request POST $deploymentsUrl \
|
|
107
|
+
-H "Authorization: Bearer ${accessToken}" \
|
|
108
|
+
-H "Content-Type: application/json" \
|
|
109
|
+
--data-raw "${deploymentData}")
|
|
110
|
+
|
|
111
|
+
echo "Jira Deployments API response: ${deployResponse}"
|
|
112
|
+
else
|
|
113
|
+
echo "No Jira tickets found for this changeset: JIRA_TICKETS=${JIRA_TICKETS}"
|
|
114
|
+
fi
|
|
115
|
+
echo
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
version: v1.0
|
|
2
|
+
name: JSUI
|
|
3
|
+
|
|
4
|
+
agent:
|
|
5
|
+
machine:
|
|
6
|
+
type: f1-standard-2
|
|
7
|
+
os_image: ubuntu2204
|
|
8
|
+
|
|
9
|
+
auto_cancel:
|
|
10
|
+
running:
|
|
11
|
+
when: "branch != 'main'"
|
|
12
|
+
|
|
13
|
+
fail_fast:
|
|
14
|
+
cancel:
|
|
15
|
+
when: "branch != 'main'"
|
|
16
|
+
|
|
17
|
+
global_job_config:
|
|
18
|
+
prologue:
|
|
19
|
+
commands:
|
|
20
|
+
- sem-version node 20.17.0
|
|
21
|
+
- checkout
|
|
22
|
+
- npm config set "@fortawesome:registry" https://npm.fontawesome.com/
|
|
23
|
+
- npm config set "//registry.npmjs.org/:_authToken" $MEDIAFLY_NPM_AUTH_TOKEN
|
|
24
|
+
- npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN
|
|
25
|
+
secrets:
|
|
26
|
+
- name: engagement-fontawesome-token
|
|
27
|
+
- name: engagement-npm
|
|
28
|
+
|
|
29
|
+
blocks:
|
|
30
|
+
- name: NPM Dependencies
|
|
31
|
+
dependencies: []
|
|
32
|
+
task:
|
|
33
|
+
jobs:
|
|
34
|
+
- name: npm ci
|
|
35
|
+
commands:
|
|
36
|
+
- cache restore node-modules-$(checksum package-lock.json)
|
|
37
|
+
- cache restore cypress-$(grep -oP '"cypress":\s*"\K[^"]+' package.json | head -1)
|
|
38
|
+
- '(([[ ! -d node_modules || ! -d ~/.cache/Cypress ]]) && npm ci) || echo "node_modules and ~/.cache/Cypress folders already exist"'
|
|
39
|
+
- cache store node-modules-$(checksum package-lock.json) node_modules
|
|
40
|
+
- cache store cypress-$(grep -oP '"cypress":\s*"\K[^"]+' package.json | head -1) ~/.cache/Cypress
|
|
41
|
+
|
|
42
|
+
- name: Unit Tests
|
|
43
|
+
dependencies: ['NPM Dependencies']
|
|
44
|
+
task:
|
|
45
|
+
prologue:
|
|
46
|
+
commands:
|
|
47
|
+
- cache restore node-modules-$(checksum package-lock.json)
|
|
48
|
+
jobs:
|
|
49
|
+
- name: Karma
|
|
50
|
+
commands:
|
|
51
|
+
- npm test
|
|
52
|
+
- '[[ -f xmloutput/karma-results.xml ]] && test-results publish xmloutput/karma-results.xml'
|
|
53
|
+
|
|
54
|
+
- name: E2E Tests
|
|
55
|
+
dependencies: ['NPM Dependencies']
|
|
56
|
+
task:
|
|
57
|
+
prologue:
|
|
58
|
+
commands:
|
|
59
|
+
- cache restore node-modules-$(checksum package-lock.json)
|
|
60
|
+
- cache restore cypress-$(grep -oP '"cypress":\s*"\K[^"]+' package.json | head -1)
|
|
61
|
+
jobs:
|
|
62
|
+
- name: Cypress
|
|
63
|
+
commands:
|
|
64
|
+
- npm run cypress:ci
|
|
65
|
+
epilogue:
|
|
66
|
+
always:
|
|
67
|
+
commands:
|
|
68
|
+
- '[[ -d cypress/xmloutput ]] && test-results publish cypress/xmloutput'
|
|
69
|
+
on_fail:
|
|
70
|
+
commands:
|
|
71
|
+
- artifact push job cypress/screenshots
|
|
72
|
+
- artifact push job cypress/logs
|
|
73
|
+
|
|
74
|
+
- name: Build Docs Site
|
|
75
|
+
dependencies: ['NPM Dependencies']
|
|
76
|
+
task:
|
|
77
|
+
prologue:
|
|
78
|
+
commands:
|
|
79
|
+
- cache restore node-modules-$(checksum package-lock.json)
|
|
80
|
+
jobs:
|
|
81
|
+
- name: npm build
|
|
82
|
+
commands:
|
|
83
|
+
- npm run build
|
|
84
|
+
- artifact push workflow dist
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
promotions:
|
|
88
|
+
- name: Deploy Docs Site
|
|
89
|
+
auto_promote:
|
|
90
|
+
when: "result = 'passed' and branch = 'main'"
|
|
91
|
+
pipeline_file: promotion-deploy-docs.yml
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
## @mediafly/js-ui changelog
|
|
2
2
|
|
|
3
|
+
**51.0.0**
|
|
4
|
+
|
|
5
|
+
* **Breaking:** The following components are removed:
|
|
6
|
+
* `disableContextMenu`
|
|
7
|
+
* `slides` / `show-image-loader`
|
|
8
|
+
* `dateTimeUtilities`
|
|
9
|
+
* `timeConversionFactory`
|
|
10
|
+
* `is_js` constant DI
|
|
11
|
+
* **Breaking:** The following CSS and LESS variables are removed, in favor of semantic or "primary"/"secondary" branding colors:
|
|
12
|
+
* `color-mfly-blue`
|
|
13
|
+
* `color-mfly-blue-dark`
|
|
14
|
+
* `color-mfly-blue-light`
|
|
15
|
+
* `color-mfly-purple`
|
|
16
|
+
* `color-mfly-red`
|
|
17
|
+
* `color-mfly-green`
|
|
18
|
+
* **Breaking:** `color-dirty-control` is no longer exposed, consumers shouldn't rely on this implementation detail
|
|
19
|
+
* **Breaking:** All other color variables are updated to match the new design system palette
|
|
20
|
+
* **Breaking:** Remove partial box-shadow variables like `--input-invalid-focus-box-shadow-horz2`
|
|
21
|
+
* Other changes:
|
|
22
|
+
* Update Microsoft Office type icons
|
|
23
|
+
* Fix vertical alignment of the checkbox component
|
|
24
|
+
* Refactor date-time-zone picker HTML to not use input-addons anymore
|
|
25
|
+
* a11y: Switch loading-indicator dots from label to div
|
|
26
|
+
* a11y: Fix metadata-form array & object labels' `for` attributes
|
|
27
|
+
|
|
3
28
|
**50.5.0**
|
|
4
29
|
|
|
5
30
|
* Support "Are you sure?" confirmation when dismissing full-page modals
|
|
@@ -429,349 +454,3 @@
|
|
|
429
454
|
38.1.0
|
|
430
455
|
|
|
431
456
|
* Add a new autocomplete component.
|
|
432
|
-
|
|
433
|
-
**38.0.0**
|
|
434
|
-
|
|
435
|
-
* **Breaking:** Updating the font stack and colors for JSUI and all consuming applications.
|
|
436
|
-
|
|
437
|
-
37.2.7
|
|
438
|
-
|
|
439
|
-
* Change default error message to be friendlier and localized
|
|
440
|
-
|
|
441
|
-
37.2.6
|
|
442
|
-
|
|
443
|
-
* Modal: throw if modal doesn't compile when opened via service
|
|
444
|
-
* Modal: improve cleanup process and make sure we don't leave stray classes behind
|
|
445
|
-
|
|
446
|
-
37.2.5
|
|
447
|
-
|
|
448
|
-
* Actionable Empty state bullets optional
|
|
449
|
-
|
|
450
|
-
37.2.3
|
|
451
|
-
|
|
452
|
-
* Add icon kinds for sheets, slides and docs to be used for Google items
|
|
453
|
-
|
|
454
|
-
37.2.2
|
|
455
|
-
|
|
456
|
-
* Improve click handling/element wrappers for form controls and metadata-form, with
|
|
457
|
-
an aim of fixing focus on metadata-forms where ng-aria is in effect.
|
|
458
|
-
|
|
459
|
-
37.2.0
|
|
460
|
-
|
|
461
|
-
* Bump FontAwesome to 5.13.0
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
37.1.0
|
|
465
|
-
|
|
466
|
-
* Add inline-text-input component
|
|
467
|
-
|
|
468
|
-
37.0.4
|
|
469
|
-
|
|
470
|
-
* Add `padding: 0` to `.o-link` class
|
|
471
|
-
|
|
472
|
-
37.0.3
|
|
473
|
-
|
|
474
|
-
* Change 'Diagnostics' link in footer to read 'Status Check'
|
|
475
|
-
|
|
476
|
-
37.0.2
|
|
477
|
-
|
|
478
|
-
* Display Actionable empty state button if text is supplied
|
|
479
|
-
|
|
480
|
-
37.0.1
|
|
481
|
-
|
|
482
|
-
* Merging hotfix branch 36.3.14
|
|
483
|
-
* That fixes a bug created with the 36.3.8 branch, where the required text validation is missing.
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
**37.0.0**
|
|
487
|
-
|
|
488
|
-
* **Breaking:** Remove a bunch of mediafly-bootstrap.css, most notably styles on the `a` tag
|
|
489
|
-
* Fix modal top positioning (change from % to vh units)
|
|
490
|
-
|
|
491
|
-
36.3.12
|
|
492
|
-
|
|
493
|
-
* Update feedback component for safari
|
|
494
|
-
|
|
495
|
-
36.3.11
|
|
496
|
-
|
|
497
|
-
* Update form icon
|
|
498
|
-
|
|
499
|
-
36.3.10
|
|
500
|
-
|
|
501
|
-
* Add new lesson icon
|
|
502
|
-
|
|
503
|
-
36.3.9
|
|
504
|
-
|
|
505
|
-
* Add link to rich text toolbuilder
|
|
506
|
-
|
|
507
|
-
36.3.8
|
|
508
|
-
|
|
509
|
-
* Utilize ngDirty to hold required validation errors until form is dirty.
|
|
510
|
-
|
|
511
|
-
36.3.7
|
|
512
|
-
|
|
513
|
-
* Add manual background color for modal close button (browser consistency)
|
|
514
|
-
|
|
515
|
-
36.3.6
|
|
516
|
-
|
|
517
|
-
* Update themeService to assign default color values when undefined
|
|
518
|
-
|
|
519
|
-
36.3.5
|
|
520
|
-
|
|
521
|
-
* Fix feedback message wrapping on small viewports.
|
|
522
|
-
|
|
523
|
-
36.3.4
|
|
524
|
-
|
|
525
|
-
* Fix $log injection in logErrorHandler
|
|
526
|
-
|
|
527
|
-
36.3.3
|
|
528
|
-
|
|
529
|
-
* Add childlist to the observer
|
|
530
|
-
* Add role attribute to loading div
|
|
531
|
-
|
|
532
|
-
36.3.2
|
|
533
|
-
|
|
534
|
-
* Accessibility: Add observer for Tree Picker loading in modals for focus trap.
|
|
535
|
-
|
|
536
|
-
36.3.2
|
|
537
|
-
|
|
538
|
-
* Add keyboard and VO functionality to Tree Picker.
|
|
539
|
-
|
|
540
|
-
36.3.1
|
|
541
|
-
|
|
542
|
-
* Add mfly-webfont to standalone css bundle
|
|
543
|
-
|
|
544
|
-
36.2.0
|
|
545
|
-
|
|
546
|
-
* Removing light grey background color in airship, fixing focus-trap in disabled button situations, & improving focus UI
|
|
547
|
-
|
|
548
|
-
36.1.3
|
|
549
|
-
|
|
550
|
-
* handle either data.message or data.Message for error message because Airship uses Message
|
|
551
|
-
|
|
552
|
-
36.1.2
|
|
553
|
-
|
|
554
|
-
* Accessibility Modal
|
|
555
|
-
* Adding modal focus trap improvement for disabled buttons
|
|
556
|
-
|
|
557
|
-
36.1.1
|
|
558
|
-
|
|
559
|
-
* Release failed, releasing again to ensure it's out.
|
|
560
|
-
|
|
561
|
-
36.1.0
|
|
562
|
-
|
|
563
|
-
* Accessibility * css removing grey background color on body. Repositories must declare a body color independently or inherit white.
|
|
564
|
-
|
|
565
|
-
36.0.4
|
|
566
|
-
|
|
567
|
-
* Accessibility Modal & Focus Changes. Setting focus trap when modal is open.
|
|
568
|
-
|
|
569
|
-
36.0.3
|
|
570
|
-
|
|
571
|
-
* Bugfix for password input types in the metadata form
|
|
572
|
-
|
|
573
|
-
36.0.2
|
|
574
|
-
|
|
575
|
-
* Update .o-link to style buttons too.
|
|
576
|
-
|
|
577
|
-
**36.0.0**
|
|
578
|
-
|
|
579
|
-
* **Breaking:** Update auto-focus.service to set focus on a element after
|
|
580
|
-
page has been rendered or an element is currently not in view.
|
|
581
|
-
|
|
582
|
-
35.3.8
|
|
583
|
-
|
|
584
|
-
* in feedbackErrorHandler, actually inject all dependencies (and remove unused lodash)
|
|
585
|
-
|
|
586
|
-
35.3.7
|
|
587
|
-
|
|
588
|
-
* actually Inject the Injectable errorResponseService into feedbackErrorHandler
|
|
589
|
-
|
|
590
|
-
35.3.6
|
|
591
|
-
|
|
592
|
-
* Accessibility: Close dropdown menu after keypress on action.
|
|
593
|
-
|
|
594
|
-
35.3.5
|
|
595
|
-
|
|
596
|
-
* Update tslint-config version and define peerDependencies
|
|
597
|
-
|
|
598
|
-
35.3.4
|
|
599
|
-
|
|
600
|
-
* Accessibility Improvement: Shows/hides focus ring when pressing tab or mousedown
|
|
601
|
-
|
|
602
|
-
35.3.3
|
|
603
|
-
|
|
604
|
-
* Added 7 services/handlers to centralize them into JSUI: themeService, colorUtilsService, apiSuccessHandler, errorResponseService, feedbackErrorHandler, logErrorHandler, and urlModificationService (formerly known as urlService)
|
|
605
|
-
|
|
606
|
-
35.3.2
|
|
607
|
-
|
|
608
|
-
* Add keypress on dropdown menu for accessibility
|
|
609
|
-
|
|
610
|
-
35.3.0
|
|
611
|
-
|
|
612
|
-
* Updating text colors for accessibility
|
|
613
|
-
|
|
614
|
-
35.2.1
|
|
615
|
-
|
|
616
|
-
* Added callback funtion on close X in "full page" modals
|
|
617
|
-
|
|
618
|
-
35.2.0
|
|
619
|
-
|
|
620
|
-
* Add new "full page" display option for modals
|
|
621
|
-
|
|
622
|
-
35.1.3
|
|
623
|
-
|
|
624
|
-
* Add description to metadata form
|
|
625
|
-
|
|
626
|
-
35.1.2
|
|
627
|
-
|
|
628
|
-
* Add Form Icon to Form Component
|
|
629
|
-
|
|
630
|
-
35.1.1
|
|
631
|
-
|
|
632
|
-
* Fix form label CSS
|
|
633
|
-
|
|
634
|
-
35.1.0
|
|
635
|
-
|
|
636
|
-
* Add `elvis` glyph to mfly-webfont
|
|
637
|
-
|
|
638
|
-
**35.0.0**
|
|
639
|
-
|
|
640
|
-
* **Breaking**: Auto add "Copy again" when auto copying to clipboard
|
|
641
|
-
* Support colored text in text sections
|
|
642
|
-
|
|
643
|
-
34.8.0
|
|
644
|
-
|
|
645
|
-
* Remove autofill from date picker by adding autocomplete=off
|
|
646
|
-
|
|
647
|
-
34.7.0
|
|
648
|
-
|
|
649
|
-
* Support color & background color in the rich text editor.
|
|
650
|
-
|
|
651
|
-
34.5.4
|
|
652
|
-
|
|
653
|
-
* Add the font styles to the standalone bundle
|
|
654
|
-
|
|
655
|
-
34.5.3
|
|
656
|
-
|
|
657
|
-
* Adding new binding decorator for Input('=?')
|
|
658
|
-
|
|
659
|
-
34.5.2
|
|
660
|
-
|
|
661
|
-
* Revert Lodash upgrade, it was breaking consuming apps
|
|
662
|
-
|
|
663
|
-
34.5.1
|
|
664
|
-
|
|
665
|
-
* Add .git folder to .npmignore
|
|
666
|
-
|
|
667
|
-
34.5.0
|
|
668
|
-
|
|
669
|
-
* Add page header styles
|
|
670
|
-
* Add small button styles
|
|
671
|
-
* Improve focus outlines for all buttons
|
|
672
|
-
* Remove modernizr & bump Lodash to 4.17.11
|
|
673
|
-
|
|
674
|
-
34.4.5
|
|
675
|
-
|
|
676
|
-
* Add hourglass to progress circle
|
|
677
|
-
|
|
678
|
-
34.4.4
|
|
679
|
-
|
|
680
|
-
* Add class for disabled label
|
|
681
|
-
|
|
682
|
-
34.4.3
|
|
683
|
-
|
|
684
|
-
* Fix validation of number inputs in metadata-form
|
|
685
|
-
|
|
686
|
-
34.4.2
|
|
687
|
-
|
|
688
|
-
* Update Actionable Empty State documentation.
|
|
689
|
-
|
|
690
|
-
34.4.1
|
|
691
|
-
|
|
692
|
-
* Fixes Actionable Empty State button bug.
|
|
693
|
-
|
|
694
|
-
34.4.0
|
|
695
|
-
|
|
696
|
-
* Added Actionable Empty State component
|
|
697
|
-
|
|
698
|
-
34.3.0
|
|
699
|
-
|
|
700
|
-
* Updated Input, Button, and Table css to lighter weight `Next` styling.
|
|
701
|
-
|
|
702
|
-
34.2.0
|
|
703
|
-
|
|
704
|
-
* Added a standalone CSS file in `lib/styles.css`.
|
|
705
|
-
|
|
706
|
-
34.1.0
|
|
707
|
-
|
|
708
|
-
* Added Google Drive file type icons to mfly-webfont.
|
|
709
|
-
|
|
710
|
-
34.0.11
|
|
711
|
-
|
|
712
|
-
* Fix dropdown arrow appearance in IE11.
|
|
713
|
-
|
|
714
|
-
34.0.10
|
|
715
|
-
|
|
716
|
-
* Add icon radio buttons.
|
|
717
|
-
|
|
718
|
-
34.0.9
|
|
719
|
-
|
|
720
|
-
* Improved fix for hover tooltips on touch devices.
|
|
721
|
-
|
|
722
|
-
34.0.8
|
|
723
|
-
|
|
724
|
-
* Add cypress to `.npmignore`.
|
|
725
|
-
|
|
726
|
-
34.0.7
|
|
727
|
-
|
|
728
|
-
* Fix tab hover states.
|
|
729
|
-
|
|
730
|
-
34.0.6
|
|
731
|
-
|
|
732
|
-
* Only show hover tooltips if a hover interaction is available (via media query).
|
|
733
|
-
* Tweak dropdown select CSS in dark theme.
|
|
734
|
-
|
|
735
|
-
34.0.5
|
|
736
|
-
|
|
737
|
-
* Define tapered visual styles for h1-3.
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
34.0.3
|
|
741
|
-
|
|
742
|
-
* Fix babelify in package-lock.json.
|
|
743
|
-
|
|
744
|
-
34.0.2
|
|
745
|
-
|
|
746
|
-
* Fix for h1 headers that are getting cut-off when set to overflow-hidden.
|
|
747
|
-
|
|
748
|
-
34.0.1
|
|
749
|
-
|
|
750
|
-
* Fix vertical scrolling when Viewer is loaded in the Mediafly Outlook app Add-in on iOS.
|
|
751
|
-
|
|
752
|
-
**34.0.0**
|
|
753
|
-
|
|
754
|
-
* **Breaking:** Tabs: Removed `hide-tab` attribute as it prevented tabs from being loaded (rather than dynamically adding them). For tabs that should not be loaded, perhaps because of a permission violation, set `load-tab` to false (`load-tab` is true if not provided). If you wish to dynmically hide a tab (which will keep it in the DOM) use the `is-hidden` attribute -* which is also introduced in this release.
|
|
755
|
-
|
|
756
|
-
33.0.1
|
|
757
|
-
|
|
758
|
-
* Tabs: Fix auto selecting tab 1 bug. Changed `active-border-bottom-color` property to `active-tab-color` and converted to a simple string.
|
|
759
|
-
|
|
760
|
-
**33.0.0**
|
|
761
|
-
|
|
762
|
-
* **Breaking:** Tabs: Tab group now requires tab-id on each tab. Using tab-title as an id is no longer supported
|
|
763
|
-
* Tabs: isDisabled is now available on the individual tabs to prevent them from being activated.
|
|
764
|
-
* Tabs: Visual style of tabs has changed.
|
|
765
|
-
* Modals: Modal header now has an available css property (modalHeaderClass)
|
|
766
|
-
|
|
767
|
-
32.1.0
|
|
768
|
-
|
|
769
|
-
* Rich text editor: Add alignment controls to the toolbar.
|
|
770
|
-
|
|
771
|
-
32.0.1
|
|
772
|
-
|
|
773
|
-
* Feedback: Add `trustAsHtml` option.
|
|
774
|
-
|
|
775
|
-
**32.0.0**
|
|
776
|
-
|
|
777
|
-
* **Breaking:** FontAwesome: Update to font awesome pro. All calling applications should move to far or fal classes. See fontawesome website for additional details
|
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@ UI components for Mediafly apps.
|
|
|
3
3
|
|
|
4
4
|
[View changelog](https://bitbucket.org/mediafly-team/mediafly-js-ui/src/main/CHANGELOG.md)
|
|
5
5
|
|
|
6
|
+
[](https://mediafly.semaphoreci.com/projects/engagement-js-ui)
|
|
7
|
+
|
|
6
8
|
|
|
7
9
|
|
|
8
10
|
## Getting started
|
|
@@ -14,7 +16,7 @@ You'll also need to be authenticated to the Mediafly NPM org.
|
|
|
14
16
|
|
|
15
17
|
## Working locally
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
Add `127.0.0.1 local.imediafly.com` to your hosts file.
|
|
18
20
|
|
|
19
21
|
Run the site locally: `npm start`
|
|
20
22
|
|
|
@@ -36,20 +38,21 @@ release. To do a major/minor release, pass the flag like this: `npm run release
|
|
|
36
38
|
|
|
37
39
|
## Updating the mfly webfont
|
|
38
40
|
1. Go to the IcoMoon App: https://icomoon.io/app/#/select
|
|
39
|
-
2.
|
|
41
|
+
2. Click "import icons" and select `src/fonts/mfly-webfont-v1.x.json`.
|
|
40
42
|
This will load the font project.
|
|
41
43
|
3. Drag the new SVG into the project and click it to add it to the font (it will
|
|
42
44
|
turn white with an orange border).
|
|
43
|
-
4. Click the hamburger icon on the top
|
|
45
|
+
4. Click the hamburger icon on the top right of the mfly-webfont section. Select
|
|
44
46
|
"Download JSON".
|
|
45
47
|
5. Increment the version number and add this to the file name (if the old json
|
|
46
48
|
was named `v1.5`, you would add `-v1.6` to the new json).
|
|
47
49
|
6. Add this file to the project in `src/fonts` and delete the previous json file.
|
|
48
50
|
7. Back in IcoMoon, at the bottom of the window, click "Generate Font".
|
|
49
51
|
8. Hit the settings gear next to the Download button. Update the version in this window.
|
|
52
|
+
Set the prefix to `mfly-font` and the name to `mfly-webfont`.
|
|
50
53
|
9. Hit download. Unzip this archive. Copy the `.woff` file into `src/fonts`, overwriting
|
|
51
54
|
the old font file.
|
|
52
|
-
10. Next, update `src/less/fonts/mfly-webfont.less` by adding the new glyph name
|
|
55
|
+
10. Next, update `src/components/less/fonts/mfly-webfont.less` by adding the new glyph name
|
|
53
56
|
and its codepoint (ex: `e907`). You can find these on the "Generate Font" page
|
|
54
57
|
in IcoMoon.
|
|
55
58
|
11. Add an example of the new glyph in `app/basics/webfont/webfont.page.html` to
|