110899 Commits

Author SHA1 Message Date
Andrew Nicols
a797020524
MDL-78324 core: Convert core/tag to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:03 +08:00
Andrew Nicols
98f0aebde6
MDL-78324 gradereport_singleview: Update modal usage to drop factory use
This change includes some additional simplifications to support this
change, including conversion from done/fail to then/catch, and some
simplification of Promise usage.

There were a number of cases of nested Modal usage which have been
removed.
2023-09-09 00:04:03 +08:00
Andrew Nicols
5d9761c655
MDL-78324 mod_survey: Convert validation to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:03 +08:00
Andrew Nicols
27e40683aa
MDL-78324 report_insights: Convert actions to esm
This module is converted to ESM in preparation for simplification of
Modal instantiation.
2023-09-09 00:04:02 +08:00
Andrew Nicols
1660b7d53e
MDL-78324 editor_tiny: Update modals to stop using factory 2023-09-09 00:04:00 +08:00
Andrew Nicols
854da2dd70
MDL-78324 mod_quiz: Update modals to stop using factory
This commit includes some simplifications to the way in which some of
the modals are launched and allows us to remove several modules entirely
as they are no longer required following the simplification of the Modal
instantiation.
2023-09-08 23:49:13 +08:00
Andrew Nicols
a54ba682a4
MDL-78324 core: Create modal factory in core/modal
This commits adds a new static `create()` method to replace the existing
ModalFactory.create approach.

This allows the creation of a modal to now be simplified to:

```js
import SomeModalClass from 'mymodule/wherever';

// ...

const modal = await SomeModalClass.create();
```

Prior to this change the modal was instantiated via the ModalFactory,
but the Type of modal was typically pulled from the ModalClass itself
via the registry. Essentially it used to require three modules to
instantiate a single Modal, and now it takes just one.
2023-09-08 23:49:13 +08:00
Andrew Nicols
9073225c98
MDL-78324 core: Simplify modal configuration
This change moves configuration of the modal from the ModalFactory to
a new `configure` function on the Modal class which does exactly the
same thing. This means that the API is fully encapsulated within the
Modal, and an individual Modal can specify its own configuration more
easily.

This change will make it much easier to instantiate new modals,
significantly reducing boilerplate in many instances.

This change allows modals to extend the `configure()` method to provide
their own defaults, or to override standard ones.

```js
class MyModal extends Modal {
    static TYPE = 'my_module/mymodal';
    static TEMPLATE = 'my_module/mymodal';

    configure(params = {}) {
        // Override the default value for large.
        params.large = true;

        super.configure(params);

        // Handle our own properties here.
        const {
          makeSound = true,
        } = params;

        this.setSoundEmitter(makeSound);
    }
```

