@atlassian/aui 9.3.21 → 9.3.23
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/LICENSE.md +1 -1
- package/README.md +7 -9
- package/dist/aui/aui-css-deprecations.js +1 -1
- package/dist/aui/aui-css-deprecations.js.map +1 -1
- package/dist/aui/aui-prototyping-browserfocus.css +1 -353
- package/dist/aui/aui-prototyping-darkmode.css +1 -262
- package/dist/aui/aui-prototyping.css +10 -10
- package/dist/aui/aui-prototyping.js +7 -7
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +10 -10
- package/dist/aui/aui-prototyping.nodeps.js +9 -9
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/entry/aui.batch.components.js +21 -21
- package/entry/aui.batch.page.js +3 -3
- package/entry/aui.batch.patterns.js +20 -20
- package/entry/aui.batch.prototyping.js +3 -11
- package/entry/aui.component.nav.js +1 -1
- package/entry/aui.component.progressbar.js +4 -1
- package/entry/aui.side-effects.js +2 -2
- package/entry/behaviours/aui.behaviour.format.js +1 -1
- package/entry/behaviours/aui.behaviour.i18n.js +1 -1
- package/entry/behaviours/aui.behaviour.keyboard-shortcuts.js +1 -1
- package/entry/behaviours/aui.behaviour.progressive-data-set.js +1 -1
- package/entry/behaviours/aui.behaviour.version.js +1 -1
- package/entry/deprecated/aui.component.inline-dialog1.js +1 -1
- package/package.json +3 -7
- package/src/js/aui/alphanum.js +1 -1
- package/src/js/aui/banner.js +2 -2
- package/src/js/aui/blanket.js +7 -11
- package/src/js/aui/button.js +5 -5
- package/src/js/aui/checkbox-multiselect.js +79 -76
- package/src/js/aui/clone.js +1 -1
- package/src/js/aui/close-button.js +2 -6
- package/src/js/aui/contain-dropdown.js +5 -5
- package/src/js/aui/contains.js +1 -1
- package/src/js/aui/cookie.js +12 -16
- package/src/js/aui/date-picker.js +84 -69
- package/src/js/aui/debounce.js +5 -8
- package/src/js/aui/dialog.js +206 -172
- package/src/js/aui/dialog2.js +9 -8
- package/src/js/aui/dropdown2.js +211 -181
- package/src/js/aui/escape-html.js +2 -2
- package/src/js/aui/escape.js +1 -1
- package/src/js/aui/event.js +4 -8
- package/src/js/aui/expander.js +9 -7
- package/src/js/aui/flag.js +15 -17
- package/src/js/aui/focus-manager.js +19 -18
- package/src/js/aui/form-notification.js +14 -13
- package/src/js/aui/form-validation/basic-validators.js +39 -30
- package/src/js/aui/form-validation/validator-register.js +9 -5
- package/src/js/aui/form-validation.js +17 -14
- package/src/js/aui/format.js +9 -6
- package/src/js/aui/forms/create-forms-component-body.js +6 -9
- package/src/js/aui/forms/custom-checkbox.js +2 -6
- package/src/js/aui/forms/custom-radio.js +2 -6
- package/src/js/aui/forms.js +4 -8
- package/src/js/aui/header-async.js +1 -1
- package/src/js/aui/header.js +2 -2
- package/src/js/aui/i18n.js +2 -5
- package/src/js/aui/index-of.js +1 -1
- package/src/js/aui/inline-dialog.js +171 -117
- package/src/js/aui/inline-dialog2.js +60 -50
- package/src/js/aui/internal/add-id.js +1 -1
- package/src/js/aui/internal/alignment.js +57 -49
- package/src/js/aui/internal/amdify.js +0 -1
- package/src/js/aui/internal/animation.js +2 -5
- package/src/js/aui/internal/attributes.js +2 -3
- package/src/js/aui/internal/browser.js +5 -6
- package/src/js/aui/internal/constants.js +1 -3
- package/src/js/aui/internal/deduplicateIDs.js +8 -7
- package/src/js/aui/internal/deprecation/deprecated-adg2-icons.js +132 -132
- package/src/js/aui/internal/deprecation.js +53 -31
- package/src/js/aui/internal/detect-children-change.js +3 -2
- package/src/js/aui/internal/elements.js +2 -5
- package/src/js/aui/internal/enforcer.js +11 -13
- package/src/js/aui/internal/globalize.js +3 -3
- package/src/js/aui/internal/has-touch.js +1 -2
- package/src/js/aui/internal/header/create-header.js +54 -28
- package/src/js/aui/internal/i18n/aui.js +8 -5
- package/src/js/aui/internal/i18n/aui_af.js +31 -31
- package/src/js/aui/internal/i18n/aui_ar.js +31 -31
- package/src/js/aui/internal/i18n/aui_ar_DZ.js +31 -31
- package/src/js/aui/internal/i18n/aui_az.js +31 -31
- package/src/js/aui/internal/i18n/aui_bg.js +31 -31
- package/src/js/aui/internal/i18n/aui_bs.js +31 -31
- package/src/js/aui/internal/i18n/aui_ca.js +31 -31
- package/src/js/aui/internal/i18n/aui_cs.js +31 -31
- package/src/js/aui/internal/i18n/aui_da.js +31 -31
- package/src/js/aui/internal/i18n/aui_de.js +31 -31
- package/src/js/aui/internal/i18n/aui_el.js +31 -31
- package/src/js/aui/internal/i18n/aui_en_AU.js +31 -31
- package/src/js/aui/internal/i18n/aui_en_GB.js +31 -31
- package/src/js/aui/internal/i18n/aui_en_NZ.js +31 -31
- package/src/js/aui/internal/i18n/aui_eo.js +31 -31
- package/src/js/aui/internal/i18n/aui_es.js +31 -31
- package/src/js/aui/internal/i18n/aui_et.js +31 -31
- package/src/js/aui/internal/i18n/aui_eu.js +31 -31
- package/src/js/aui/internal/i18n/aui_fa.js +31 -31
- package/src/js/aui/internal/i18n/aui_fi.js +31 -31
- package/src/js/aui/internal/i18n/aui_fo.js +31 -31
- package/src/js/aui/internal/i18n/aui_fr.js +31 -31
- package/src/js/aui/internal/i18n/aui_fr_CH.js +31 -31
- package/src/js/aui/internal/i18n/aui_gl.js +31 -31
- package/src/js/aui/internal/i18n/aui_he.js +31 -31
- package/src/js/aui/internal/i18n/aui_hr.js +31 -31
- package/src/js/aui/internal/i18n/aui_hu.js +31 -31
- package/src/js/aui/internal/i18n/aui_hy.js +31 -31
- package/src/js/aui/internal/i18n/aui_id.js +31 -31
- package/src/js/aui/internal/i18n/aui_is.js +31 -31
- package/src/js/aui/internal/i18n/aui_it.js +31 -31
- package/src/js/aui/internal/i18n/aui_ja.js +31 -31
- package/src/js/aui/internal/i18n/aui_ko.js +31 -31
- package/src/js/aui/internal/i18n/aui_kz.js +31 -31
- package/src/js/aui/internal/i18n/aui_lt.js +31 -31
- package/src/js/aui/internal/i18n/aui_lv.js +31 -31
- package/src/js/aui/internal/i18n/aui_ml.js +31 -31
- package/src/js/aui/internal/i18n/aui_ms.js +31 -31
- package/src/js/aui/internal/i18n/aui_nl.js +31 -31
- package/src/js/aui/internal/i18n/aui_no.js +31 -31
- package/src/js/aui/internal/i18n/aui_pl.js +31 -31
- package/src/js/aui/internal/i18n/aui_pt.js +31 -31
- package/src/js/aui/internal/i18n/aui_pt_BR.js +31 -31
- package/src/js/aui/internal/i18n/aui_rm.js +31 -31
- package/src/js/aui/internal/i18n/aui_ro.js +31 -31
- package/src/js/aui/internal/i18n/aui_ru.js +31 -31
- package/src/js/aui/internal/i18n/aui_sk.js +31 -31
- package/src/js/aui/internal/i18n/aui_sl.js +31 -31
- package/src/js/aui/internal/i18n/aui_sq.js +31 -31
- package/src/js/aui/internal/i18n/aui_sr.js +31 -31
- package/src/js/aui/internal/i18n/aui_sr_SR.js +31 -31
- package/src/js/aui/internal/i18n/aui_sv.js +31 -31
- package/src/js/aui/internal/i18n/aui_ta.js +31 -31
- package/src/js/aui/internal/i18n/aui_th.js +31 -31
- package/src/js/aui/internal/i18n/aui_tj.js +31 -31
- package/src/js/aui/internal/i18n/aui_tr.js +31 -31
- package/src/js/aui/internal/i18n/aui_uk.js +31 -31
- package/src/js/aui/internal/i18n/aui_vi.js +31 -31
- package/src/js/aui/internal/i18n/aui_zh_CN.js +31 -31
- package/src/js/aui/internal/i18n/aui_zh_HK.js +31 -31
- package/src/js/aui/internal/i18n/aui_zh_TW.js +31 -31
- package/src/js/aui/internal/log.js +2 -6
- package/src/js/aui/internal/mediaQuery.js +2 -3
- package/src/js/aui/internal/select/option.js +3 -3
- package/src/js/aui/internal/select/suggestion-model.js +1 -1
- package/src/js/aui/internal/select/suggestions-model.js +4 -5
- package/src/js/aui/internal/select/suggestions-view.js +17 -12
- package/src/js/aui/internal/state.js +2 -3
- package/src/js/aui/is-clipped.js +2 -2
- package/src/js/aui/key-code.js +1 -1
- package/src/js/aui/label.js +6 -6
- package/src/js/aui/layer.js +100 -98
- package/src/js/aui/messages.js +51 -38
- package/src/js/aui/navigation.js +7 -9
- package/src/js/aui/on-text-resize.js +7 -5
- package/src/js/aui/params.js +11 -8
- package/src/js/aui/polyfills/custom-event.js +7 -7
- package/src/js/aui/polyfills/placeholder.js +4 -4
- package/src/js/aui/populate-parameters.js +4 -4
- package/src/js/aui/progress-indicator.js +35 -27
- package/src/js/aui/progressive-data-set.js +13 -8
- package/src/js/aui/query-input.js +1 -1
- package/src/js/aui/restful-table/class-names.js +1 -1
- package/src/js/aui/restful-table/data-keys.js +1 -1
- package/src/js/aui/restful-table/edit-row.js +63 -63
- package/src/js/aui/restful-table/entry-model.js +6 -13
- package/src/js/aui/restful-table/event-handlers.js +4 -8
- package/src/js/aui/restful-table/event-names.js +1 -1
- package/src/js/aui/restful-table/row.js +41 -23
- package/src/js/aui/restful-table.js +101 -72
- package/src/js/aui/result-set.js +5 -5
- package/src/js/aui/results-list.js +3 -3
- package/src/js/aui/select.js +65 -49
- package/src/js/aui/select2.js +14 -6
- package/src/js/aui/sidebar.js +81 -51
- package/src/js/aui/spin.js +61 -49
- package/src/js/aui/spinner.js +11 -12
- package/src/js/aui/tables-sortable.js +21 -10
- package/src/js/aui/tabs.js +108 -77
- package/src/js/aui/to-init.js +1 -1
- package/src/js/aui/toggle.js +55 -43
- package/src/js/aui/tooltip.js +32 -31
- package/src/js/aui/trigger.js +20 -18
- package/src/js/aui/truncating-progressive-data-set.js +1 -1
- package/src/js/aui/unbind-text-resize.js +1 -1
- package/src/js/aui/unique-id.js +1 -1
- package/src/js/aui/when-i-type.js +66 -39
- package/src/js/aui-css-deprecations.js +50 -50
- package/src/js/jquery/jquery.hotkeys.js +124 -49
- package/src/js/jquery/jquery.moveto.js +18 -12
- package/src/less/adg-fancy-file-input.less +2 -3
- package/src/less/adg-header-quicksearch.less +4 -1
- package/src/less/adg-iconfont.less +242 -242
- package/src/less/adgs-icons.less +262 -262
- package/src/less/aui-appheader.less +10 -6
- package/src/less/aui-buttons.less +6 -5
- package/src/less/aui-date-picker.less +9 -6
- package/src/less/aui-experimental-expander.less +8 -8
- package/src/less/aui-experimental-labels.less +4 -3
- package/src/less/aui-experimental-progress-indicator.less +10 -4
- package/src/less/aui-experimental-progress-tracker.less +9 -6
- package/src/less/aui-experimental-restfultable.less +11 -3
- package/src/less/aui-experimental-tables-sortable.less +5 -3
- package/src/less/aui-experimental-tooltip.less +1 -1
- package/src/less/aui-link.less +0 -1
- package/src/less/aui-lozenge.less +6 -3
- package/src/less/aui-navigation.less +13 -13
- package/src/less/aui-page-layout.less +3 -4
- package/src/less/aui-page-typography.less +8 -3
- package/src/less/aui-reset.less +22 -6
- package/src/less/aui-select2.less +11 -8
- package/src/less/aui-sidebar-badges.less +1 -2
- package/src/less/aui-sidebar-config.less +7 -2
- package/src/less/aui-sidebar-grouping.less +16 -6
- package/src/less/aui-sidebar-navigation.less +7 -5
- package/src/less/aui-sidebar-skeleton.less +4 -3
- package/src/less/aui-skip-link.less +2 -1
- package/src/less/aui-spinner.less +2 -2
- package/src/less/aui-toggle.less +2 -2
- package/src/less/aui-toolbar2.less +1 -1
- package/src/less/checkbox-multiselect.less +13 -13
- package/src/less/dialog.less +3 -3
- package/src/less/dialog2.less +12 -11
- package/src/less/dropdown2-temp.css +4 -4
- package/src/less/dropdown2.less +3 -3
- package/src/less/form-notification.less +10 -6
- package/src/less/forms-current.less +6 -5
- package/src/less/forms-legacy.less +4 -2
- package/src/less/forms-radios-and-checkboxes.less +9 -11
- package/src/less/forms.less +2 -4
- package/src/less/iconfont-mixin.less +7 -4
- package/src/less/imports/aui-theme/adg/adg-colors.less +40 -40
- package/src/less/imports/aui-theme/adg/adg-neutral-dark.less +20 -20
- package/src/less/imports/aui-theme/adg/adg-neutral-light.less +20 -20
- package/src/less/imports/aui-theme/components/buttons.less +5 -1
- package/src/less/imports/aui-theme/components/dropdown.less +3 -1
- package/src/less/imports/aui-theme/components/form-notification.less +2 -1
- package/src/less/imports/aui-theme/components/forms.less +16 -1
- package/src/less/imports/aui-theme/components/inline-dialog2.less +1 -1
- package/src/less/imports/aui-theme/components/navigation.less +3 -3
- package/src/less/imports/aui-theme/components/progress-tracker.less +6 -2
- package/src/less/imports/aui-theme/components/tables.less +3 -2
- package/src/less/imports/aui-theme/components/toggle.less +8 -3
- package/src/less/imports/aui-theme/core/colors.less +12 -4
- package/src/less/imports/aui-theme/core/icons.less +22 -22
- package/src/less/imports/aui-theme/core/text.less +6 -3
- package/src/less/imports/mixins/dropdown2-trigger-chevron-icon.less +0 -1
- package/src/less/imports/mixins/focus.less +12 -4
- package/src/less/imports/mixins/media-queries.less +2 -2
- package/src/less/imports/mixins/shadows.less +3 -1
- package/src/less/imports/mixins/tab-indicator.less +2 -2
- package/src/less/imports/mixins.less +11 -4
- package/src/less/inline-dialog.less +21 -19
- package/src/less/layer.less +0 -2
- package/src/less/messages.less +2 -1
- package/src/less/single-select.less +14 -9
- package/src/less/tables.less +3 -2
- package/src/less/tabs.less +4 -3
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.css +0 -797
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.js +0 -26
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-theme-import-map.js +0 -51
- package/entry/token-themes-generated/npm/themes/dark-future.js +0 -7
- package/entry/token-themes-generated/npm/themes/dark-new-input-border.js +0 -7
- package/entry/token-themes-generated/npm/themes/dark.js +0 -395
- package/entry/token-themes-generated/npm/themes/legacy-dark.js +0 -395
- package/entry/token-themes-generated/npm/themes/legacy-light.js +0 -395
- package/entry/token-themes-generated/npm/themes/light-future.js +0 -7
- package/entry/token-themes-generated/npm/themes/light-new-input-border.js +0 -7
- package/entry/token-themes-generated/npm/themes/light.js +0 -395
- package/entry/token-themes-generated/npm/themes/shape.js +0 -15
- package/entry/token-themes-generated/npm/themes/spacing.js +0 -27
- package/entry/token-themes-generated/npm/themes/typography-adg3.js +0 -50
- package/entry/token-themes-generated/npm/themes/typography-minor3.js +0 -41
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// JS components
|
|
2
|
-
export * from './aui.component.banner'
|
|
3
|
-
export * from './aui.component.button'
|
|
4
|
-
export * from './aui.component.dialog2'
|
|
5
|
-
export * from './aui.component.dropdown2'
|
|
6
|
-
export * from './aui.component.expander'
|
|
7
|
-
export * from './aui.component.flag'
|
|
8
|
-
export * from './aui.component.form.checkbox-multi-select'
|
|
9
|
-
export * from './aui.component.form.file-select'
|
|
10
|
-
export * from './aui.component.form.label'
|
|
11
|
-
export * from './aui.component.form.select2'
|
|
12
|
-
export * from './aui.component.form.single-select'
|
|
13
|
-
export * from './aui.component.form.toggle'
|
|
14
|
-
export * from './aui.component.inline-dialog2'
|
|
2
|
+
export * from './aui.component.banner';
|
|
3
|
+
export * from './aui.component.button';
|
|
4
|
+
export * from './aui.component.dialog2';
|
|
5
|
+
export * from './aui.component.dropdown2';
|
|
6
|
+
export * from './aui.component.expander';
|
|
7
|
+
export * from './aui.component.flag';
|
|
8
|
+
export * from './aui.component.form.checkbox-multi-select';
|
|
9
|
+
export * from './aui.component.form.file-select';
|
|
10
|
+
export * from './aui.component.form.label';
|
|
11
|
+
export * from './aui.component.form.select2';
|
|
12
|
+
export * from './aui.component.form.single-select';
|
|
13
|
+
export * from './aui.component.form.toggle';
|
|
14
|
+
export * from './aui.component.inline-dialog2';
|
|
15
15
|
// export * from './aui.component.layer'
|
|
16
|
-
export * from './aui.component.message'
|
|
17
|
-
export * from './aui.component.nav'
|
|
18
|
-
export * from './aui.component.progressbar'
|
|
19
|
-
export * from './aui.component.sortable-table'
|
|
20
|
-
export * from './aui.component.spinner'
|
|
21
|
-
export * from './aui.component.tabs'
|
|
22
|
-
export * from './aui.component.tooltip'
|
|
23
|
-
export * from './aui.component.trigger'
|
|
16
|
+
export * from './aui.component.message';
|
|
17
|
+
export * from './aui.component.nav';
|
|
18
|
+
export * from './aui.component.progressbar';
|
|
19
|
+
export * from './aui.component.sortable-table';
|
|
20
|
+
export * from './aui.component.spinner';
|
|
21
|
+
export * from './aui.component.tabs';
|
|
22
|
+
export * from './aui.component.tooltip';
|
|
23
|
+
export * from './aui.component.trigger';
|
package/entry/aui.batch.page.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Page-level CSS
|
|
2
|
-
import './styles/aui.page.reset'
|
|
3
|
-
import './styles/aui.page.typography'
|
|
4
|
-
import './styles/aui.page.links'
|
|
2
|
+
import './styles/aui.page.reset';
|
|
3
|
+
import './styles/aui.page.typography';
|
|
4
|
+
import './styles/aui.page.links';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
// HTML + CSS patterns
|
|
2
|
-
import './styles/aui.pattern.avatar'
|
|
3
|
-
import './styles/aui.pattern.badge'
|
|
4
|
-
import './styles/aui.pattern.banner'
|
|
5
|
-
import './styles/aui.pattern.basic'
|
|
6
|
-
import './styles/aui.pattern.button'
|
|
7
|
-
import './styles/aui.pattern.forms'
|
|
8
|
-
import './styles/aui.pattern.group'
|
|
9
|
-
import './styles/aui.pattern.help'
|
|
10
|
-
import './styles/aui.pattern.icon'
|
|
11
|
-
import './styles/aui.pattern.inline-dialog'
|
|
12
|
-
import './styles/aui.pattern.label'
|
|
13
|
-
import './styles/aui.pattern.lozenge'
|
|
14
|
-
import './styles/aui.pattern.messages'
|
|
15
|
-
import './styles/aui.pattern.multi-step-progress'
|
|
16
|
-
import './styles/aui.pattern.nav'
|
|
17
|
-
import './styles/aui.pattern.page-header'
|
|
18
|
-
import './styles/aui.pattern.page-layout'
|
|
19
|
-
import './styles/aui.pattern.table'
|
|
20
|
-
import './styles/aui.pattern.tabs'
|
|
21
|
-
import './styles/aui.pattern.toolbar2'
|
|
2
|
+
import './styles/aui.pattern.avatar';
|
|
3
|
+
import './styles/aui.pattern.badge';
|
|
4
|
+
import './styles/aui.pattern.banner';
|
|
5
|
+
import './styles/aui.pattern.basic';
|
|
6
|
+
import './styles/aui.pattern.button';
|
|
7
|
+
import './styles/aui.pattern.forms';
|
|
8
|
+
import './styles/aui.pattern.group';
|
|
9
|
+
import './styles/aui.pattern.help';
|
|
10
|
+
import './styles/aui.pattern.icon';
|
|
11
|
+
import './styles/aui.pattern.inline-dialog';
|
|
12
|
+
import './styles/aui.pattern.label';
|
|
13
|
+
import './styles/aui.pattern.lozenge';
|
|
14
|
+
import './styles/aui.pattern.messages';
|
|
15
|
+
import './styles/aui.pattern.multi-step-progress';
|
|
16
|
+
import './styles/aui.pattern.nav';
|
|
17
|
+
import './styles/aui.pattern.page-header';
|
|
18
|
+
import './styles/aui.pattern.page-layout';
|
|
19
|
+
import './styles/aui.pattern.table';
|
|
20
|
+
import './styles/aui.pattern.tabs';
|
|
21
|
+
import './styles/aui.pattern.toolbar2';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './aui.side-effects';
|
|
2
2
|
export { log, error, warn } from './behaviours/aui.behaviour.logger';
|
|
3
|
-
import {i18n as I18n} from './behaviours/aui.behaviour.i18n';
|
|
3
|
+
import { i18n as I18n } from './behaviours/aui.behaviour.i18n';
|
|
4
4
|
import './aui.batch.page';
|
|
5
5
|
import './aui.batch.patterns';
|
|
6
6
|
import './aui.batch.iconography';
|
|
@@ -14,15 +14,7 @@ import { RestfulTable } from './aui.component.restful-table';
|
|
|
14
14
|
import { sidebar } from './aui.component.sidebar';
|
|
15
15
|
import { whenIType } from './behaviours/aui.behaviour.keyboard-shortcuts';
|
|
16
16
|
|
|
17
|
-
export {
|
|
18
|
-
I18n,
|
|
19
|
-
Header,
|
|
20
|
-
DatePicker,
|
|
21
|
-
CalendarWidget,
|
|
22
|
-
RestfulTable,
|
|
23
|
-
sidebar,
|
|
24
|
-
whenIType,
|
|
25
|
-
};
|
|
17
|
+
export { I18n, Header, DatePicker, CalendarWidget, RestfulTable, sidebar, whenIType };
|
|
26
18
|
|
|
27
19
|
export const {
|
|
28
20
|
FocusManager,
|
|
@@ -47,7 +39,7 @@ export const {
|
|
|
47
39
|
tablessortable,
|
|
48
40
|
tabs,
|
|
49
41
|
undim,
|
|
50
|
-
_addID
|
|
42
|
+
_addID,
|
|
51
43
|
} = window.AJS;
|
|
52
44
|
|
|
53
45
|
// Fix AUI + WRM compatibility in a hacky way.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './styles/aui.pattern.nav';
|
|
2
|
-
export {default as navigation, NavigationEl} from '@atlassian/aui/src/js/aui/navigation';
|
|
2
|
+
export { default as navigation, NavigationEl } from '@atlassian/aui/src/js/aui/navigation';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import './styles/aui.page.reset';
|
|
2
2
|
import './styles/aui.page.typography';
|
|
3
3
|
import '@atlassian/aui/src/less/aui-experimental-progress-indicator.less';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
default as progressBars,
|
|
6
|
+
ProgressBarEl,
|
|
7
|
+
} from '@atlassian/aui/src/js/aui/progress-indicator';
|
|
@@ -20,5 +20,5 @@ import './styles/aui.pattern.toolbar2';
|
|
|
20
20
|
export * from './aui.core';
|
|
21
21
|
// todo AUI-4814: undo the weird relationships between layer, layerManager, and LayerManager.global
|
|
22
22
|
export * from './behaviours/aui.behaviour.layer-manager'; // because this is created in layer.js, and is needed as a side-effect on most pages :(
|
|
23
|
-
export {default as $} from '@atlassian/aui/src/js/aui/setup';
|
|
24
|
-
export {default as toInit} from '@atlassian/aui/src/js/aui/to-init';
|
|
23
|
+
export { default as $ } from '@atlassian/aui/src/js/aui/setup';
|
|
24
|
+
export { default as toInit } from '@atlassian/aui/src/js/aui/to-init';
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @note This behaviour really should be a part of the WRM itself.
|
|
6
6
|
* @see https://ecosystem.atlassian.net/browse/PLUGWEB-109
|
|
7
7
|
*/
|
|
8
|
-
export {default as format} from '@atlassian/aui/src/js/aui/format';
|
|
8
|
+
export { default as format } from '@atlassian/aui/src/js/aui/format';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as i18n} from '@atlassian/aui/src/js/aui/i18n';
|
|
1
|
+
export { default as i18n } from '@atlassian/aui/src/js/aui/i18n';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as whenIType} from '@atlassian/aui/src/js/aui/when-i-type';
|
|
1
|
+
export { default as whenIType } from '@atlassian/aui/src/js/aui/when-i-type';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as ProgressiveDataSet} from '../../src/js/aui/progressive-data-set';
|
|
1
|
+
export { default as ProgressiveDataSet } from '../../src/js/aui/progressive-data-set';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {default as version} from '@atlassian/aui/src/js/aui/version';
|
|
1
|
+
export { default as version } from '@atlassian/aui/src/js/aui/version';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import '../../src/less/inline-dialog.less';
|
|
2
|
-
export {default as InlineDialog} from '../../src/js/aui/inline-dialog';
|
|
2
|
+
export { default as InlineDialog } from '../../src/js/aui/inline-dialog';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlassian/aui",
|
|
3
3
|
"description": "Atlassian User Interface library",
|
|
4
|
-
"version": "9.3.
|
|
4
|
+
"version": "9.3.23",
|
|
5
5
|
"author": "Atlassian Pty Ltd.",
|
|
6
6
|
"homepage": "https://aui.atlassian.com",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@popperjs/core": "2.4.4",
|
|
38
38
|
"backbone": "1.4.0",
|
|
39
39
|
"css.escape": "1.5.0",
|
|
40
|
-
"dompurify": "2.
|
|
40
|
+
"dompurify": "2.5.7",
|
|
41
41
|
"fancy-file-input": "2.0.4",
|
|
42
42
|
"jquery-ui": "1.13.2",
|
|
43
43
|
"skatejs": "0.13.17",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
"@atlassian/aui-webpack-config": "2.0.0",
|
|
51
51
|
"@babel/core": "7.14.0",
|
|
52
52
|
"@babel/preset-env": "7.14.1",
|
|
53
|
-
"bundlesize": "1.0.0-beta.2",
|
|
54
53
|
"cross-env": "7.0.3",
|
|
55
54
|
"eslint": "7.24.0",
|
|
56
55
|
"glob": "7.1.2",
|
|
@@ -68,9 +67,6 @@
|
|
|
68
67
|
"dist/build:legacy": "yarn dist/build:core && yarn dist/build:exts",
|
|
69
68
|
"dist/build:prototyping": "webpack --config webpack/dist.prototyping.webpack.config.js",
|
|
70
69
|
"build": "yarn dist/build:prototyping",
|
|
71
|
-
"watch": "yarn dist/build:prototyping --watch"
|
|
72
|
-
"bundlesize/verify-dist": "node scripts/verify-dist-structure.js",
|
|
73
|
-
"bundlesize/gzipped": "node scripts/generate-bundlesize-config.js > configs/bundlesize-gzipped.json && bundlesize --config configs/bundlesize-gzipped.json",
|
|
74
|
-
"bundlesize/raw": "node scripts/generate-bundlesize-config.js raw > configs/bundlesize-raw.json && bundlesize --config configs/bundlesize-raw.json"
|
|
70
|
+
"watch": "yarn dist/build:prototyping --watch"
|
|
75
71
|
}
|
|
76
72
|
}
|
package/src/js/aui/alphanum.js
CHANGED
|
@@ -7,7 +7,7 @@ import globalize from './internal/globalize';
|
|
|
7
7
|
* @param {String} b second string to compare
|
|
8
8
|
* @return {Number(-1|0|1)} -1 if a < b, 0 if a = b, 1 if a > b
|
|
9
9
|
*/
|
|
10
|
-
function alphanum
|
|
10
|
+
function alphanum(a, b) {
|
|
11
11
|
a = (a + '').toLowerCase();
|
|
12
12
|
b = (b + '').toLowerCase();
|
|
13
13
|
|
package/src/js/aui/banner.js
CHANGED
|
@@ -5,7 +5,7 @@ import globalize from './internal/globalize';
|
|
|
5
5
|
|
|
6
6
|
var ID_BANNER_CONTAINER = 'header';
|
|
7
7
|
|
|
8
|
-
function banner
|
|
8
|
+
function banner(options) {
|
|
9
9
|
var $banner = renderBannerElement(options);
|
|
10
10
|
|
|
11
11
|
pruneBannerContainer();
|
|
@@ -14,7 +14,7 @@ function banner (options) {
|
|
|
14
14
|
return $banner[0];
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
function renderBannerElement({body, type = 'error'}) {
|
|
17
|
+
function renderBannerElement({ body, type = 'error' }) {
|
|
18
18
|
return $('<div class="aui-banner" role="banner"></div>')
|
|
19
19
|
.append($.parseHTML(body || ''))
|
|
20
20
|
.addClass(`aui-banner-${type}`);
|
package/src/js/aui/blanket.js
CHANGED
|
@@ -10,8 +10,7 @@ var _hiddenByAui = [];
|
|
|
10
10
|
* Dims the screen using a blanket div
|
|
11
11
|
* @param useShim deprecated, it is calculated by dim() now
|
|
12
12
|
*/
|
|
13
|
-
function dim
|
|
14
|
-
|
|
13
|
+
function dim(useShim, zIndex) {
|
|
15
14
|
//if we're blanketing the page it means we want to hide the whatever is under the blanket from the screen readers as well
|
|
16
15
|
function hasAriaHidden(element) {
|
|
17
16
|
return element.hasAttribute('aria-hidden');
|
|
@@ -36,7 +35,7 @@ function dim (useShim, zIndex) {
|
|
|
36
35
|
useShimDeprecationLogger();
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
var isBlanketShowing =
|
|
38
|
+
var isBlanketShowing = !!dim.$dim && !dim.$dim[0].hasAttribute('hidden');
|
|
40
39
|
|
|
41
40
|
if (!!dim.$dim) {
|
|
42
41
|
dim.$dim.remove();
|
|
@@ -55,7 +54,7 @@ function dim (useShim, zIndex) {
|
|
|
55
54
|
dim.cachedOverflow = {
|
|
56
55
|
overflow: overflowEl.style.overflow,
|
|
57
56
|
overflowX: overflowEl.style.overflowX,
|
|
58
|
-
overflowY: overflowEl.style.overflowY
|
|
57
|
+
overflowY: overflowEl.style.overflowY,
|
|
59
58
|
};
|
|
60
59
|
|
|
61
60
|
overflowEl.style.overflowX = 'hidden';
|
|
@@ -66,7 +65,7 @@ function dim (useShim, zIndex) {
|
|
|
66
65
|
dim.$dim.removeAttr('hidden');
|
|
67
66
|
|
|
68
67
|
if (zIndex) {
|
|
69
|
-
dim.$dim.css({zIndex: zIndex});
|
|
68
|
+
dim.$dim.css({ zIndex: zIndex });
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
return dim.$dim;
|
|
@@ -76,7 +75,7 @@ function dim (useShim, zIndex) {
|
|
|
76
75
|
* Removes semitransparent DIV
|
|
77
76
|
* @see dim
|
|
78
77
|
*/
|
|
79
|
-
function undim
|
|
78
|
+
function undim() {
|
|
80
79
|
_hiddenByAui.forEach(function (element) {
|
|
81
80
|
element.removeAttribute('aria-hidden');
|
|
82
81
|
});
|
|
@@ -95,13 +94,10 @@ function undim () {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
var useShimDeprecationLogger = getMessageLogger('useShim', {
|
|
98
|
-
extraInfo: 'useShim has no alternative as it is now calculated by dim().'
|
|
97
|
+
extraInfo: 'useShim has no alternative as it is now calculated by dim().',
|
|
99
98
|
});
|
|
100
99
|
|
|
101
100
|
globalize('dim', dim);
|
|
102
101
|
globalize('undim', undim);
|
|
103
102
|
|
|
104
|
-
export {
|
|
105
|
-
dim,
|
|
106
|
-
undim
|
|
107
|
-
};
|
|
103
|
+
export { dim, undim };
|
package/src/js/aui/button.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as logger from './internal/log';
|
|
2
2
|
import amdify from './internal/amdify';
|
|
3
3
|
import skate from './internal/skate';
|
|
4
|
-
import SpinnerEl, {SIZE} from './spinner';
|
|
4
|
+
import SpinnerEl, { SIZE } from './spinner';
|
|
5
5
|
|
|
6
|
-
function isBusy
|
|
6
|
+
function isBusy(button) {
|
|
7
7
|
return button.hasAttribute('aria-busy') && button.getAttribute('aria-busy') === 'true';
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
function isInputNode
|
|
10
|
+
function isInputNode(button) {
|
|
11
11
|
return button.nodeName === 'INPUT';
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -66,8 +66,8 @@ skate('aui-button', {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
return isBusy(this);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
71
|
});
|
|
72
72
|
|
|
73
73
|
amdify('aui/button');
|
|
@@ -15,11 +15,12 @@ var templates = {
|
|
|
15
15
|
// clear items section
|
|
16
16
|
var $clearItemsSection = createSection();
|
|
17
17
|
|
|
18
|
-
$('<button />')
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
$('<button />')
|
|
19
|
+
.attr({
|
|
20
|
+
'type': 'button',
|
|
21
|
+
'data-aui-checkbox-multiselect-clear': '',
|
|
22
|
+
'class': 'aui-button aui-button-link',
|
|
23
|
+
})
|
|
23
24
|
.text(I18n.getText('aui.checkboxmultiselect.clear.selected'))
|
|
24
25
|
.appendTo($clearItemsSection);
|
|
25
26
|
|
|
@@ -28,11 +29,13 @@ var templates = {
|
|
|
28
29
|
var $itemList = $('<ul />').appendTo($section);
|
|
29
30
|
|
|
30
31
|
$.each(items, function (idx, item) {
|
|
31
|
-
var $li = $('<li />')
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
var $li = $('<li />')
|
|
33
|
+
.attr({
|
|
34
|
+
class: item.styleClass || '',
|
|
35
|
+
})
|
|
36
|
+
.appendTo($itemList);
|
|
34
37
|
|
|
35
|
-
var $a =
|
|
38
|
+
var $a = $('<a />')
|
|
36
39
|
.text(item.label)
|
|
37
40
|
.attr('data-value', item.value)
|
|
38
41
|
.addClass('aui-dropdown2-checkbox aui-dropdown2-interactive')
|
|
@@ -50,40 +53,33 @@ var templates = {
|
|
|
50
53
|
}
|
|
51
54
|
});
|
|
52
55
|
|
|
53
|
-
return $('<div />')
|
|
54
|
-
.append($clearItemsSection)
|
|
55
|
-
.append($section)
|
|
56
|
-
.html();
|
|
56
|
+
return $('<div />').append($clearItemsSection).append($section).html();
|
|
57
57
|
},
|
|
58
58
|
|
|
59
59
|
furniture: function (name, optionsHtml) {
|
|
60
60
|
var dropdownId = name + '-dropdown';
|
|
61
61
|
|
|
62
|
-
var $select = $('<select />')
|
|
63
|
-
name: name,
|
|
64
|
-
multiple: 'multiple'
|
|
65
|
-
}).html(optionsHtml);
|
|
66
|
-
|
|
67
|
-
var $dropdown = $('<div>')
|
|
62
|
+
var $select = $('<select />')
|
|
68
63
|
.attr({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
})
|
|
64
|
+
name: name,
|
|
65
|
+
multiple: 'multiple',
|
|
66
|
+
})
|
|
67
|
+
.html(optionsHtml);
|
|
72
68
|
|
|
73
|
-
var $
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
69
|
+
var $dropdown = $('<div>').attr({
|
|
70
|
+
id: dropdownId,
|
|
71
|
+
class: 'aui-checkbox-multiselect-dropdown aui-dropdown2',
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
var $button = $('<button />').attr({
|
|
75
|
+
'class': 'aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger',
|
|
76
|
+
'type': 'button',
|
|
77
|
+
'aria-owns': dropdownId,
|
|
78
|
+
'aria-haspopup': true,
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
return $('<div />').append($select).append($button).append($dropdown).html();
|
|
82
|
+
},
|
|
87
83
|
};
|
|
88
84
|
|
|
89
85
|
/**
|
|
@@ -91,7 +87,7 @@ var templates = {
|
|
|
91
87
|
* option in the <select>.
|
|
92
88
|
* @private
|
|
93
89
|
*/
|
|
94
|
-
function handleDropdownSelection
|
|
90
|
+
function handleDropdownSelection(e) {
|
|
95
91
|
var $a = $(e.target);
|
|
96
92
|
var value = $a.attr('data-value');
|
|
97
93
|
updateOption(this, value, $a.hasClass('aui-dropdown2-checked'));
|
|
@@ -104,7 +100,7 @@ function handleDropdownSelection (e) {
|
|
|
104
100
|
* @param value - value of option to update
|
|
105
101
|
* @param {Boolean} selected - select or unselect it.
|
|
106
102
|
*/
|
|
107
|
-
function updateOption
|
|
103
|
+
function updateOption(component, value, selected) {
|
|
108
104
|
var $toUpdate = component.$select.find('option').filter(function () {
|
|
109
105
|
var $this = $(this);
|
|
110
106
|
return $this.attr('value') === value && $this.prop('selected') !== selected;
|
|
@@ -119,7 +115,7 @@ function updateOption (component, value, selected) {
|
|
|
119
115
|
* Enables 'clear all' button if there are any selected <option>s, otherwise disables it.
|
|
120
116
|
* @private
|
|
121
117
|
*/
|
|
122
|
-
function updateClearAll
|
|
118
|
+
function updateClearAll(component) {
|
|
123
119
|
component.$dropdown.find('[data-aui-checkbox-multiselect-clear]').prop('disabled', function () {
|
|
124
120
|
return getSelectedDescriptors(component).length < 1;
|
|
125
121
|
});
|
|
@@ -131,8 +127,10 @@ function updateClearAll (component) {
|
|
|
131
127
|
* @param component
|
|
132
128
|
* @returns {string}
|
|
133
129
|
*/
|
|
134
|
-
function getButtonTitle
|
|
135
|
-
return component.$dropdown[0].hasAttribute('hidden')
|
|
130
|
+
function getButtonTitle(component) {
|
|
131
|
+
return component.$dropdown[0].hasAttribute('hidden')
|
|
132
|
+
? ''
|
|
133
|
+
: getSelectedLabels(component).join(', ');
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
/**
|
|
@@ -141,7 +139,7 @@ function getButtonTitle (component) {
|
|
|
141
139
|
* @returns {Array<Object>}
|
|
142
140
|
* @private
|
|
143
141
|
*/
|
|
144
|
-
function mapOptionDescriptors
|
|
142
|
+
function mapOptionDescriptors($options) {
|
|
145
143
|
return $options.map(function () {
|
|
146
144
|
var $option = $(this);
|
|
147
145
|
return {
|
|
@@ -151,7 +149,7 @@ function mapOptionDescriptors ($options) {
|
|
|
151
149
|
styleClass: $option.data('styleClass'),
|
|
152
150
|
title: $option.attr('title'),
|
|
153
151
|
disabled: $option.attr('disabled'),
|
|
154
|
-
selected: $option.prop('selected')
|
|
152
|
+
selected: $option.prop('selected'),
|
|
155
153
|
};
|
|
156
154
|
});
|
|
157
155
|
}
|
|
@@ -161,16 +159,15 @@ function mapOptionDescriptors ($options) {
|
|
|
161
159
|
* @returns {string}
|
|
162
160
|
* @private
|
|
163
161
|
*/
|
|
164
|
-
function getImplicitAllLabel
|
|
162
|
+
function getImplicitAllLabel(component) {
|
|
165
163
|
return $(component).data('allLabel') || 'All';
|
|
166
164
|
}
|
|
167
165
|
|
|
168
|
-
|
|
169
166
|
/**
|
|
170
167
|
* Renders dropdown with list of items representing the selected or unselect state of the <option>s in <select>
|
|
171
168
|
* @private
|
|
172
169
|
*/
|
|
173
|
-
function renderDropdown
|
|
170
|
+
function renderDropdown(component) {
|
|
174
171
|
component.$dropdown.html(templates.dropdown(getDescriptors(component)));
|
|
175
172
|
updateClearAll(component);
|
|
176
173
|
}
|
|
@@ -180,9 +177,11 @@ function renderDropdown (component) {
|
|
|
180
177
|
* is displayed.
|
|
181
178
|
* @private
|
|
182
179
|
*/
|
|
183
|
-
function renderButton
|
|
180
|
+
function renderButton(component) {
|
|
184
181
|
var selectedLabels = getSelectedLabels(component);
|
|
185
|
-
var label = isImplicitAll(component)
|
|
182
|
+
var label = isImplicitAll(component)
|
|
183
|
+
? getImplicitAllLabel(component)
|
|
184
|
+
: selectedLabels.join(', ');
|
|
186
185
|
component.$btn.text(label);
|
|
187
186
|
}
|
|
188
187
|
|
|
@@ -192,7 +191,7 @@ function renderButton (component) {
|
|
|
192
191
|
* @private
|
|
193
192
|
* @returns Array<Object>
|
|
194
193
|
*/
|
|
195
|
-
function getDescriptors
|
|
194
|
+
function getDescriptors(component) {
|
|
196
195
|
return mapOptionDescriptors(component.getOptions());
|
|
197
196
|
}
|
|
198
197
|
|
|
@@ -202,7 +201,7 @@ function getDescriptors (component) {
|
|
|
202
201
|
* @private
|
|
203
202
|
* @returns Array<Object>
|
|
204
203
|
*/
|
|
205
|
-
function getSelectedDescriptors
|
|
204
|
+
function getSelectedDescriptors(component) {
|
|
206
205
|
return mapOptionDescriptors(component.getSelectedOptions());
|
|
207
206
|
}
|
|
208
207
|
|
|
@@ -211,7 +210,7 @@ function getSelectedDescriptors (component) {
|
|
|
211
210
|
* @private
|
|
212
211
|
* @returns Array<String>
|
|
213
212
|
*/
|
|
214
|
-
function getSelectedLabels
|
|
213
|
+
function getSelectedLabels(component) {
|
|
215
214
|
return $.map(getSelectedDescriptors(component), function (descriptor) {
|
|
216
215
|
return descriptor.label;
|
|
217
216
|
});
|
|
@@ -221,7 +220,7 @@ function getSelectedLabels (component) {
|
|
|
221
220
|
* If nothing is selected, we take this to mean that everything is selected.
|
|
222
221
|
* @returns Boolean
|
|
223
222
|
*/
|
|
224
|
-
function isImplicitAll
|
|
223
|
+
function isImplicitAll(component) {
|
|
225
224
|
return getSelectedDescriptors(component).length === 0;
|
|
226
225
|
}
|
|
227
226
|
|
|
@@ -237,29 +236,30 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
|
|
|
237
236
|
var name = component.getAttribute('name') || uid('aui-checkbox-multiselect-');
|
|
238
237
|
component.innerHTML = templates.furniture(name, component.innerHTML);
|
|
239
238
|
|
|
240
|
-
component.$select = $('select', component)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
});
|
|
239
|
+
component.$select = $('select', component).on('change', function () {
|
|
240
|
+
renderButton(component);
|
|
241
|
+
updateClearAll(component);
|
|
242
|
+
});
|
|
245
243
|
|
|
246
244
|
component.$dropdown = $('.aui-checkbox-multiselect-dropdown', component)
|
|
247
245
|
.on('aui-dropdown2-item-check', handleDropdownSelection.bind(component))
|
|
248
246
|
.on('aui-dropdown2-item-uncheck', handleDropdownSelection.bind(component))
|
|
249
|
-
.on(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
247
|
+
.on(
|
|
248
|
+
'click',
|
|
249
|
+
'button[data-aui-checkbox-multiselect-clear]',
|
|
250
|
+
component.deselectAllOptions.bind(component)
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
component.$btn = $('.aui-checkbox-multiselect-btn', component).tooltip({
|
|
254
|
+
title: function () {
|
|
255
|
+
return getButtonTitle(component);
|
|
256
|
+
},
|
|
257
|
+
});
|
|
257
258
|
|
|
258
259
|
renderButton(component);
|
|
259
260
|
renderDropdown(component);
|
|
260
261
|
},
|
|
261
262
|
prototype: {
|
|
262
|
-
|
|
263
263
|
/**
|
|
264
264
|
* Gets all options regardless of selected or unselected
|
|
265
265
|
* @returns {jQuery}
|
|
@@ -303,7 +303,9 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
|
|
|
303
303
|
*/
|
|
304
304
|
deselectAllOptions: function () {
|
|
305
305
|
this.$select.val([]).trigger('change');
|
|
306
|
-
this.$dropdown
|
|
306
|
+
this.$dropdown
|
|
307
|
+
.find('.aui-dropdown2-checked,.checked')
|
|
308
|
+
.removeClass('aui-dropdown2-checked checked');
|
|
307
309
|
},
|
|
308
310
|
|
|
309
311
|
/**
|
|
@@ -311,13 +313,14 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
|
|
|
311
313
|
* @param descriptor
|
|
312
314
|
*/
|
|
313
315
|
addOption: function (descriptor) {
|
|
314
|
-
$('<option />')
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
316
|
+
$('<option />')
|
|
317
|
+
.attr({
|
|
318
|
+
value: descriptor.value,
|
|
319
|
+
icon: descriptor.icon,
|
|
320
|
+
disabled: descriptor.disabled,
|
|
321
|
+
selected: descriptor.selected,
|
|
322
|
+
title: descriptor.title,
|
|
323
|
+
})
|
|
321
324
|
.text(descriptor.label)
|
|
322
325
|
.appendTo(this.$select);
|
|
323
326
|
renderButton(this);
|
|
@@ -332,8 +335,8 @@ const CheckboxMultiselectEl = skate('aui-checkbox-multiselect', {
|
|
|
332
335
|
this.$select.find("[value='" + value + "']").remove();
|
|
333
336
|
renderButton(this);
|
|
334
337
|
renderDropdown(this);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
338
|
+
},
|
|
339
|
+
},
|
|
337
340
|
});
|
|
338
341
|
|
|
339
342
|
amdify('aui/checkbox-multiselect', CheckboxMultiselectEl);
|