Prior to this change, it was common to see this happen in the _calling_
code, rather than the modal itself.
2023-09-08 23:49:12 +08:00
Jun Pataleta
b4c6ed3650
weekly release 4.3dev+ 2023-09-08 22:34:59 +08:00
Jun Pataleta
64c431e19b
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-09-08 22:34:57 +08:00
Jun Pataleta
8edafd35d8
MDL-78549 multianswer: Prevent default when clicking feedback trigger 2023-09-08 22:14:35 +08:00
Huong Nguyen
0a9eaa50e4
Merge branch 'MDL-78549-master' of https://github.com/junpataleta/moodle 2023-09-08 22:14:35 +08:00
Huong Nguyen
a890f6f07a
Merge branch 'MDL-79090-master' of https://github.com/mackensen/moodle 2023-09-08 22:14:35 +08:00
Jun Pataleta
f32f669f53
Merge branch 'MDL-78258-master' of https://github.com/snake/moodle 2023-09-08 22:14:35 +08:00
Andrew Nicols
eafa7c0a6f
Merge branch 'MDL-79241-master' of https://github.com/marinaglancy/moodle 2023-09-08 22:14:35 +08:00
Huong Nguyen
cb5c8b59bf
Merge branch 'MDL-78619' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Jun Pataleta
090e40e749
Merge branch 'MDL-79155-master' of https://github.com/safatshahin/moodle 2023-09-08 22:14:34 +08:00
Jun Pataleta
be5de5fccf
Merge branch 'MDL-69958-well-known-password' of https://github.com/brendanheywood/moodle 2023-09-08 22:14:34 +08:00
Ilya Tregubov
71cb542c60
Merge branch 'MDL-71494' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Ilya Tregubov
94cf94286a
Merge branch 'MDL-78254' of https://github.com/paulholden/moodle 2023-09-08 22:14:34 +08:00
Ilya Tregubov
7ddea19a95
Merge branch 'MDL-78244-master' of https://github.com/meirzamoodle/moodle 2023-09-08 22:14:33 +08:00
Jun Pataleta
dd49de72b2
Merge branch 'MDL-78954-master-fix' of https://github.com/lameze/moodle 2023-09-08 22:14:33 +08:00
Shamim Rezaie
4ded6f7fb9
Merge branch 'MDL-77545-master' of https://github.com/call-learning/moodle 2023-09-08 22:14:33 +08:00
Jun Pataleta
b0f9fee6dd
Merge branch 'MDL-77443-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:33 +08:00
Jun Pataleta
45cf011ab6
Merge branch 'MDL-75740' of https://github.com/paulholden/moodle 2023-09-08 22:14:33 +08:00
Paul Holden
65c0de3618
MDL-78619 communication: add customlink to list of standard plugins.
Make management URL nullable to avoid section link error when the
whole subsystem is not enabled.
2023-09-08 22:14:31 +08:00
Simey Lameze
2ab8c0f17c
NOBUG: increase expected size for downloaded file 2023-09-08 22:14:29 +08:00
Andrew Nicols
a5f4b6929a
Merge branch 'MDL-79286' of https://github.com/paulholden/moodle 2023-09-08 22:14:29 +08:00
Andrew Nicols
0b1db43788
MDL-79277 tool_mobile: Correct default value for empty param 2023-09-08 22:14:29 +08:00
Andrew Nicols
b4bd5d9f5f
Merge branch 'MDL-79277-master' of https://github.com/noeldemartin/moodle 2023-09-08 22:14:29 +08:00
Andrew Nicols
d5605c7704
Merge branch 'MDL-79250-master' of https://github.com/junpataleta/moodle 2023-09-08 22:14:28 +08:00
Andrew Nicols
12c67aaae1
MDL-79264 tiny_equation: Correct debounce method
The debounced method was being called immediately instead of being
debounced.
2023-09-08 22:14:28 +08:00
Andrew Nicols
6ceabf28d3
Merge branch 'MDL-79264-master' of https://github.com/geichelberger/moodle 2023-09-08 22:14:28 +08:00
Andrew Nicols
f711def059
Merge branch 'MDL-68435' of https://github.com/paulholden/moodle 2023-09-08 22:14:28 +08:00
Andrew Nicols
9f676d6cb3
Merge branch 'MDL-78917' of https://github.com/paulholden/moodle 2023-09-08 22:14:28 +08:00
Jun Pataleta
fdc726d7e4
Merge branch 'MDL-76034-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta
8b8efffd7e
Merge branch 'MDL-78779-master' of https://github.com/andrewnicols/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta
cfb2afb047
Merge branch 'MDL-78558-master' of https://github.com/roland04/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta
f6dd2d6171
Merge branch 'MDL-78082-patch' of https://github.com/ilyatregubov/moodle 2023-09-08 22:14:27 +08:00
Jun Pataleta
a44a7e7643
MDL-78954 theme: Rebuild CSS 2023-09-08 22:14:26 +08:00
Jun Pataleta
fbcf8db9d3
Merge branch 'MDL-78954-master' of https://github.com/ferranrecio/moodle 2023-09-08 22:14:24 +08:00
Eloy Lafuente (stronk7)
5fdd1f768b
Merge branch 'MDL-78619-master' of https://github.com/HuongNV13/moodle 2023-09-08 22:13:16 +08:00
Ilya Tregubov
b8826a7a21
MDL-78082 gradereport_grader: Remove xpath from Behat. 2023-09-08 22:13:11 +08:00
Huong Nguyen
4a115b8118
MDL-78619 theme: Communication button fix for Classic 2023-09-08 22:13:10 +08:00
AMOS bot
0cf21fce5f Automatically generated installer lang files 2023-09-08 00:10:53 +00:00
Laurent David
0335adeff4 MDL-77545 mod_bigbluebuttonbn: Add form extension
* Add a new way to extend the BigBlueButtonBN form via subplugins
* Allow subplugins to extends information via new tables and use it in
the edit form.
* Add a new cache helping with potential perfomance issues introduced
by recurring calls to find out about associated tables in subplugins.
2023-09-07 17:20:05 +02:00
Laurent David
3d05bc7da3 MDL-77545 mod_bigbluebuttonbn: Refactor get_instances_implementing
* We need a way to either have the classes implementing an interface/abstract
class or create instances.
2023-09-07 17:17:51 +02:00
Paul Holden
b4a7583d58
MDL-79286 mod_quiz: account for users with multiple enrolments.
The quiz override form should account for this, to ensure duplicate
user records don't trigger DML debugging.
2023-09-07 11:33:58 +01:00
Huong Nguyen
bd372a63d2
Merge branch 'MDL-78619-master' of https://github.com/mickhawkins/moodle 2023-09-07 15:19:18 +07:00
Mikel Martín
8af68bbe09 MDL-78558 core_courseformat: Activity cards UI improvements
- Fix action menu and completion button size
- New 'Add activity' button styles
- Fix restriction container styles
- Fix action menu and groupmode button styles
- Fix hover styles for action menu and groupmode button
- Fix groupmode spacing styles
- Homogenize completion button colours
- Fix inplaceeditable and badge positioning
- Fix export filesize related behat
- Homogenize activity/section availability
- New add topic styles
2023-09-07 09:34:43 +02:00